[ovs-dev] [PATCH] bridge: Log port destruction

Justin Pettit jpettit at nicira.com
Thu Oct 21 22:39:49 UTC 2010


We log when we create a port, so let's log when we destroy one for
parity.
---
 vswitchd/bridge.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 24c3640..1a2e0e6 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -3569,6 +3569,9 @@ port_destroy(struct port *port)
         bitmap_free(port->trunks);
         free(port->name);
         free(port);
+
+        VLOG_INFO("destroyed port %s on bridge %s", port->name, br->name);
+
         bridge_flush(br);
     }
 }
-- 
1.7.1





More information about the dev mailing list