Skip to content

Commit e7b92ef

Browse files
author
Nimuedaertya
committed
eos: move CC lab switch into prod
1 parent 9de3bc7 commit e7b92ef

2 files changed

Lines changed: 29 additions & 29 deletions

File tree

templates/eos/ixp-cc-sw01.dd-ix.net.conf.j2

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "DCS-7050SX-64.conf.j2" %}
1+
{% extends "DCS-7280SR-48C6.conf.j2" %}
22

33
{% block vlans %}
44
vlan 1
@@ -31,45 +31,22 @@ interface Port-Channel43
3131
ipv6 access-group bgp-culling-ipv6 in
3232
{% endif %}
3333
sflow enable
34-
!
35-
{# vxlan: need to do recirculation #}
36-
interface Recirc-Channel1
37-
description REC VxLAN
38-
no switchport
39-
switchport recirculation features vxlan
4034
{% for ifnum in range(1, 49) %}
4135
!
4236
{{ dcs.iface_config("Ethernet", ifnum, switch_vars.interfaces.Ethernet[ifnum]|default({"profile": "unused"})) -}}
4337
{% endfor %}
44-
{% for num in range(49, 53) %}
45-
{% for sub in range(1, 5) %}
46-
{% set ifnum = "%d/%d"|format(num, sub) %}
38+
{% for num in range(49, 55) %}
39+
{% set ifnum = "%d/1"|format(num) %}
4740
!
4841
{{ dcs.iface_config("Ethernet", ifnum, switch_vars.interfaces.Ethernet[ifnum]|default({"profile": "unused"})) -}}
4942
{% endfor %}
50-
{% endfor %}
5143
{% for ifnum, settings in switch_vars.interfaces.Loopback|dictsort %}
5244
!
5345
{{ dcs.iface_config("Loopback", ifnum, settings) -}}
5446
{% endfor %}
5547
!
5648
interface Management1
5749
ipv6 address 2001:db8::1/64
58-
{# vxlan: need to do recirculation #}
59-
{% for ifnum in range(1, 5) %}
60-
!
61-
interface UnconnectedEthernet{{ ifnum }}
62-
description REC VxLAN
63-
traffic-loopback source system device mac
64-
channel-group recirculation 1
65-
{% endfor %}
66-
{# unused UnconnectedEthernet #}
67-
{% for ifnum in range(5, 17) %}
68-
!
69-
interface UnconnectedEthernet{{ ifnum }}
70-
description REC UNUSED
71-
shutdown
72-
{% endfor %}
7350
!
7451
interface Vlan601
7552
description SVI IXP-Mgmt-CC

templates/eos/lab-cc-sw01.dd-ix.net.conf.j2

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "DCS-7280SR-48C6.conf.j2" %}
1+
{% extends "DCS-7050SX-64.conf.j2" %}
22

33
{% block vlans %}
44
vlan 1
@@ -31,22 +31,45 @@ interface Port-Channel43
3131
ipv6 access-group bgp-culling-ipv6 in
3232
{% endif %}
3333
sflow enable
34+
!
35+
{# vxlan: need to do recirculation #}
36+
interface Recirc-Channel1
37+
description REC VxLAN
38+
no switchport
39+
switchport recirculation features vxlan
3440
{% for ifnum in range(1, 49) %}
3541
!
3642
{{ dcs.iface_config("Ethernet", ifnum, switch_vars.interfaces.Ethernet[ifnum]|default({"profile": "unused"})) -}}
3743
{% endfor %}
38-
{% for num in range(49, 55) %}
39-
{% set ifnum = "%d/1"|format(num) %}
44+
{% for num in range(49, 53) %}
45+
{% for sub in range(1, 5) %}
46+
{% set ifnum = "%d/%d"|format(num, sub) %}
4047
!
4148
{{ dcs.iface_config("Ethernet", ifnum, switch_vars.interfaces.Ethernet[ifnum]|default({"profile": "unused"})) -}}
4249
{% endfor %}
50+
{% endfor %}
4351
{% for ifnum, settings in switch_vars.interfaces.Loopback|dictsort %}
4452
!
4553
{{ dcs.iface_config("Loopback", ifnum, settings) -}}
4654
{% endfor %}
4755
!
4856
interface Management1
4957
ipv6 address 2001:db8::1/64
58+
{# vxlan: need to do recirculation #}
59+
{% for ifnum in range(1, 5) %}
60+
!
61+
interface UnconnectedEthernet{{ ifnum }}
62+
description REC VxLAN
63+
traffic-loopback source system device mac
64+
channel-group recirculation 1
65+
{% endfor %}
66+
{# unused UnconnectedEthernet #}
67+
{% for ifnum in range(5, 17) %}
68+
!
69+
interface UnconnectedEthernet{{ ifnum }}
70+
description REC UNUSED
71+
shutdown
72+
{% endfor %}
5073
!
5174
interface Vlan601
5275
description SVI IXP-Mgmt-CC

0 commit comments

Comments
 (0)