Skip to content

[dhcp_relay] Properly wait for routed interfaces to be ready before starting relay agent#3441

Merged
jleveque merged 3 commits intosonic-net:masterfrom
jleveque:fix_dhcp_relay_wait_for_intf
Sep 12, 2019
Merged

[dhcp_relay] Properly wait for routed interfaces to be ready before starting relay agent#3441
jleveque merged 3 commits intosonic-net:masterfrom
jleveque:fix_dhcp_relay_wait_for_intf

Conversation

@jleveque
Copy link
Contributor

- What I did

Previous solution wouldn't necessarily wait until interfaces were completely up and configured with an IP address. This solution checks the INTERFACE_TABLE in STATE_DB, which should only report "ok" if the interface is completely up and ready.

Also enhanced the code to only wait for interfaces with an IPv4 address configured, as the DHCP relay agent currently only support IPv4.

@jleveque jleveque merged commit 0e62280 into sonic-net:master Sep 12, 2019
@jleveque jleveque deleted the fix_dhcp_relay_wait_for_intf branch September 12, 2019 17:57
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