Selaa lähdekoodia

vlan networking support

tags/2016.12
Jan Kaufman 9 vuotta sitten
vanhempi
commit
6a1ad71c20
2 muutettua tiedostoa jossa 28 lisäystä ja 2 poistoa
  1. +18
    -2
      README.rst
  2. +10
    -0
      linux/network/interface.sls

+ 18
- 2
README.rst Näytä tiedosto

@@ -223,6 +223,22 @@ Linux with bonded interfaces
- 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_in:
- interface: ${linux:interface:bond0}
require:
- interface: ${linux:interface:bond0}


Linux with wireless interface parameters

.. code-block:: yaml
@@ -231,7 +247,7 @@ Linux with wireless interface parameters
network:
enabled: true
gateway: 10.0.0.1
default_interface: eth0
default_interface: eth0
interface:
wlan0:
type: eth
@@ -249,7 +265,7 @@ Linux networks with routes defined
network:
enabled: true
gateway: 10.0.0.1
default_interface: eth0
default_interface: eth0
interface:
eth0:
type: eth

+ 10
- 0
linux/network/interface.sls Näytä tiedosto

@@ -126,6 +126,16 @@ linux_interface_{{ interface_name }}:
- network: linux_interface_{{ network }}
{%- endfor %}
{%- 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 %}


Loading…
Peruuta
Tallenna