|
|
|
|
|
|
|
|
After=openvswitch-switch.service |
|
|
After=openvswitch-switch.service |
|
|
|
|
|
|
|
|
{# enforce ip address and mtu for ovs dpdk br-prv #} |
|
|
{# enforce ip address and mtu for ovs dpdk br-prv #} |
|
|
/etc/network/interfaces.d/ifcfg-{{ interface_name }}: |
|
|
|
|
|
|
|
|
/etc/network/interfaces.u/ifcfg-{{ interface_name }}: |
|
|
file.managed: |
|
|
file.managed: |
|
|
- contents: | |
|
|
- contents: | |
|
|
auto {{ interface_name }} |
|
|
auto {{ interface_name }} |
|
|
|
|
|
|
|
|
{%- if interface.mtu is defined %} |
|
|
{%- if interface.mtu is defined %} |
|
|
mtu {{ interface.mtu }} |
|
|
mtu {{ interface.mtu }} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
- makedirs: True |
|
|
- require: |
|
|
- require: |
|
|
- file: /etc/systemd/system/ifup@{{ interface_name }}.service.d/override.conf |
|
|
- file: /etc/systemd/system/ifup@{{ interface_name }}.service.d/override.conf |
|
|
|
|
|
|