Pavel Petrov | 2b116a2 | 2017-10-18 22:27:01 +0300 | [diff] [blame] | 1 | {#- Public network. For gateway nodes and computes with dvr #} |
| 2 | # {{ interfaces_role }} |
Dennis Dmitriev | 600e6ee | 2018-02-20 03:55:49 +0200 | [diff] [blame] | 3 | {{- set_param('linux_network_bridge', 'openvswitch') }} |
Pavel Petrov | 2b116a2 | 2017-10-18 22:27:01 +0300 | [diff] [blame] | 4 | {%- set interface_name = interfaces.keys()[0] %} |
Dennis Dmitriev | e56f302 | 2018-03-22 20:14:59 +0200 | [diff] [blame] | 5 | {%- set interface = interfaces[interface_name] %} |
Pavel Petrov | 2b116a2 | 2017-10-18 22:27:01 +0300 | [diff] [blame] | 6 | {{ interface_name }}: |
| 7 | enabled: true |
| 8 | name: {{ interface_name }} |
Dennis Dmitriev | e56f302 | 2018-03-22 20:14:59 +0200 | [diff] [blame] | 9 | {%- if 'mtu' in interface %} |
| 10 | mtu: {{ interface['mtu'] }} |
| 11 | {%- endif %} |
Pavel Petrov | 2b116a2 | 2017-10-18 22:27:01 +0300 | [diff] [blame] | 12 | proto: manual |
| 13 | type: eth |
| 14 | br-floating: |
| 15 | enabled: true |
| 16 | type: ovs_bridge |
Dennis Dmitriev | e56f302 | 2018-03-22 20:14:59 +0200 | [diff] [blame] | 17 | {%- if 'mtu' in interface %} |
| 18 | mtu: {{ interface['mtu'] }} |
| 19 | {%- endif %} |
Pavel Petrov | 2b116a2 | 2017-10-18 22:27:01 +0300 | [diff] [blame] | 20 | float-to-ex: |
| 21 | enabled: true |
| 22 | type: ovs_port |
Dennis Dmitriev | e56f302 | 2018-03-22 20:14:59 +0200 | [diff] [blame] | 23 | {%- if 'mtu' in interface %} |
| 24 | mtu: {{ interface['mtu'] }} |
| 25 | {%- endif %} |
Pavel Petrov | 2b116a2 | 2017-10-18 22:27:01 +0300 | [diff] [blame] | 26 | bridge: br-floating |
| 27 | br-ex: |
| 28 | enabled: true |
| 29 | type: bridge |
Dennis Dmitriev | e56f302 | 2018-03-22 20:14:59 +0200 | [diff] [blame] | 30 | {%- if 'mtu' in interface %} |
| 31 | mtu: {{ interface['mtu'] }} |
| 32 | {%- endif %} |
sgudz | 15c1240 | 2018-10-23 15:30:30 +0300 | [diff] [blame^] | 33 | address: ${_param:_esc}{_param:external_address} |
Pavel Petrov | 2b116a2 | 2017-10-18 22:27:01 +0300 | [diff] [blame] | 34 | netmask: 255.255.255.0 |
| 35 | use_interfaces: |
| 36 | - {{ interface_name }} |
| 37 | use_ovs_ports: |
sgudz | 15c1240 | 2018-10-23 15:30:30 +0300 | [diff] [blame^] | 38 | - float-to-ex |