ofproto-dpif: Actually disable STP on port when disabling STP on port.
authorJustin Pettit <jpettit@nicira.com>
Wed, 9 Nov 2011 01:31:04 +0000 (17:31 -0800)
committerJustin Pettit <jpettit@nicira.com>
Wed, 9 Nov 2011 05:18:04 +0000 (21:18 -0800)
When disabling STP on a port that has it enabled on the bridge, STP was
not actually being disabled on the port.  This commit directly calls the
update function in this situation.

Reported-by: Paul Ingram <paul@nicira.com>
ofproto/ofproto-dpif.c

index b53452d..24d8676 100644 (file)
@@ -1070,6 +1070,7 @@ set_stp_port(struct ofport *ofport_,
         if (sp) {
             ofport->stp_port = NULL;
             stp_port_disable(sp);
+            update_stp_port_state(ofport);
         }
         return 0;
     } else if (sp && stp_port_no(sp) != s->port_num