Formatage de certains options non correct

master
chirac 6 years ago
parent 465c96492e
commit 9566a0d670

@ -3,7 +3,9 @@
hostname "{{ switch.short_name }}" hostname "{{ switch.short_name }}"
; Generated on {{ date_gen }} by re2o ; Generated on {{ date_gen }} by re2o
;--- Snmp --- ;--- Snmp ---
{%- if switch.switchbay.name %}
snmp-server location "{{ switch.switchbay.name }}" snmp-server location "{{ switch.switchbay.name }}"
{%- endif %}
;A faire à la main ;A faire à la main
snmpv3 enable snmpv3 enable
snmpv3 restricted-access snmpv3 restricted-access
@ -45,10 +47,10 @@ max-vlans 256
vlan {{ id }} vlan {{ id }}
name "{{ vlan["name"]|capitalize }}" name "{{ vlan["name"]|capitalize }}"
{%- if vlan["ports_tagged"] %} {%- if vlan["ports_tagged"] %}
tagged {{ vlan["ports_tagged"]|join(' ') }} tagged {{ vlan["ports_tagged"]|join(',') }}
{%- endif %} {%- endif %}
{%- if vlan["ports_untagged"] %} {%- if vlan["ports_untagged"] %}
untagged {{ vlan["ports_untagged"]|join(' ') }} untagged {{ vlan["ports_untagged"]|join(',') }}
{%- endif %} {%- endif %}
{%- if switch.subnet.0.vlan_id == id %} {%- if switch.subnet.0.vlan_id == id %}
ip address {{ switch.ipv4 }} {{ switch.subnet.0.netmask }} ip address {{ switch.ipv4 }} {{ switch.subnet.0.netmask }}
@ -86,7 +88,7 @@ ipv6 authorized-managers {{ switch.subnet6.network }} {{ switch.subnet6.netmask
;--- Protection contre les boucles --- ;--- Protection contre les boucles ---
loop-protect disable-timer 30 loop-protect disable-timer 30
loop-protect transmit-interval 3 loop-protect transmit-interval 3
loop-protect {{ additionals.loop_protected|join(' ') }} loop-protect {{ additionals.loop_protected|join(',') }}
{%- endif %} {%- endif %}
;--- Serveurs Radius ;--- Serveurs Radius
radius-server dead-time 2 radius-server dead-time 2
@ -126,7 +128,7 @@ dhcpv6-snooping
{%- endif %} {%- endif %}
{%- if additionals.ra_guarded %} {%- if additionals.ra_guarded %}
;--- RA guards --- ;--- RA guards ---
ipv6 ra-guard ports {{ additionals.ra_guarded|join(' ')}} ipv6 ra-guard ports {{ additionals.ra_guarded|join(',')}}
{%- endif %} {%- endif %}
;--- Config des prises --- ;--- Config des prises ---
{%- for port in switch.ports %} {%- for port in switch.ports %}
@ -153,7 +155,7 @@ interface {{ port.port }}
{%- endif %} {%- endif %}
name "{{ port.pretty_name }}" name "{{ port.pretty_name }}"
{%- if port.get_port_profil.flow_control %} {%- if port.get_port_profil.flow_control %}
flow control flow-control
{%- endif %} {%- endif %}
{%- if not port.get_port_profil.dhcp_snooping %} {%- if not port.get_port_profil.dhcp_snooping %}
dhcp-snooping trust dhcp-snooping trust

Loading…
Cancel
Save