Allow to provide multiple VLANs
In order to create multiple vlans from the same interface, VLAN key must be repeated multiple times. At the moment our role limits that since vlan can not be a list. We adding an option for vlan being a list at the same time keeping backwards compatability. Change-Id: I94bf2157e1e95c3fd5af318eac8238cd6c3b6fdc
This commit is contained in:
parent
0fbdc22ada
commit
9b9f791377
@ -49,7 +49,13 @@ Bridge={{ item.1.bridge }}
|
||||
{% elif item.1.bond is defined %}
|
||||
Bond={{ item.1.bond }}
|
||||
{% elif item.1.vlan is defined %}
|
||||
{% if item.1.vlan is iterable and item.1.vlan is not string %}
|
||||
{% for vlan in item.1.vlan %}
|
||||
VLAN={{ vlan }}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
VLAN={{ item.1.vlan }}
|
||||
{% endif %}
|
||||
{% elif item.1.macvlan is defined %}
|
||||
MACVLAN={{ item.1.macvlan }}
|
||||
{% elif item.1.vxlan is defined %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user