ovs-vtep: Clear left-over local mac information.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 24 Jul 2014 19:40:39 +0000 (12:40 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 25 Sep 2014 23:50:02 +0000 (16:50 -0700)
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 <gshetty@nicira.com>
Acked-by: Ariel Tubaltsev <atubaltsev@vmware.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
vtep/ovs-vtep

index ea233e0..ea21794 100755 (executable)
@@ -424,6 +424,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):