Browse Source

Merge branch 'vlans' into 'master'

VLAN networking support

this should add VLAN networking setup.
from DOCs..
```
bond0.10:
  network.managed:
    - type: vlan
    - ipaddr: 10.1.0.4
    - use:
      - network: bond0
    - require:
      - network: bond0
```

See merge request !9
tags/2016.12
Filip Pytloun 9 years ago
parent
commit
0a0da4078b
2 changed files with 25 additions and 2 deletions
  1. +15
    -2
      README.rst
  2. +10
    -0
      linux/network/interface.sls

+ 15
- 2
README.rst View File

- interface: ${linux:interface:eth0} - interface: ${linux:interface:eth0}
- interface: ${linux:interface:eth0} - interface: ${linux:interface:eth0}


Linux with vlan interface_params

.. code-block:: yaml

linux:
network:
enabled: true
interface:
vlan69:
type: vlan
use_interfaces:
- interface: ${linux:interface:bond0}

Linux with wireless interface parameters Linux with wireless interface parameters


.. code-block:: yaml .. code-block:: yaml
network: network:
enabled: true enabled: true
gateway: 10.0.0.1 gateway: 10.0.0.1
default_interface: eth0
default_interface: eth0
interface: interface:
wlan0: wlan0:
type: eth type: eth
network: network:
enabled: true enabled: true
gateway: 10.0.0.1 gateway: 10.0.0.1
default_interface: eth0
default_interface: eth0
interface: interface:
eth0: eth0:
type: eth type: eth

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

- network: linux_interface_{{ network }} - network: linux_interface_{{ network }}
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
{%- if interface.type == 'vlan' %}
- use:
{%- for network in interface.use_interfaces %}
- network: {{ network }}
{%- endfor %}
- require:
{%- for network in interface.use_interfaces %}
- network: {{ network }}
{%- endfor %}
{%- endif %}


{%- if interface.gateway is defined %} {%- if interface.gateway is defined %}



Loading…
Cancel
Save