Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add srlinux rfc8950 support #385

Merged
merged 1 commit into from
Sep 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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