Skip to content

Commit b066b36

Browse files
authored
SR Linux: IS-IS over IPv4 unnumbered interfaces (#1142)
Requires SR Linux release 24.3.1 or above
1 parent 577af3c commit b066b36

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

netsim/ansible/templates/initial/srlinux.j2

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
- path: interface[name={{name}}]/subinterface[index={{index}}]
33
val:
44
description: "{{ intf.name | default( 'No description' )|replace('->','~')|regex_replace('[\\[\\]]','') }}"
5-
{% if 'ipv4' in intf and intf.ipv4 is string %}
5+
{% if 'ipv4' in intf and intf.ipv4|bool %}
66
ipv4:
77
admin-state: enable
8+
{% if intf.ipv4 is string %}
89
address:
910
- ip-prefix: "{{ intf.ipv4 }}"
10-
{% if not is_system %}
11+
{% if not is_system %}
1112
primary: [null]
12-
{% endif %}
13+
{% endif %}
14+
{% else %}
15+
unnumbered:
16+
admin-state: enable
17+
interface: "system0.0"
18+
{% endif %}
1319
{% endif %}
1420
{% if 'ipv6' in intf %}
1521
ipv6:

netsim/devices/srlinux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ features:
5454
unnumbered: False
5555
isis:
5656
unnumbered:
57-
ipv4: False
57+
ipv4: True
5858
ipv6: True
59-
network: False
59+
network: True
6060
vrf:
6161
keep_module: True
6262
ospfv2: True

0 commit comments

Comments
 (0)