Skip to content

Commit

Permalink
[202012] dhcprelay add Loopback0 as source interface in dualtor scena…
Browse files Browse the repository at this point in the history
…rio (sonic-net#15744)

#### Why I did it
1. sonic-build image side change to fix source interface selection in dual tor scenario.
dhcprelay related PR:
sonic-net/sonic-dhcp-relay#40

2. Announce dhcprelay submodule to 3578eb3 (to invoke [#40](sonic-net/sonic-dhcp-relay#40
) PR)

##### Work item tracking
- Microsoft ADO 24243215

#### How to verify it
run test case, dhcp_relay/test_dhcpv6_relay.py
  • Loading branch information
jcaiMR authored Jul 25, 2023
1 parent b1e5a7a commit 3c8ae45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[program:dhcp6relay]
command=/usr/sbin/dhcp6relay
{#- Dual ToR Option #}
{% if 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} -d{% endif %}
{% if 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} -u Loopback0 {% endif %}

priority=3
autostart=false
Expand Down
2 changes: 1 addition & 1 deletion src/dhcprelay

0 comments on commit 3c8ae45

Please sign in to comment.