File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ The plugin implements AS-path-mangling nerd knobs for the following platforms:
110
110
| Cisco IOSv/IOSvL2 | ✅ | ✅ | ✅ | ✅ | ✅ |
111
111
| Cisco IOS-XE[ ^ 18v ] | ✅ | ✅ | ✅ | ✅ | ✅ |
112
112
| Cisco Nexus OS | ✅ | ✅ | ✅ | ❌ | ❌ |
113
- | Cumulus Linux | ✅ | ✅ | ✅ | ✅ | ✅ |
113
+ | Cumulus Linux 4.x | ✅ | ✅ | ✅ | ✅ | ✅ |
114
+ | Cumulus 5.x (NVUE) | ✅ | ❌ | ❌ | ❌ | ❌ |
114
115
| FRR | ✅ | ✅ | ✅ | ✅ | ✅ |
115
116
| Junos[ ^ Junos ] | ❌ | ✅ | ❌ | ❌ | ❌ |
116
117
| Mikrotik RouterOS 7 | ✅ | ✅ | ❌ | ❌ | ❌ |
Original file line number Diff line number Diff line change
1
+ ---
2
+ {% macro ebgp_neighbor (n ) -%}
3
+ aspath:
4
+ allow-my-asn:
5
+ enable: {{ 'on' if n.allowas_in|default(False) else 'off' }}
6
+ {% if n .allowas_in |default (0) > 0 %}
7
+ occurrences: {{ n.allowas_in }}
8
+ {% endif %}
9
+ {% endmacro %}
10
+
11
+ {% macro ebgp_config (vrf ,vrf_bgp ) -%}
12
+ {% for n in vrf_bgp .neighbors %}
13
+ {% if loop .first %}
14
+ - set:
15
+ vrf:
16
+ {{ vrf }}:
17
+ router:
18
+ bgp:
19
+ neighbor:
20
+ {% endif %}
21
+ {% for a in ['ipv4' ,'ipv6' ,'local_if' ] if a in n and n [a ] is string %}
22
+ {{ n[a] }}:
23
+ address-family:
24
+ {% for af in ['ipv4' ,'ipv6' ] if af in vrf_bgp %}
25
+ {{ af }}-unicast:
26
+ {{ ebgp_neighbor(n)|indent(20,first=True) }}
27
+ {% endfor %}
28
+ {% if 'evpn' in n %}
29
+ l2vpn-evpn:
30
+ {{ ebgp_neighbor(n)|indent(20,first=True) }}
31
+ {% endif %}
32
+ {% endfor %}
33
+ {% endfor %}
34
+ {% endmacro %}
35
+
36
+ {{ ebgp_config('default',bgp) }}
37
+
38
+ {% if vrfs is defined %}
39
+ {% for vname ,vdata in vrfs .items () if vdata .bgp is defined and vdata .bgp .neighbors is defined %}
40
+ {{ ebgp_config(vname,vdata.bgp) }}
41
+ {% endfor %}
42
+ {% endif %}
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ devices:
35
35
timers : True
36
36
cumulus :
37
37
copy : frr
38
+ cumulus_nvue.features.bgp :
39
+ allowas_in : True
38
40
iosv.features.bgp :
39
41
allowas_in : True
40
42
as_override : True
You can’t perform that action at this time.
0 commit comments