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
11 changes: 11 additions & 0 deletions netsim/ansible/templates/initial/asa.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ name {{ v.loopback.ipv4|ansible.utils.ipaddr('address') }} {{ k }}
{% endfor %}
{% endif %}
!
{% if loopback is defined %}
interface {{ loopback.ifname }}
nameif {{ loopback.ifname }}
{% if 'ipv4' in loopback %}
ip address {{ loopback.ipv4|ansible.utils.ipaddr('address') }} {{ loopback.ipv4|ansible.utils.ipaddr('netmask') }}
{% endif %}
{% if 'ipv6' in loopback %}
ipv6 address {{ loopback.ipv6|upper }}
{% endif %}
{% endif %}
!
{% for l in interfaces|default([]) %}
interface {{ l.ifname }}
{% if l.shutdown|default(False) %}
Expand Down
2 changes: 2 additions & 0 deletions netsim/devices/asav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
description: Cisco ASAv
support:
level: minimal
loopback_interface_name: Loopback{ifindex}
loopback: false
interface_name: GigabitEthernet0/{ifindex}
ifindex_offset: 0
mgmt_if: Management0/0
Expand Down
Loading