[ovs-dev] [branch-1.1 19/34] bridge: Initialize mirrors' uuid member.

Ben Pfaff blp at nicira.com
Fri Apr 29 21:56:50 UTC 2011


Otherwise mirrors get destroyed and re-created on every reconfiguration.
---
 vswitchd/bridge.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index e52a438..bc05fdb 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -4793,6 +4793,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);
-- 
1.7.4.4




More information about the dev mailing list