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 01:31:04 +0000 (17:31 -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 9fdc489daf9f0d696cec342f777804cf55453947..0def71dd261bbcbd32fe421bb019a127e96d7432 100644 (file)
@@ -1065,6 +1065,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