forked from dd-ix/ddix-ansible-ixp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathixp-c2-sw01.dd-ix.net.conf.j2
73 lines (63 loc) · 1.5 KB
/
ixp-c2-sw01.dd-ix.net.conf.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{% extends "DCS-7050SX-64.conf.j2" %}
{% block vlans %}
{# metro-spanning peering lan #}
vlan 600
name IXP-Peering
!
{# on-site management access #}
vlan 602
name IXP-Mgmt-C2
!
{# on-site quarantine #}
vlan 666
name IXP-Quarantine-C2
!
{% endblock %}
{% block interfaces %}
interface Port-Channel43
description L2T ixp-rs02
switchport trunk allowed vlan 600,602
switchport mode trunk
!
{# vxlan: need to do recirculation #}
interface Recirc-Channel1
description REC VxLAN
no switchport
switchport recirculation features vxlan
{% for ifnum in range(1, 48) %}
!
{{ dcs.iface_config("Ethernet", ifnum, switch_vars.interfaces.Ethernet[ifnum]|default({"profile": "unused"})) -}}
{% endfor %}
{% for ifnum, settings in switch_vars.interfaces.Loopback|dictsort %}
!
{{ dcs.iface_config("Loopback", ifnum, settings) -}}
{% endfor %}
!
interface Management1
ipv6 address 2001:db8::2/64
{# vxlan: need to do recirculation #}
{% for ifnum in range(1, 4) %}
!
interface UnconnectedEthernet{{ ifnum }}
description REC VxLAN
traffic-loopback source system device mac
channel-group recirculation 1
{% endfor %}
{# unused UnconnectedEthernet #}
{% for ifnum in range(5, 16) %}
!
interface UnconnectedEthernet{{ ifnum }}
description REC UNUSED
shutdown
{% endfor %}
!
{% endblock %}
{% block mac_address_table %}
{# Peers: static mac-address table entries #}
{{ dcs.mac_address_table() }}
!
{% endblock %}
{% block routes %}
ipv6 route vrf inband-mgmt ::/0 2a01:7700:80b0:4100::1
!
{% endblock %}