[radv] Disable radv for specific deployment_id (#6830)

This commit is contained in:
Qi Luo 2021-02-20 11:01:12 -08:00 committed by Abhishek Dosi
parent 940944e41c
commit c9febff961

View File

@ -29,8 +29,10 @@ 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 "ToRRouter" in DEVICE_METADATA.localhost.type and DEVICE_METADATA.localhost.type != "MgmtToRRouter" -%}
{%- if VLAN_INTERFACE -%} {%- if VLAN_INTERFACE -%}
{%- for (name, prefix) in VLAN_INTERFACE|pfx_filter -%} {%- for (name, prefix) in VLAN_INTERFACE|pfx_filter -%}
{# If this VLAN has an IPv6 address... #} {# If this VLAN has an IPv6 address... #}
@ -39,6 +41,7 @@ dependent_startup=true
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor -%}
{%- endif -%} {%- endif -%}
{%- endif -%}
{%- endif -%} {%- endif -%}
{%- if vlan_v6.count > 0 %} {%- if vlan_v6.count > 0 %}