bridge: Ignore null interfaces as required.
authorEthan Jackson <ethan@nicira.com>
Mon, 23 Apr 2012 16:25:07 +0000 (09:25 -0700)
committerEthan Jackson <ethan@nicira.com>
Mon, 23 Apr 2012 16:30:33 +0000 (09:30 -0700)
This issue has been around for quite some time.  It doesn't really
cause problems beyond some spurious warnings.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
vswitchd/bridge.c

index 833973a3b452697f5e5d19d3cbce9e51f48122d2..496d9b4e3a102947d364353a553b8e99f63ccc1a 100644 (file)
@@ -2816,7 +2816,7 @@ port_del_ifaces(struct port *port)
     sset_init(&new_ifaces);
     for (i = 0; i < port->cfg->n_interfaces; i++) {
         const char *name = port->cfg->interfaces[i]->name;
-        const char *type = port->cfg->interfaces[i]->name;
+        const char *type = port->cfg->interfaces[i]->type;
         if (strcmp(type, "null")) {
             sset_add(&new_ifaces, name);
         }