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

[router-advertiser] Add templated script to wait for pertinent interfaces to be ready before starting radvd #2558

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Feb 13, 2019

Add a wait_for_intf.sh.j2 template which, once generated, will create a script which will cause the container to wait for all VLAN interfaces to be ready before starting the radvd process.

This ensures that all interfaces which radvd needs to bind to to send router advertisements on are fully created and up before binding to them. It doesn't appear that this poses a problem for radvd as it does for dhcrelay (it's possible that radvd will attempt to rebind, whereas dhcrelay does not. I haven't examined the code), however I am applying the same mechanism to wait in this container as well just to ensure the radvd daemon is started after the pertinent interfaces are created and up.

@lguohan
Copy link
Collaborator

lguohan commented Feb 16, 2019

can you describe the problem that this pr solves?

@jleveque
Copy link
Contributor Author

@lguohan: Added details to PR description.

@lguohan lguohan merged commit b480370 into sonic-net:master Mar 2, 2019
@jleveque jleveque deleted the radv_wait_for_intf branch March 4, 2019 18:49
@yxieca
Copy link
Contributor

yxieca commented Mar 7, 2019

Made to 201811 branch on 3/6/2019

yxieca added a commit that referenced this pull request Mar 7, 2019
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
tiantianlv pushed a commit to SONIC-DEV/sonic-buildimage that referenced this pull request Apr 10, 2019
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