[radv] Disable radv for specific deployment_id (#6830)
This commit is contained in:
parent
940944e41c
commit
c9febff961
@ -29,15 +29,18 @@ dependent_startup=true
|
|||||||
|
|
||||||
{# Router advertiser should only run on ToR (T0) devices which have #}
|
{# Router advertiser should only run on ToR (T0) devices which have #}
|
||||||
{# at least one VLAN interface which has an IPv6 address asigned #}
|
{# at least one VLAN interface which has an IPv6 address asigned #}
|
||||||
|
{# But not for specific deployment_id #}
|
||||||
{%- set vlan_v6 = namespace(count=0) -%}
|
{%- set vlan_v6 = namespace(count=0) -%}
|
||||||
{%- if "ToRRouter" in DEVICE_METADATA.localhost.type and DEVICE_METADATA.localhost.type != "MgmtToRRouter" -%}
|
{%- if DEVICE_METADATA.localhost.deployment_id != "8" -%}
|
||||||
{%- if VLAN_INTERFACE -%}
|
{%- if "ToRRouter" in DEVICE_METADATA.localhost.type and DEVICE_METADATA.localhost.type != "MgmtToRRouter" -%}
|
||||||
{%- for (name, prefix) in VLAN_INTERFACE|pfx_filter -%}
|
{%- if VLAN_INTERFACE -%}
|
||||||
{# If this VLAN has an IPv6 address... #}
|
{%- for (name, prefix) in VLAN_INTERFACE|pfx_filter -%}
|
||||||
{%- if prefix | ipv6 -%}
|
{# If this VLAN has an IPv6 address... #}
|
||||||
{%- set vlan_v6.count = vlan_v6.count + 1 -%}
|
{%- if prefix | ipv6 -%}
|
||||||
{%- endif -%}
|
{%- set vlan_v6.count = vlan_v6.count + 1 -%}
|
||||||
{%- endfor -%}
|
{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user