-
Notifications
You must be signed in to change notification settings - Fork 12
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
add ip origin tracking #135
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add a pristine upstream patch which includes protocol info in ip the ip command. More info: https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=bdb8d85
This file is read by iproute2 and creates valid names for ip proto. Such as "static" in: ip addr add dev e0 192.168.1.1/24 proto static Signed-off-by: Richard Alpe <[email protected]>
This commit is purely cosmetic. Signed-off-by: Richard Alpe <[email protected]>
Add protocol from ip route (kernel) as origin in YANG model. Note, we control the names static and dhcp in the file rt_addrprotos. Signed-off-by: Richard Alpe <[email protected]>
Cosmetic code cleanup. Signed-off-by: Richard Alpe <[email protected]>
Print the origin which is based on info from ip route proto. Signed-off-by: Richard Alpe <[email protected]>
Add a pristine version of default.script to our local board override. The reason for this commit is to track changes we do to it. Signed-off-by: Richard Alpe <[email protected]>
This fixes one bug in Infix, namely that dhcp removes all other statically configured addresses. However it introduces a new one where dhcp renewals with new ip addresses are added as "duplicates", we fix this in a later commit in this patchset. Signed-off-by: Richard Alpe <[email protected]>
Flush addresses during shutdown and renewal with new address. This is kind of a hack and needs further testing. Signed-off-by: Richard Alpe <[email protected]>
There might be more places in confd where this is needed. This works for the most basic use case. The proto set here is picked up by statd and converted into a YANG origin, which is exposed to the user. Signed-off-by: Richard Alpe <[email protected]>
Signed-off-by: Richard Alpe <[email protected]>
rical
force-pushed
the
add-ip-origin-tracking
branch
from
September 18, 2023 09:02
facab1c
to
10167b5
Compare
troglobit
reviewed
Sep 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds ip proto / origin info.
It does this by setting ip/kernel
proto
and converting it to YANGorigin
, which is exposed to the user.NOTE