Skip to content

Commit

Permalink
Improve SVI template
Browse files Browse the repository at this point in the history
  • Loading branch information
Tes3awy committed May 9, 2022
1 parent c531e6e commit de2f52a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions svi.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!Configuration Built on {{ now }}
! Configuration Built on {{ now }}

configure terminal
!
Expand All @@ -9,12 +9,16 @@ exit
!
{% endfor %}
{% for vlan in vlans %}
interface vlan {{ vlan.id }}
interface Vlan {{ vlan.id }}
ip address {{ vlan.ip }} {{ vlan.mask }}
description *** {{ vlan.name|upper }} ***
{% if vlan.helper_addr|string != "nan" %}
{% if vlan.helper_addr|string != "" %}
ip helper-address {{ vlan.helper_addr }}
{% endif %}
no ip proxy-arp
no ip unreachable
no ip redirects
no ip route-cache
no shutdown
exit
!
Expand Down

0 comments on commit de2f52a

Please sign in to comment.