Browse Source

Adds ability to set mtu in reclass

Change of mtu is not handled by reclass. Example interface:
```
        br_ctl:
          enabled: true
          type: bridge
          proto: static
          mtu: 1450
          address: ${_param:single_address}
          gateway: ${_param:ctl_gateway}
          netmask: ${_param:control_network_netmask}
          use_interfaces:
          - ${_param:primary_first_nic}
```
pull/111/head
Ramon Melero 7 years ago
parent
commit
d5a097c931
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      linux/network/interface.sls

+ 3
- 0
linux/network/interface.sls View File

@@ -122,6 +122,9 @@ linux_interface_{{ interface_name }}:
- enabled: {{ interface.enabled }}
- name: {{ interface_name }}
- type: {{ interface.type }}
{% if interface.mtu is defined %}
- mtu: {{ interface.mtu }}
{% endif %}
{%- if interface.address is defined %}
{%- if grains.os_family == 'Debian' %}
- proto: {{ interface.get('proto', 'static') }}

Loading…
Cancel
Save