|
|
|
@ -138,20 +138,19 @@ ipv6 ra-guard ports {{ additionals.ra_guarded|join(',')}}
|
|
|
|
|
{%- endif %}
|
|
|
|
|
;--- Config des prises ---
|
|
|
|
|
{%- for port in switch.ports %}
|
|
|
|
|
{%- if port.get_port_profil.radius_type == "802.1X" %}
|
|
|
|
|
{%- if port.get_port_profile.radius_type == "802.1X" %}
|
|
|
|
|
aaa port-access authenticator {{ port.port }}
|
|
|
|
|
{%- if port.get_port_profil.mac_limit %}
|
|
|
|
|
aaa port-access authenticator {{ port.port }} client-limit {{ port.get_port_profil.mac_limit }}
|
|
|
|
|
{%- if port.get_port_profile.mac_limit %}
|
|
|
|
|
aaa port-access authenticator {{ port.port }} client-limit {{ port.get_port_profile.mac_limit }}
|
|
|
|
|
{%- endif %}
|
|
|
|
|
aaa port-access authenticator {{ port.port }} logoff-period 3600
|
|
|
|
|
{%- endif %}
|
|
|
|
|
{%- if port.get_port_profil.radius_type == "MAC-radius" %}
|
|
|
|
|
{%- if port.get_port_profile.radius_type == "MAC-radius" %}
|
|
|
|
|
aaa port-access mac-based {{ port.port }}
|
|
|
|
|
{%- if port.get_port_profil.mac_limit %}
|
|
|
|
|
aaa port-access mac-based {{ port.port }} addr-limit {{ port.get_port_profil.mac_limit }}
|
|
|
|
|
{%- if port.get_port_profile.mac_limit %}
|
|
|
|
|
aaa port-access mac-based {{ port.port }} addr-limit {{ port.get_port_profile.mac_limit }}
|
|
|
|
|
{%- endif %}
|
|
|
|
|
aaa port-access mac-based {{ port.port }} logoff-period 3600
|
|
|
|
|
aaa port-access mac-based {{ port.port }} unauth-vid 1
|
|
|
|
|
{%- endif %}
|
|
|
|
|
interface {{ port.port }}
|
|
|
|
|
{%- if port.state %}
|
|
|
|
@ -160,20 +159,20 @@ interface {{ port.port }}
|
|
|
|
|
disable
|
|
|
|
|
{%- endif %}
|
|
|
|
|
name "{{ port.pretty_name }}"
|
|
|
|
|
{%- if port.get_port_profil.flow_control %}
|
|
|
|
|
{%- if port.get_port_profile.flow_control %}
|
|
|
|
|
flow-control
|
|
|
|
|
{%- endif %}
|
|
|
|
|
{%- if not port.get_port_profil.dhcp_snooping %}
|
|
|
|
|
{%- if not port.get_port_profile.dhcp_snooping %}
|
|
|
|
|
dhcp-snooping trust
|
|
|
|
|
{%- endif %}
|
|
|
|
|
{%- if not port.get_port_profil.arp_protect %}
|
|
|
|
|
{%- if not port.get_port_profile.arp_protect %}
|
|
|
|
|
arp-protect trust
|
|
|
|
|
{%- endif %}
|
|
|
|
|
{%- if not port.get_port_profil.dhcpv6_snooping %}
|
|
|
|
|
{%- if not port.get_port_profile.dhcpv6_snooping %}
|
|
|
|
|
dhcpv6-snooping trust
|
|
|
|
|
{%- endif %}
|
|
|
|
|
{%- if port.get_port_profil.speed != "auto" %}
|
|
|
|
|
speed-duplex {{port.get_port_profil.speed}}
|
|
|
|
|
{%- if port.get_port_profile.speed != "auto" %}
|
|
|
|
|
speed-duplex {{port.get_port_profile.speed}}
|
|
|
|
|
{%- endif %}
|
|
|
|
|
no lacp
|
|
|
|
|
exit
|
|
|
|
|