Persist allinone OVS bridge

Change-Id: I2bfec5667d00d001807100f35362e9c090e4fead
This commit is contained in:
Terry Wilson 2013-08-26 16:34:08 -05:00
parent 2ae724f876
commit 8a72f18a0f
2 changed files with 15 additions and 0 deletions

View File

@ -47,3 +47,7 @@ def createmanifest(config):
manifestfile = "%s_postscript.pp" % hostname
manifestdata = getManifestTemplate("postscript.pp")
appendManifestFile(manifestfile, manifestdata, 'postscript')
if config.get("CONFIG_PROVISION_ALL_IN_ONE_OVS_BRIDGE") != 'n':
config['EXT_BRIDGE_VAR'] = config['CONFIG_NEUTRON_L3_EXT_BRIDGE'].replace('-','_')
manifestdata = getManifestTemplate("persist_ovs_bridge.pp")
appendManifestFile(manifestfile, manifestdata, 'postscript')

View File

@ -0,0 +1,11 @@
$net_script = "DEVICE=%(CONFIG_NEUTRON_L3_EXT_BRIDGE)s
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=$ipaddress_%(EXT_BRIDGE_VAR)s
NETMASK=$netmask_%(EXT_BRIDGE_VAR)s
ONBOOT=yes"
file { "/etc/sysconfig/network-scripts/ifcfg-%(CONFIG_NEUTRON_L3_EXT_BRIDGE)s":
content => $net_script
}