Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dhcp_relay] Only call 'wait_until_iface_ready' once for each interface #3317

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

wangshengjun
Copy link
Contributor

[dhcp_relay]'wait_for_init.sh.j2' translate duplicate if the interface has both ipv4 and ipv6 address #3316

Signed-off-by: wangshengjun wangshengjun@asterfusion.com

- What I did
When the interface has configured both ipv4 and ipv6 address, the 'wait_until_iface_ready' function called twice .So the j2 template of 'wait_for_init.sh.j2' was changed to fix the problem.
- How I did it

- How to verify it
1.configure the interface with both ipv4 and ipv6 addresses.
part of config file
....
"PORTCHANNEL_INTERFACE": {
"PortChannel0001": {},
"PortChannel0002": {},
"PortChannel0001|10.0.0.56/31": {},
"PortChannel0001|FC00::71/126": {},
"PortChannel0002|10.0.0.58/31": {},
"PortChannel0002|FC00::75/126": {}
},
...
2.check the 'wait_for_init.sh' translated by 'wait_for_init.sh.j2' according to the configuration.
function wait_until_iface_ready
{
.....
}
Wait for all interfaces to be up and ready
wait_until_iface_ready ${LAG_TABLE_PREFIX} PortChannel0001
wait_until_iface_ready ${LAG_TABLE_PREFIX} PortChannel0002

The 'wait_until_iface_ready' function should call once for each interface.

…each interface.(sonic-net#3316)

Signed-off-by: wangshengjun <wangshengjun@asterfusion.com>
@wangshengjun wangshengjun changed the title [dhcp_relay]the function of 'wait_until_iface_ready' called once for … [dhcp_relay]: the function of 'wait_until_iface_ready' called once for each interface.(#3316) Aug 9, 2019
@jleveque jleveque changed the title [dhcp_relay]: the function of 'wait_until_iface_ready' called once for each interface.(#3316) [dhcp_relay] Only call 'wait_until_iface_ready' once for each interface Aug 9, 2019
@jleveque jleveque merged commit 7b0389d into sonic-net:master Aug 9, 2019
wangshengjun added a commit to wangshengjun/sonic-buildimage that referenced this pull request Nov 16, 2020
…ce (sonic-net#3317)

Signed-off-by: wangshengjun <wangshengjun@asterfusion.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants