xenserver: Fix missing default route problem.
authorBen Pfaff <blp@nicira.com>
Mon, 18 May 2009 20:31:00 +0000 (13:31 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 18 May 2009 20:31:00 +0000 (13:31 -0700)
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

index 00f345565ab86be940fb3719c789ca35418763e9..f6a56ac874c8b2f86c3bae5ba82fb4bf8a9e0bb0 100755 (executable)
@@ -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)