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

Acquire neighboring router MAC dynamically #615

Closed
wants to merge 16 commits into from

Conversation

PlagueCZ
Copy link
Contributor

@PlagueCZ PlagueCZ commented Oct 1, 2024

Currently dpservice acquires neighboring router MAC addresses during initialization.

Not only this is a problem if there is a port replaced on a switch (thus the MAC changes), but in multiport-eswitch with pf1-proxy, the MAC is taken from the proxy port. But without dpservice running, there are no neigbors registered (because the proxy interface is effectively dead at that time), so the MAC needs to be loaded dynamically after a while.

Thus I added a mechanism that in case of a missing neighboring router MAC, a timer is started and the retrieval is retried again later.

The timer has an exponential backoff, starting with 1s and doubled each time, until it reaches 60s.

This PR is best read commit-by commit, since that shows the evolution of all the changes.

Connected to #606


There was also a need for the init container to fail when some of the values for dp_service.conf were not available. I lumped it together here as there were already changes to the prepare script, but this can be separated if needed.

@github-actions github-actions bot added size/XXL documentation Improvements or additions to documentation enhancement New feature or request labels Oct 1, 2024
@PlagueCZ PlagueCZ force-pushed the feature/dynamic_neighmac branch 5 times, most recently from cbb2a2c to 2d35767 Compare October 7, 2024 15:35
@PlagueCZ PlagueCZ marked this pull request as ready for review October 17, 2024 22:25
@PlagueCZ PlagueCZ requested a review from a team as a code owner October 17, 2024 22:25
@PlagueCZ
Copy link
Contributor Author

Closing due to pending commits from previous PR (something I do not remember working like this in the past)

@PlagueCZ PlagueCZ closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant