rstp: Refactor rstp_port_set_administrative_bridge_port__().
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 14 Nov 2014 22:07:51 +0000 (14:07 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 14 Nov 2014 22:07:51 +0000 (14:07 -0800)
commit37a4efd1e5228947ed08d652a92c4735386d1bde
tree4ec23aa26cfc3ad7c1b2984d489537e4aab8e4fc
parent66ff280de884f85fae205a431af7a572a772cbfd
rstp: Refactor rstp_port_set_administrative_bridge_port__().

Invoke move_rstp__() in rstp_port_set_administrative_bridge_port__()
if port is not initializing.  This is necessary in a test that checks
that a Port becoming alternate/backup/disabled stops learning and
forwarding.  The move_rstp__() call is necessary to immediatly disable
learning and forwarding on that port.  Without this, the test fails.

Signed-off-by: Daniele Venturino <daniele.venturino@m3s.it>
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/rstp.c
tests/rstp.at