blob: b66b73dded2a80118f88f16d786a22d2f337d5d9 [file] [log] [blame]
Pavel Petrov2b116a22017-10-18 22:27:01 +03001{#- Public network. For gateway nodes and computes with dvr #}
2 # {{ interfaces_role }}
Dennis Dmitriev600e6ee2018-02-20 03:55:49 +02003 {{- set_param('linux_network_bridge', 'openvswitch') }}
Pavel Petrov2b116a22017-10-18 22:27:01 +03004 {%- set interface_name = interfaces.keys()[0] %}
Dennis Dmitrieve56f3022018-03-22 20:14:59 +02005 {%- set interface = interfaces[interface_name] %}
Pavel Petrov2b116a22017-10-18 22:27:01 +03006 {{ interface_name }}:
7 enabled: true
8 name: {{ interface_name }}
Dennis Dmitrieve56f3022018-03-22 20:14:59 +02009 {%- if 'mtu' in interface %}
10 mtu: {{ interface['mtu'] }}
11 {%- endif %}
Pavel Petrov2b116a22017-10-18 22:27:01 +030012 proto: manual
13 type: eth
14 br-floating:
15 enabled: true
16 type: ovs_bridge
Dennis Dmitrieve56f3022018-03-22 20:14:59 +020017 {%- if 'mtu' in interface %}
18 mtu: {{ interface['mtu'] }}
19 {%- endif %}
Pavel Petrov2b116a22017-10-18 22:27:01 +030020 float-to-ex:
21 enabled: true
22 type: ovs_port
Dennis Dmitrieve56f3022018-03-22 20:14:59 +020023 {%- if 'mtu' in interface %}
24 mtu: {{ interface['mtu'] }}
25 {%- endif %}
Pavel Petrov2b116a22017-10-18 22:27:01 +030026 bridge: br-floating
27 br-ex:
28 enabled: true
29 type: bridge
Dennis Dmitrieve56f3022018-03-22 20:14:59 +020030 {%- if 'mtu' in interface %}
31 mtu: {{ interface['mtu'] }}
32 {%- endif %}
sgudz15c12402018-10-23 15:30:30 +030033 address: ${_param:_esc}{_param:external_address}
Pavel Petrov2b116a22017-10-18 22:27:01 +030034 netmask: 255.255.255.0
35 use_interfaces:
36 - {{ interface_name }}
37 use_ovs_ports:
sgudz15c12402018-10-23 15:30:30 +030038 - float-to-ex