Fix conditional checks with inventory_hostname

This commit is contained in:
2020-04-06 12:36:35 -04:00
parent 2afccf44fb
commit fe40811f2b
3 changed files with 9 additions and 9 deletions

View File

@ -16,7 +16,7 @@ line vty
! BGP EVPN mesh configuration
!
router bgp {{ pvc_asn }}
bgp router-id {% for node in pvc_nodes if node.hostname == ansible_hostname %}{{ node.router_id }}{% endfor %}
bgp router-id {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.router_id }}{% endfor %}
no bgp default ipv4-unicast
! BGP sessions with route reflectors