]> xenbits.xensource.com Git - xcp/xen-api.git/commit
[PATCH] vswitch: interface-reconfigure: bring down physical interfaces
authorIan Campbell <ian.campbell@citrix.com>
Thu, 8 Jul 2010 13:30:21 +0000 (14:30 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 8 Jul 2010 13:30:21 +0000 (14:30 +0100)
commite8612fb71a85f314e9b13f2ac05e973ab94f3a21
tree928e3de8be0e40e3ec5a133e94d470f479706db8
parent57d66bde6a65fa18707f8bb17fd7ed1af1245a10
[PATCH] vswitch: interface-reconfigure: bring down physical interfaces

From df9a459ab60259b88610ac781889f69b73fbffad Mon Sep 17 00:00:00 2001
Date: Thu, 25 Feb 2010 16:15:13 +0000
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>
---
 ...ensource_libexec_InterfaceReconfigureVswitch.py |    7 +++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
scripts/InterfaceReconfigureVswitch.py