c678e83275
* added ip alias for interfaces * Update settings and improve vm performance * Change the VG name in VMs. The VG name was changed so that the volume which is being used by VMs can be mounted on a physical host, and not conflict, with standard volume group naming. This is usful when a VM is DOA and a deployer wants to disect the instance. Change-Id: If4d10165fe08f82400772ca88f8490b01bad5cf8 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
32 lines
849 B
Django/Jinja
32 lines
849 B
Django/Jinja
# Physical interface, could be bond. This only needs to be set once
|
|
{% for key, value in mnaio_host_networks.items() %}
|
|
{% if value.iface_port != 'none' %}
|
|
auto {{ value.iface_port }}
|
|
iface {{ value.iface_port }} inet manual
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% for key, value in mnaio_host_networks.items() %}
|
|
auto {{ value.iface }}
|
|
iface {{ value.iface }} inet {{ value.inet_type }}
|
|
bridge_stp off
|
|
bridge_waitport {{ value.iface_port == 'none' | ternary('0', '10') }}
|
|
bridge_fd 0
|
|
bridge_ports {{ value.iface_port }}
|
|
offload-sg off
|
|
{% if value.address is defined %}
|
|
address {{ value.address }}
|
|
{% endif %}
|
|
|
|
{% if value.address_aliases is defined %}
|
|
{% for addr in value.address_aliases %}
|
|
auto {{ value.iface }}
|
|
iface {{ value.iface }} inet static
|
|
address {{ addr }}
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|