From 5dbde79d19949afe952e0dfef391e6d66d08d33f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 18 May 2009 13:31:00 -0700 Subject: [PATCH] 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. --- xenserver/opt_xensource_libexec_interface-reconfigure | 1 - 1 file changed, 1 deletion(-) 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) -- 2.30.2