projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Maximum value of "int" is INT_MAX, not UINT32_MAX.
[openvswitch]
/
xenserver
/
opt_xensource_libexec_InterfaceReconfigureBridge.py
diff --git
a/xenserver/opt_xensource_libexec_InterfaceReconfigureBridge.py
b/xenserver/opt_xensource_libexec_InterfaceReconfigureBridge.py
index 2a3aa8cead499f37f6ec3aacaad94ac8db49aa7e..0438f5c706ccdfb4275f06885fbaf91973f29dc2 100644
(file)
--- a/
xenserver/opt_xensource_libexec_InterfaceReconfigureBridge.py
+++ b/
xenserver/opt_xensource_libexec_InterfaceReconfigureBridge.py
@@
-267,6
+267,8
@@
def _configure_physical_interface(pif):
pifrec = db().get_pif_record(pif)
pifrec = db().get_pif_record(pif)
+ log("Configuring physical interface %s" % pifrec['device'])
+
f = open_pif_ifcfg(pif)
f.write("TYPE=Ethernet\n")
f = open_pif_ifcfg(pif)
f.write("TYPE=Ethernet\n")
@@
-278,7
+280,7
@@
def _configure_physical_interface(pif):
if len(offload):
f.write("ETHTOOL_OFFLOAD_OPTS=\"%s\"\n" % str.join(" ", offload))
if len(offload):
f.write("ETHTOOL_OFFLOAD_OPTS=\"%s\"\n" % str.join(" ", offload))
- mtu = mtu_setting(pifrec['other_config'])
+ mtu = mtu_setting(pifrec['
network'], "PIF", pifrec['
other_config'])
if mtu:
f.write("MTU=%s\n" % mtu)
if mtu:
f.write("MTU=%s\n" % mtu)
@@
-336,7
+338,7
@@
def _configure_bond_interface(pif):
if len(offload):
f.write("ETHTOOL_OFFLOAD_OPTS=\"%s\"\n" % str.join(" ", offload))
if len(offload):
f.write("ETHTOOL_OFFLOAD_OPTS=\"%s\"\n" % str.join(" ", offload))
- mtu = mtu_setting(pifrec['other_config'])
+ mtu = mtu_setting(pifrec['
network'], "VLAN-PIF", pifrec['
other_config'])
if mtu:
f.write("MTU=%s\n" % mtu)
if mtu:
f.write("MTU=%s\n" % mtu)
@@
-386,7
+388,7
@@
def _configure_vlan_interface(pif):
if len(offload):
f.write("ETHTOOL_OFFLOAD_OPTS=\"%s\"\n" % str.join(" ", offload))
if len(offload):
f.write("ETHTOOL_OFFLOAD_OPTS=\"%s\"\n" % str.join(" ", offload))
- mtu = mtu_setting(pifrec['other_config'])
+ mtu = mtu_setting(pifrec['
network'], "Bond-PIF", pifrec['
other_config'])
if mtu:
f.write("MTU=%s\n" % mtu)
if mtu:
f.write("MTU=%s\n" % mtu)