[ovs-dev] [PATCH v3 3/6] ovs-vtep: Clear left-over local mac information.

Ariel Tubaltsev atubaltsev at vmware.com
Fri Sep 19 20:01:31 UTC 2014


Acked-by: Ariel Tubaltsev <atubaltsevp at vmware.com>




On 9/19/14 7:29 AM, "Gurucharan Shetty" <shettyg at nicira.com> wrote:

>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 at nicira.com>
>---
> vtep/ovs-vtep |    1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/vtep/ovs-vtep b/vtep/ovs-vtep
>index ea233e0..ea21794 100755
>--- a/vtep/ovs-vtep
>+++ b/vtep/ovs-vtep
>@@ -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):
>-- 
>1.7.9.5
>
>_______________________________________________
>dev mailing list
>dev at openvswitch.org
>https://urldefense.proofpoint.com/v1/url?u=http://openvswitch.org/mailman/
>listinfo/dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=MV0ainYANUJshevWnic4Bqj
>PTBitdF4sSVi8%2ByXyTlU%3D%0A&m=kKJJWlTJ7I9PmYVsX037R%2BQsCB1U41%2Bypg0W9j2
>aAC0%3D%0A&s=7474b17fd10ad00899269d4261c9c4aa477f670a6d160d0390417d95ab155
>efe




More information about the dev mailing list