Support de ra guard sur les procurve 2620

This commit is contained in:
Gabriel Detraz 2015-04-20 12:42:52 +02:00
parent 73aa1fe7eb
commit 3b3e554509
2 changed files with 10 additions and 1 deletions

View file

@ -80,7 +80,10 @@ dhcp-snooping authorized-server {{ s }}
; Activation
dhcp-snooping
{%- endif %}
{% if ra_filter %};--- RA guards ---
ipv6 ra-guard ports {{ non_trusted }}
no ipv6 ra-guard ports {{ trusted }}
{% endif %}
;--- Config des prises ---
{%- for port in ports %}
{%- if port.radius_auth() %}

View file

@ -520,6 +520,12 @@ def conf_switch(hostname):
first = netaddr.IPNetwork(net_of_vlan_name(vname)[0]).first
data['dhcp_servers'].append(str(netaddr.IPAddress(first + rid)))
# Ra gards ne concerne que les 2620
if "2620" in switch['info'][0].value:
data['ra_filter'] = True
else:
data['ra_filter'] = False
# Switch avec des ports gigabit uniquement
if imodel in GIGABIT_MODELS:
data['gigabit'] = True