Skip to content

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

Merged
jleveque merged 1 commit intosonic-net:masterfrom
wangshengjun:dhcp_relay_bug
Aug 9, 2019
Merged

[dhcp_relay] Only call 'wait_until_iface_ready' once for each interface#3317
jleveque merged 1 commit intosonic-net:masterfrom
wangshengjun:dhcp_relay_bug

Conversation

@wangshengjun
Copy link
Copy Markdown
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
```
* 1843de4 - (HEAD -> master, origin/master, origin/HEAD) Ensure second route group OID is correct (#3380) (2 hours ago) [Lawrence Lee]
* c86efa1 - Added support for "UNDERLAY_SET_DSCP" and "UNDERLAY_SET_DSCPV6" tables (#3307) (2 hours ago) [siqbal1986]
* 0b331f0 - platform/innovium renaming to platform/marvell-teralynx (#3252) (10 hours ago) [krismarvell]
* c865803 - [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