abaraniuk | e35d5b5 | 2018-10-31 21:13:52 +0200 | [diff] [blame] | 1 | {#- Requirements: #} |
| 2 | {#- _param:tenant_vlan #} |
| 3 | {#- _param:tenant_address #} |
| 4 | {#- _param:tenant_network_netmask #} |
| 5 | {#- _param:tenant_network_gateway #} |
| 6 | # {{ interfaces_role }} |
| 7 | {%- set interface_name = interfaces.keys()[0] %} |
| 8 | {{ interface_name }}: |
| 9 | mtu: 9000 |
| 10 | enabled: true |
| 11 | name: {{ interface_name }} |
| 12 | proto: manual |
| 13 | type: eth |
| 14 | ipflush_onchange: true |
| 15 | vhost0: |
| 16 | mtu: 9000 |
| 17 | address: ${_param:_esc}{_param:tenant_address} |
| 18 | netmask: ${_param:_esc}{_param:tenant_network_netmask} |
| 19 | enabled: true |
| 20 | proto: static |
| 21 | type: eth |
| 22 | pre_up_cmds: |
| 23 | - /usr/lib/contrail/if-vhost0 |
| 24 | name_servers: |
| 25 | - ${_param:_esc}{_param:dns_server01} |
| 26 | - ${_param:_esc}{_param:dns_server02} |
| 27 | use_interfaces: |
| 28 | - {{ interface_name }}.${_param:_esc}{_param:tenant_vlan} |
| 29 | require_interfaces: |
| 30 | - {{ interface_name }}.${_param:_esc}{_param:tenant_vlan} |
| 31 | {{ interface_name }}.tenant_vlan: |
| 32 | mtu: 9000 |
| 33 | name: {{ interface_name }}.${_param:_esc}{_param:tenant_vlan} |
| 34 | enabled: true |
| 35 | proto: manual |
| 36 | type: vlan |
| 37 | use_interfaces: |
| 38 | - {{ interface_name }} |
| 39 | require_interfaces: |
| 40 | - {{ interface_name }} |