Skip to content
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
12 changes: 9 additions & 3 deletions netsim/ansible/templates/initial/srlinux.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
- path: interface[name={{name}}]/subinterface[index={{index}}]
val:
description: "{{ intf.name | default( 'No description' )|replace('->','~')|regex_replace('[\\[\\]]','') }}"
{% if 'ipv4' in intf and intf.ipv4 is string %}
{% if 'ipv4' in intf and intf.ipv4|bool %}
ipv4:
admin-state: enable
{% if intf.ipv4 is string %}
address:
- ip-prefix: "{{ intf.ipv4 }}"
{% if not is_system %}
{% if not is_system %}
primary: [null]
{% endif %}
{% endif %}
{% else %}
unnumbered:
admin-state: enable
interface: "system0.0"
{% endif %}
{% endif %}
{% if 'ipv6' in intf %}
ipv6:
Expand Down
4 changes: 2 additions & 2 deletions netsim/devices/srlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ features:
unnumbered: False
isis:
unnumbered:
ipv4: False
ipv4: True
ipv6: True
network: False
network: True
vrf:
keep_module: True
ospfv2: True
Expand Down