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] Properly wait for routed interfaces to be ready before starting relay agent #3441

Merged
merged 3 commits into from
Sep 12, 2019
Merged

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

merged 3 commits into from
Sep 12, 2019

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