Before destroying a logical switch, cleanup any left over local
mac information in Ucast_Macs_Local or Mcast_Macs_Local table.
We need to do this to atleast cleanup the 'unknown-dst' information
added in the Mcast_Macs_Local table while creating the Logical_Switch
class in setup_ls().

Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
---
 vtep/ovs-vtep |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vtep/ovs-vtep b/vtep/ovs-vtep
index 721063b..d78a842 100755
--- a/vtep/ovs-vtep
+++ b/vtep/ovs-vtep
@@ -422,6 +422,7 @@ def handle_physical(ps_name):
 
         if not len(ls.ports):
             ovs_vsctl("del-br %s" % Lswitches[ls_name].short_name)
+            vtep_ctl("clear-local-macs %s" % Lswitches[ls_name].name)
             del Lswitches[ls_name]
 
 def setup(ps_name):
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to