File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
ansible/templates/initial Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 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 .ipv 4 is string %}
5+ {% if 'ipv4' in intf and intf .ipv 4| bool %}
66 ipv4:
77 admin-state: enable
8+ {% if intf .ipv 4 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:
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments