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 [email protected]

- 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.

@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
mssonicbld added a commit that referenced this pull request Nov 20, 2024
…lly (#20853)

#### Why I did it
src/sonic-swss
```
* 1843de47 - (HEAD -> master, origin/master, origin/HEAD) Ensure second route group OID is correct (#3380) (2 hours ago) [Lawrence Lee]
* c86efa18 - Added support for "UNDERLAY_SET_DSCP" and "UNDERLAY_SET_DSCPV6" tables (#3307) (2 hours ago) [siqbal1986]
* 0b331f0d - platform/innovium renaming to platform/marvell-teralynx (#3252) (10 hours ago) [krismarvell]
* c865803e - [mirror] erspan ipv6 underlay (see PR #1817) (#3317) (30 hours ago) [mramezani95]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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