leaf: don’t talk BGP at bridges and bonds
This commit is contained in:
parent
9e8db74d24
commit
d789e4a037
|
@ -5,7 +5,7 @@
|
||||||
| map(attribute='address') %}
|
| map(attribute='address') %}
|
||||||
{% set iface_bgp = interfaces
|
{% set iface_bgp = interfaces
|
||||||
| iface_real | selectattr('enabled')
|
| iface_real | selectattr('enabled')
|
||||||
| rejectattr('mgmt_only') | rejectattr('lag') %}
|
| rejectattr('mgmt_only') | rejectattr('bridge') | rejectattr('lag') %}
|
||||||
{% set iface_server = iface_bgp | selectattr('custom_fields.tenant') %}
|
{% set iface_server = iface_bgp | selectattr('custom_fields.tenant') %}
|
||||||
{% set iface_fabric = iface_bgp | difference(iface_server) | rejectattr('ip_addresses') %}
|
{% set iface_fabric = iface_bgp | difference(iface_server) | rejectattr('ip_addresses') %}
|
||||||
{% set my_tenants = iface_server | map(attribute='custom_fields.tenant.slug') | unique -%}
|
{% set my_tenants = iface_server | map(attribute='custom_fields.tenant.slug') | unique -%}
|
||||||
|
|
Loading…
Reference in a new issue