-
Notifications
You must be signed in to change notification settings - Fork 3.4k
statedb tables: add fields to devices and route tables #39178
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
statedb tables: add fields to devices and route tables #39178
Conversation
Looking quite good to me, but please also update the test case https://github.com/cilium/cilium/blob/main/pkg/datapath/linux/testdata/device-controller-tables.txtar. You can just add the column to the test input data, e.g. before:
and after:
The Please expand both the device and route table expected outputs to include the new columns. This way we'll know both that we're populating it correctly from netlink and that we're showing it nicely in e.g. Running the test again after adding the column to the header line will show how it's rendered and you can then update the expected data accordingly. As tests rely on ability to manipulate links you'll need to run them as privileged:
You can find more info about the script tests at https://docs.cilium.io/en/latest/contributing/development/hive/#testing-with-hive-script. |
Thanks for the input. i have added testdata as per your request. Please review and let me know if there any concerns. |
hello @joamaki , please let me know if you are okay with the PR. This is a pre-requisite for autodiscovery of bgp peers. Once this is merged, I will be able to create a PR for it. Thank you for your time. |
/test |
thank you @joamaki , what is the process to get this merged? |
Commit 819666f does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Head branch was pushed to by a user without write access
819666f
to
eb063fb
Compare
i rebased the master so looks like "auto-merge" got removed. |
Please remove the merge commit and rebase instead |
eb063fb
to
4cb82b5
Compare
adding operational status to devices table and priority to route table it is pre-requisite for adding auto-discovery of bgp peers feature to bgp control plane Fixes: cilium#37315 Signed-off-by: Naveen Achyuta <naveen.achyuta22@gmail.com>
4cb82b5
to
59ea262
Compare
@joamaki i removed the merge commit. what do i need to do to get this merged? Thanks |
The changes look good, we'll just need to now make sure CI passes and then we'll be able to merge. |
add priority to route table and operstatus to devices table in testdata for coverage Fixes: 89d360c (add testdata as per the comment from joamaki) Signed-off-by: Naveen Achyuta <naveen.achyuta22@gmail.com>
59ea262
to
9e75c64
Compare
@joamaki there are 12 pending checks. not sure how to trigger it. |
/test |
adding operational status to devices table and priority to route table. it is pre-requisite for adding auto-discovery of bgp peers feature to bgp control plane
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.
This PR is a pre-requisite to fix github issue #37315
for adding auto-discovery of bgp peers (proposal: https://github.com/cilium/design-cfps/blob/main/cilium/CFP-37315-bgp-auto-discovery.md), we need access to operational state of links and priority of routes.
route priority will be used to create bgp sessions with the default gateway of lowest priority default route
operational state of the link will be used to check if the link through which default gateway is reachable is up or not
Steps used to test: