aboutsummaryrefslogtreecommitdiff
path: root/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-02-24 10:48:58 +0000
committerBen Pfaff <blp@nicira.com>2010-02-24 10:54:41 -0800
commit9a2b11752774a3d340e3f03293efcdc3e18b8fb5 (patch)
treeb64cfb3ec69bb0c40964f3197ca37e77226164f9 /xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
parent5c9a0b820c1ff5b20f572198cda241d5cd557320 (diff)
CP-1592: interface-reconfigure: Configure network device MTU from Network.MTU field
With override via other-config:mtu field on specific objects in the datamodel. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> # HG changeset patch # User Ian Campbell <ian.campbell@citrix.com> # Date 1267008538 0 # Node ID a91df72fd4bf6329831d3efcae45a5ff55e3ba2e # Parent 219104a041786d7274b15800de5c3efccf0c4f42
Diffstat (limited to 'xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py')
-rw-r--r--xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
index 831846a2..0d14251b 100644
--- a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
+++ b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
@@ -366,11 +366,12 @@ class DatapathVswitch(Datapath):
physical_devices = datapath_get_physical_pifs(self._dp)
for p in physical_devices:
- oc = db().get_pif_record(p)['other_config']
+ prec = db().get_pif_record(p)
+ oc = prec['other_config']
dev = pif_netdev_name(p)
- mtu = mtu_setting(oc)
+ mtu = mtu_setting(prec['network'], "PIF", oc)
netdev_up(dev, mtu)