Skip to content

Commit

Permalink
Nokia SR Linux RFC8950 support (#385)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeroen van Bemmel <[email protected]>
  • Loading branch information
jbemmel and jbemmel authored Sep 5, 2022
1 parent 376a422 commit b1438cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions netsim/ansible/templates/bgp/srlinux.macro.j2
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@
- as-number: {{ n.local_as }}
prepend-global-as: {{ not n.replace_global_as|default(True) }} # Don't include iBGP AS in eBGP advertisements
{% endif %}
{% if ('ipv4' in n.activate|default([]) and n.activate[ 'ipv4' ]) or ('ipv6' in n.activate|default([]) and not n.activate[ 'ipv6' ]) %}
{% if n.ipv4_rfc8950|default(False) %}
ipv4-unicast:
advertise-ipv6-next-hops: true
receive-ipv6-next-hops: true
{% endif %}

- path: network-instance[name={{vrf}}]/ip-forwarding
val:
receive-ipv4-check: false
_annotate_receive-ipv4-check: "Allow IPv4 on IPv6 unnumbered interfaces"
{% endif %}

{% for i in interfaces|default([]) if i.ifindex == n.ifindex %}
{% set if_name_index = i.ifname.split('.') %}
Expand Down
2 changes: 1 addition & 1 deletion netsim/ansible/templates/initial/srlinux.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro ip_addresses(intf,ipv6_ra,is_system) %}
{% if 'ipv4' in intf %}
{% if 'ipv4' in intf and intf.ipv4 is string %}
ipv4:
address:
- ip-prefix: "{{ intf.ipv4 }}"
Expand Down
4 changes: 3 additions & 1 deletion netsim/topology-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ devices:
initial:
system_mtu: True
ipv4:
unnumbered: False
unnumbered: True
ipv6:
lla: True
vlan:
Expand All @@ -709,6 +709,8 @@ devices:
vrf_local_as: True
local_as_ibgp: True
activate_af: True
ipv6_lla: True
rfc8950: True
vxlan:
requires: [ evpn, vrf ]
ospf:
Expand Down

0 comments on commit b1438cd

Please sign in to comment.