switch2.py template : snooping port trust -> int
This commit is contained in:
parent
3d5abd7fb3
commit
ab17c9bdcd
1 changed files with 3 additions and 2 deletions
|
@ -74,8 +74,6 @@ no stack
|
||||||
;--- DHCP Snooping ---
|
;--- DHCP Snooping ---
|
||||||
{%- if dhcp_snooping_vlan_names %}
|
{%- if dhcp_snooping_vlan_names %}
|
||||||
dhcp-snooping vlan{% for n in dhcp_snooping_vlan_names %} {{ n|vlan_id }}{% endfor %}
|
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 %}
|
{%- for s in dhcp_servers %}
|
||||||
dhcp-snooping authorized-server {{ s }}
|
dhcp-snooping authorized-server {{ s }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
@ -95,6 +93,9 @@ interface {{ port|int }}
|
||||||
enable
|
enable
|
||||||
name "{{ port }}"
|
name "{{ port }}"
|
||||||
{{ port.flowcontrol() }}
|
{{ port.flowcontrol() }}
|
||||||
|
{%- if port.is_trusted() %}
|
||||||
|
dhcp-snooping trust
|
||||||
|
{%- endif %}
|
||||||
{%- if gigabit %}
|
{%- if gigabit %}
|
||||||
{{ port.speed() }}
|
{{ port.speed() }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue