Dennis Dmitriev | e0115ba | 2019-02-19 20:06:36 +0200 | [diff] [blame] | 1 | {#- Network used to provision baremetal servers with Ironic. For a separate interface on gateway nodes #} |
| 2 | {#- Provides: #} |
| 3 | {#- br_baremetal (OVS bridge) #} |
| 4 | # {{ interfaces_role }} |
| 5 | {{- set_param('linux_network_bridge', 'openvswitch') }} |
| 6 | {%- set interface_name = interfaces.keys()[0] %} |
| 7 | {%- set interface = interfaces[interface_name] %} |
| 8 | br-baremetal: |
| 9 | enabled: true |
| 10 | type: ovs_bridge |
| 11 | {%- if 'mtu' in interface %} |
| 12 | mtu: {{ interface['mtu'] }} |
| 13 | {%- endif %} |
| 14 | {{ interface_name }}: |
| 15 | enabled: true |
| 16 | name: {{ interface_name }} |
| 17 | type: eth |
| 18 | proto: manual |
| 19 | ovs_bridge: br-baremetal |
| 20 | ovs_type: OVSPort |
| 21 | ipflush_onchange: true |
| 22 | restart_on_ipflush: true |
| 23 | {%- if 'mtu' in interface %} |
| 24 | mtu: {{ interface['mtu'] }} |
| 25 | {%- endif %} |