patch typo + make it look like actual config

This commit is contained in:
Michaël Paulon 2020-09-29 23:54:40 +02:00
parent 0aa15d15c6
commit 135e9da414

View file

@ -43,13 +43,16 @@ ip dns server-address priority {{ loop.index }} {{ d }}
{%- endfor %} {%- endfor %}
ip ssh filetransfer ip ssh filetransfer
{%- for i6 in ipv6_managers.values() %} {%- for i6 in ipv6_managers.values() %}
ipv6 authorized-managers {{ i6.ip }} {{ i6.subnet }} access manager ipv6 authorized-managers {{ i6.ip }} {{ i6.subnet }} access manager
{%- endfor %} {%- endfor %}
{%- if ra_guard_ports %} {%- if ra_guard_ports %}
ipv6 ra-guard ports {{ ra_guard_ports }} ipv6 ra-guard ports {{ ra_guard_ports }}
{%- endif %} {%- endif %}
{%- for iface in interfaces %} {%- for iface in interfaces %}
interface {{ iface.number }} interface {{ iface.number }}
{%- if iface.flowcontrol %}
flow-control
{%- endif %}
name "{{ iface.name }}" name "{{ iface.name }}"
{%- if iface.dhcp_trust %} {%- if iface.dhcp_trust %}
dhcp-snooping trust dhcp-snooping trust
@ -57,9 +60,6 @@ interface {{ iface.number }}
{%- if iface.dhcpv6_trust %} {%- if iface.dhcpv6_trust %}
dhcpv6-snooping trust dhcpv6-snooping trust
{%- endif %} {%- endif %}
{%- if iface.flowcontrol %}
flow-control
{% endif %}
{%- if iface.arp_trust %} {%- if iface.arp_trust %}
arp-protect trust arp-protect trust
{%- endif %} {%- endif %}