bridge: Destroy bond when port is destroyed.
authorEthan Jackson <ethan@nicira.com>
Fri, 15 Apr 2011 18:06:02 +0000 (11:06 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 15 Apr 2011 19:19:27 +0000 (12:19 -0700)
vswitchd/bridge.c

index 42273c7b634c74c9c538838899fb5a0d422679ba..ab4d5078f6673d307f07fc153d7526c240191e7c 100644 (file)
@@ -3021,6 +3021,7 @@ port_destroy(struct port *port)
 
         VLOG_INFO("destroyed port %s on bridge %s", port->name, br->name);
 
+        bond_destroy(port->bond);
         lacp_destroy(port->lacp);
         port_flush_macs(port);