From: Ben Pfaff Date: Mon, 18 May 2009 20:31:00 +0000 (-0700) Subject: xenserver: Fix missing default route problem. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dbde79d19949afe952e0dfef391e6d66d08d33f;p=openvswitch xenserver: Fix missing default route problem. Taking down the vlan_slave's network device deletes any routes associated with it, including the default route, and those routes are not restored when the network device is brought up again later. So don't take that device down at all. There's no reason to do so. We still want to bring that device up after configuring the pif, just in case it was down, so this commit only deletes the down_netdev, not the corresponding up_netdev later on. Second half of bug #1327. --- diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index 00f34556..f6a56ac8 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -821,7 +821,6 @@ def action_up(pif): # "ifconfig down" the network device and delete its IP address, etc. down_netdev(ipdev) if vlan_slave: - down_netdev(ipdev_name(vlan_slave), False) down_netdev(fakevlanbridge) for physdev in physdevs: down_netdev(physdev)