From c001f2b916bf5f0b40498ed1db467bc806edc30a Mon Sep 17 00:00:00 2001 From: kellyyeh <42761586+kellyyeh@users.noreply.github.com> Date: Fri, 21 Oct 2022 10:33:10 -0700 Subject: [PATCH] Add dhcp6relay dualtor option (#12459) --- dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2 b/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2 index cca0b1c4b2..8f83e05efc 100644 --- a/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2 +++ b/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2 @@ -12,6 +12,9 @@ {% set _dummy = relay_for_ipv6.update({'flag': False}) %} [program:dhcp6relay] command=/usr/sbin/dhcp6relay +{#- Dual ToR Option #} +{% if 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} -d{% endif %} + priority=3 autostart=false autorestart=false