]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
CA-43568: Fix copy/paste error in InterfaceReconfigure.py
authorAlex Zeffertt <alex.zeffertt@eu.citrix.com>
Mon, 23 Aug 2010 12:54:13 +0000 (13:54 +0100)
committerAlex Zeffertt <alex.zeffertt@eu.citrix.com>
Mon, 23 Aug 2010 12:54:13 +0000 (13:54 +0100)
This was preventing the PIF.other-config:ethtool-duplex key being handled

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
scripts/InterfaceReconfigure.py

index c546af293121a3384371f8bbfdfdb0cafb09a10b..a034be191f0b5d28bd111ce9291ea925dfd1abf8 100644 (file)
@@ -632,8 +632,8 @@ def ethtool_settings(oc):
             log("Invalid value for ethtool-speed = %s. Must be 10|100|1000." % val)
     if oc.has_key('ethtool-duplex'):
         val = oc['ethtool-duplex']
-        if val in ["10", "100", "1000"]:
-            settings += ['duplex', 'val']
+        if val in ["half", "full"]:
+            settings += ['duplex', val]
         else:
             log("Invalid value for ethtool-duplex = %s. Must be half|full." % val)
     if oc.has_key('ethtool-autoneg'):