From ab17c9bdcd8ce133af71667fc3b626fde1e076e7 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 11 Mar 2015 20:14:17 +0100 Subject: [PATCH] switch2.py template : snooping port trust -> int --- gestion/gen_confs/switch_conf.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gestion/gen_confs/switch_conf.tpl b/gestion/gen_confs/switch_conf.tpl index 96e5400e..bef331d9 100644 --- a/gestion/gen_confs/switch_conf.tpl +++ b/gestion/gen_confs/switch_conf.tpl @@ -74,8 +74,6 @@ no stack ;--- DHCP Snooping --- {%- if dhcp_snooping_vlan_names %} dhcp-snooping vlan{% for n in dhcp_snooping_vlan_names %} {{ n|vlan_id }}{% endfor %} -dhcp-snooping trust {{ trusted }} -no dhcp-snooping trust {{ non_trusted }} {%- for s in dhcp_servers %} dhcp-snooping authorized-server {{ s }} {%- endfor %} @@ -95,6 +93,9 @@ interface {{ port|int }} enable name "{{ port }}" {{ port.flowcontrol() }} + {%- if port.is_trusted() %} + dhcp-snooping trust + {%- endif %} {%- if gigabit %} {{ port.speed() }} {%- endif %}