manage brdige without interfaces
This commit is contained in:
parent
d786b25c5b
commit
cd516e3e18
2 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,8 @@ iface {{ item.key }} inet manual
|
|||
{% if 'bridge' in item.value and item.value.bridge %}
|
||||
{% if 'interfaces' in item.value and item.value.interfaces %}
|
||||
bridge-ports {{ item.value.interfaces | join(' ') }}
|
||||
{% else %}
|
||||
bridge-ports none
|
||||
{% endif %}
|
||||
bridge-stp off
|
||||
bridge-fd 0
|
||||
|
|
|
@ -41,6 +41,8 @@ network:
|
|||
{{ item.key }}:
|
||||
{% if 'interfaces' in item.value and item.value.interfaces %}
|
||||
interfaces: [ {{ item.value.interfaces | join(', ') }} ]
|
||||
{% else %}
|
||||
interfaces: []
|
||||
{% endif %}
|
||||
{% if item.value.type == 'dhcp' %}
|
||||
dhcp4: true
|
||||
|
|
Loading…
Reference in a new issue