From c87ae7784f8fae013571bfa756a3a7d774a7602a Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 7 Feb 2017 02:43:26 +0100 Subject: [PATCH] cpe: syntax fixes --- salt/cpe/ap.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/salt/cpe/ap.sh b/salt/cpe/ap.sh index 3ebcb1a..169014b 100644 --- a/salt/cpe/ap.sh +++ b/salt/cpe/ap.sh @@ -79,7 +79,7 @@ set network.@switch_vlan[{{ switchnum }}].comment='{{ net }}' {% set switchnum = switchnum + 1 %} {%- endfor %} -{% uci_network_mgmt('eth0.1') %} +{{ uci_network_mgmt('eth0.1') }} {%- for net in bridges.keys() %} set network.{{ net }}=interface @@ -115,7 +115,7 @@ set network.@switch_vlan[{{ switchnum }}].comment='{{ net }}' {% set switchnum = switchnum + 1 %} {%- endfor %} -{% uci_network_mgmt('eth0.1') %} +{{ uci_network_mgmt('eth0.1') }} {%- for net in bridges.keys() %} set network.{{ net }}=interface @@ -155,7 +155,7 @@ set network.@switch_vlan[{{ switchnum }}].comment='{{ net }}' {% set switchnum = switchnum + 1 %} {%- endfor %} -{% uci_network_mgmt('eth0.1') %} +{{ uci_network_mgmt('eth0.1') }} {%- for net in bridges.keys() %} set network.{{ net }}=interface @@ -174,7 +174,7 @@ set network.@switch[0].reset=1 set network.@switch[0].enable=1 set network.@switch[0].enable_vlan=0 -{% uci_network_mgmt('eth0.1') %} +{{ uci_network_mgmt('eth0.1') }} {%- for net in bridges.keys() %} @@ -194,7 +194,7 @@ set network.{{ net }}.ifname='{{ ' '.join(ports) }}' {%- elif conf['model'] == 'TL-WA901NDv3' %} {# Only eth0 exists, no switch #} -{% uci_network_mgmt('eth0.1') %} +{{ uci_network_mgmt('eth0.1') }} {%- for net in bridges.keys() %} @@ -233,7 +233,7 @@ set network.@switch_vlan[{{ switchnum }}].comment='{{ net }}' {% set switchnum = switchnum + 1 %} {%- endfor %} -{% uci_network_mgmt('eth0.1') %} +{{ uci_network_mgmt('eth0.1') }} {%- for net in bridges.keys() %} set network.{{ net }}=interface @@ -249,7 +249,7 @@ set network.@switch[0].reset=1 set network.@switch[0].enable=1 set network.@switch[0].enable_vlan=0 -{% uci_network_mgmt('eth1.1') %} +{{ uci_network_mgmt('eth1.1') }} {%- for net in bridges.keys() %}