Skip to content

Commit ee89cda

Browse files
authored
Cumulus NVUE rfc8950 support (#1973)
1 parent 3a982d1 commit ee89cda

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/module/bgp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The following features are only supported on a subset of platforms:
6666
| Cisco IOS/IOS XE[^18v] |||||
6767
| Cisco IOS XRv |||||
6868
| Cumulus Linux 4.x |||||
69-
| Cumulus Linux 5.x (NVUE) ||| ||
69+
| Cumulus Linux 5.x (NVUE) ||| ||
7070
| Dell OS10 |||||
7171
| FRR |||||
7272
| Nokia SR Linux |||||

netsim/ansible/templates/bgp/cumulus_nvue.macro.j2

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
{{ n.local_if }}:
5656
type: unnumbered
5757
remote-as: {{ n.as }}
58+
{% if n.ipv4_rfc8950|default(False) %}
59+
capabilities:
60+
extended-nexthop: on
61+
{% endif %}
5862
address-family:
5963
ipv4-unicast:
6064
enable: {{ 'on' if n.ipv4_rfc8950|default(False) else 'off' }}
@@ -68,6 +72,10 @@
6872
{% for af in ('ipv4','ipv6') if af in n and n[af] is string %}
6973
{{ n[af] }}:
7074
description: "{{ n.name }}"
75+
{% if af=='ipv6' and n.ipv4_rfc8950|default(False) %}
76+
capabilities:
77+
extended-nexthop: on
78+
{% endif %}
7179
{% if n._source_ifname is defined %}
7280
update-source: {{ n._source_ifname }}
7381
{% endif %}
@@ -85,7 +93,7 @@
8593
{# NVUE cannot turn off default IPv4 activation, so we have to implement a fix for IPv6 #}
8694
{% if af == 'ipv6' %}
8795
ipv4-unicast:
88-
enable: off
96+
enable: {{ 'on' if n.ipv4_rfc8950|default(False) else 'off' }}
8997
{% endif %}
9098
{{ af }}-unicast:
9199
enable: {{ 'on' if 'activate' not in n or n.activate[af]|default(False) else 'off' }}

netsim/devices/cumulus_nvue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ features:
3131
activate_af: True
3232
import: [ connected, ospf, vrf ]
3333
ipv6_lla: True
34+
rfc8950: true
3435
local_as: True
3536
local_as_ibgp: True
3637
vrf_local_as: False

0 commit comments

Comments
 (0)