New ansible support (again)
This commit is contained in:
parent
3ff4ed5a77
commit
518c3bc7b8
12 changed files with 33 additions and 33 deletions
|
|
@ -2,12 +2,12 @@
|
|||
| selectattr('name', '==', 'lo')
|
||||
| map(attribute='ip_addresses') | first
|
||||
| selectattr('role') | selectattr('role.value', '==', 'loopback')
|
||||
| map(attribute='address') | ipv4 | first | ipaddr('address') %}
|
||||
| map(attribute='address') | ansible.utils.ipv4 | first | ansible.utils.ipaddr('address') %}
|
||||
{% set anycast_ip = interfaces
|
||||
| selectattr('name', '==', 'lo')
|
||||
| map(attribute='ip_addresses') | first
|
||||
| selectattr('role') | selectattr('role.value', '==', 'anycast')
|
||||
| map(attribute='address') | ipv4 | first | ipaddr('address') -%}
|
||||
| map(attribute='address') | ansible.utils.ipv4 | first | ansible.utils.ipaddr('address') -%}
|
||||
|
||||
# Peer link to the other switch.
|
||||
auto peerlink.4094
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue