|
|
|
|
|
|
|
|
|
|
xen-api
[Xen-API] [PATCH 33 of 33] interface-reconfigure: vswitch: explicitly co
This ensures that a VLAN fake bridge has the expected MAC address,
previously it would be random.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 6f51831a592d -r f2862a7e243d scripts/InterfaceReconfigureVswitch.py
--- a/scripts/InterfaceReconfigureVswitch.py Fri Dec 18 14:16:32 2009 +0000
+++ b/scripts/InterfaceReconfigureVswitch.py Fri Dec 18 14:16:32 2009 +0000
@@ -395,7 +395,11 @@
cfgmod_argv += datapath_deconfigure_ipdev(ipdev)
cfgmod_argv += ["# reconfigure ipdev %s" % ipdev]
cfgmod_argv += ['--add=bridge.%s.port=%s' % (bridge, ipdev)]
-
+ if bridge == ipdev:
+ cfgmod_argv += ['--add=bridge.%s.mac=%s' % (bridge, pifrec['MAC'])]
+ else:
+ cfgmod_argv += ['--add=iface.%s.mac=%s' % (ipdev, pifrec['MAC'])]
+
if pif_is_vlan(self._pif):
cfgmod_argv += ['--add=vlan.%s.tag=%s' % (ipdev, pifrec['VLAN'])]
cfgmod_argv += ['--add=iface.%s.internal=true' % (ipdev)]
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-API] [PATCH 23 of 33] interface-reconfigure: Do not try to bring down interfaces before forcing them up, (continued)
- [Xen-API] [PATCH 23 of 33] interface-reconfigure: Do not try to bring down interfaces before forcing them up, Ian Campbell
- [Xen-API] [PATCH 24 of 33] interface-reconfigure: do not require a PIF for rewrite action, Ian Campbell
- [Xen-API] [PATCH 25 of 33] interface-reconfigure: Refactor the action_* methods, Ian Campbell
- [Xen-API] [PATCH 27 of 33] interface-reconfigure: Move bond and VLAN utilities to utility module, Ian Campbell
- [Xen-API] [PATCH 29 of 33] interface-reconfigure: Move ethtool and MTU setting utilities to module, Ian Campbell
- [Xen-API] [PATCH 28 of 33] interface-reconfigure: do not sort the result in pif_get_bond_slaves, Ian Campbell
- [Xen-API] [PATCH 26 of 33] interface-reconfigure: Move DatabaseCache object to utility module, Ian Campbell
- [Xen-API] [PATCH 31 of 33] interface-reconfigure: Improve error handling of if{up, down} if ifcfg, Ian Campbell
- [Xen-API] [PATCH 32 of 33] interface-reconfigure: Add license headers to new InterfaceReconfigure*.py, Ian Campbell
- [Xen-API] [PATCH 33 of 33] interface-reconfigure: vswitch: explicitly configure IP device MAC address,
Ian Campbell <=
- [Xen-API] [PATCH 30 of 33] interface-reconfigure: move datapath configuration to module, Ian Campbell
- [Xen-API] [PATCH 16 of 33] interface-reconfigure: hang all configuration off of the ipdev, Ian Campbell
|
|
|
|
|