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 bridge dump support #412
Conversation
67a7a9c
to
51fdede
Compare
Added support of MasterIndex in neighHandle() as I forgot it at first. |
51fdede
to
4270a96
Compare
The code here looks correct. Is it possible to create a test to validate that it is working properly? |
75094cd
to
d20ad42
Compare
I had to change a bit more than I thought for the tests. The only disappointing thing is the need for a vxlan interface in the test as the FDB entries for vxlan interfaces are really close to usual neigh entries and can thus be checked using the same function in the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Anything else needed from me ? |
Please squash your commits into one |
When subscribing to neigh updates, the updates for all neigh protocol families are received. However when listExisting is set, the request is made with AF_UNSPEC family, this request does not include AF_BRIDGE entries. This patch add a second request for AF_BRIDGE entries. Add test for existing AF_BRIDGE entry and make expectNeighUpdate take a slice of expected updates Creates a VXLAN interface for this test as its AF_BRIDGE entries looks a lot like usual ones Also add support for latest (2014+) neighbour attributes NDA_MASTER was added back in 2014, it indicates whether a neigh entry is linked to a master interface and index of this interface. The other entries, namely NDA_LINK_NETNSID and NDA_SRC_VNI were added later and will need extra handling. Signed-off-by: Nicolas Belouin <nicolas.belouin@gandi.net>
d20ad42
to
9f5645c
Compare
LGTM |
This PR add support for bridge neigh entries dump on subscribe and also add a bridge related attribute to neigh structure