From 0f1a89dae7918b1e19940aff23aa85a8686613a3 Mon Sep 17 00:00:00 2001 From: theNetworkChuck <47433490+theNetworkChuck@users.noreply.github.com> Date: Thu, 19 Dec 2019 10:53:19 -0600 Subject: [PATCH] Create template.j2 --- template.j2 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 template.j2 diff --git a/template.j2 b/template.j2 new file mode 100644 index 0000000..f26e124 --- /dev/null +++ b/template.j2 @@ -0,0 +1,25 @@ +! +hostname {{ siteinfo.sitename }} +! +{% for n in range(3) %} +interface GigabitEthernet0/{{ n+1 }} +{% if n+1 == 1 %} + description Connection to Router + switchport mode trunk + switchport trunk allowed vlan 1,7,9 +{% else %} + description Access Port + switchport access vlan 7 + switchport voice vlan 9 + switchport mode access +{% endif %}} +{% endfor %} +! +interface vlan 7 + description Data vlan + ip address {{ siteinfo.vlan7 }} +! +interface vlan 9 + description Voice vlan + ip address {{ siteinfo.vlan9 }} +!