Skip to content

Commit cb792ae

Browse files
qiluo-msftCarl Keene
authored and
Carl Keene
committed
[radv] Disable radv for specific deployment_id (sonic-net#6830)
1 parent 8f23197 commit cb792ae

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

dockers/docker-router-advertiser/docker-router-advertiser.supervisord.conf.j2

+11-8
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ dependent_startup_wait_for=rsyslogd:running
4040

4141
{# Router advertiser should only run on ToR (T0) devices which have #}
4242
{# at least one VLAN interface which has an IPv6 address asigned #}
43+
{# But not for specific deployment_id #}
4344
{%- set vlan_v6 = namespace(count=0) -%}
44-
{%- if "ToRRouter" in DEVICE_METADATA.localhost.type and DEVICE_METADATA.localhost.type != "MgmtToRRouter" -%}
45-
{%- if VLAN_INTERFACE -%}
46-
{%- for (name, prefix) in VLAN_INTERFACE|pfx_filter -%}
47-
{# If this VLAN has an IPv6 address... #}
48-
{%- if prefix | ipv6 -%}
49-
{%- set vlan_v6.count = vlan_v6.count + 1 -%}
50-
{%- endif -%}
51-
{%- endfor -%}
45+
{%- if DEVICE_METADATA.localhost.deployment_id != "8" -%}
46+
{%- if "ToRRouter" in DEVICE_METADATA.localhost.type and DEVICE_METADATA.localhost.type != "MgmtToRRouter" -%}
47+
{%- if VLAN_INTERFACE -%}
48+
{%- for (name, prefix) in VLAN_INTERFACE|pfx_filter -%}
49+
{# If this VLAN has an IPv6 address... #}
50+
{%- if prefix | ipv6 -%}
51+
{%- set vlan_v6.count = vlan_v6.count + 1 -%}
52+
{%- endif -%}
53+
{%- endfor -%}
54+
{%- endif -%}
5255
{%- endif -%}
5356
{%- endif -%}
5457

0 commit comments

Comments
 (0)