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
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/dpu-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/m0-mx.j2
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -104,7 +104,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t0-8-lag-leaf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t0-backend-leaf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -138,7 +138,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
6 changes: 3 additions & 3 deletions ansible/roles/eos/templates/t0-isolated-d2u254s1-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t0-leaf-lag-2.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t0-leaf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
Expand All @@ -112,7 +112,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} route-reflector-client
neighbor {{ remote_ip }} additional-paths send any
{% endif %}
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t0-mclag-leaf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t0-v6-leaf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['bgp']['router-id'] | ipaddr('address') }}
router-id {{ host['bgp']['router-id'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-28-lag-spine.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-28-lag-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -112,7 +112,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-48-lag-spine.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-48-lag-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -111,7 +111,7 @@ router bgp {{ host['bgp']['asn'] }}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-56-lag-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -112,7 +112,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-64-lag-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -112,7 +112,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-8-lag-spine.j2
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-8-lag-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -110,7 +110,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-backend-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -138,7 +138,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-lag-spine.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
6 changes: 3 additions & 3 deletions ansible/roles/eos/templates/t1-lag-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['bgp']['router-id'] if host['bgp']['router-id'] is defined else host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-smartswitch-ha-spine.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
{% for asn, remote_ips in host['bgp']['peers'].items() %}
{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/eos/templates/t1-smartswitch-ha-tor.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ interface {{ bp_ifname }}
no shutdown
!
router bgp {{ host['bgp']['asn'] }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ipaddr('address') }}
router-id {{ host['interfaces']['Loopback0']['ipv4'] | ansible.utils.ipaddr('address') }}
!
graceful-restart restart-time {{ bgp_gr_timer }}
graceful-restart
Expand All @@ -111,7 +111,7 @@ router bgp {{ host['bgp']['asn'] }}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
{% if remote_ip | ipv6 %}
{% if remote_ip | ansible.utils.ipv6 %}
address-family ipv6
neighbor {{ remote_ip }} activate
exit
Expand Down
Loading
Loading