vswitch: interface-reconfigure: bring down physical interfaces
authorIan Campbell <ian.campbell@citrix.com>
Thu, 25 Feb 2010 16:15:13 +0000 (16:15 +0000)
committerBen Pfaff <blp@nicira.com>
Fri, 26 Feb 2010 17:31:14 +0000 (09:31 -0800)
commitdf9a459ab60259b88610ac781889f69b73fbffad
tree30feef41d174ee6aa4d1496160315c0e7e8efa5b
parent2a910c50fad8f86b38d2f94f09e8f8e10c0ec7c8
vswitch: interface-reconfigure: bring down physical interfaces

This should be done when bringing down the last PIF which uses a
datapath in order to account for VLAN PIFs sharing a datapath.

The logic in bring_down() already acounts for this requirement by
clearing the dp variable if the datapath is still required so if we
get as far as deconfiguring that datapath then it is also correct to
bring down the physical devices.

With unit test suite update by Ben Pfaff.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tests/interface-reconfigure.at
xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py