bridge: Initialize mirrors' uuid member.
authorBen Pfaff <blp@nicira.com>
Tue, 5 Apr 2011 21:17:55 +0000 (14:17 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 19 Apr 2011 16:32:18 +0000 (09:32 -0700)
Otherwise mirrors get destroyed and re-created on every reconfiguration.

vswitchd/bridge.c

index a0762fe6e78a8ef8805abd81305a0f21ae2b332f..4ac7e488694b8b74231a88ffd4943b37811b64de 100644 (file)
@@ -3634,6 +3634,7 @@ mirror_create(struct bridge *br, struct ovsrec_mirror *cfg)
     mac_learning_flush(br->ml);
 
     br->mirrors[i] = m = xzalloc(sizeof *m);
+    m->uuid = cfg->header_.uuid;
     m->bridge = br;
     m->idx = i;
     m->name = xstrdup(cfg->name);