-
Notifications
You must be signed in to change notification settings - Fork 370
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 Route info in output of "antctl get bgproutes" #6803
base: main
Are you sure you want to change the base?
Add Route info in output of "antctl get bgproutes" #6803
Conversation
// routes stores all BGP routers advertised to BGP peers. | ||
routes sets.Set[bgp.Route] | ||
// routes stores all BGP routes advertised to BGP peers. | ||
routes map[AdvertisedRouteType]sets.Set[bgp.Route] |
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.
The ability to provide a reference to the K8s object will require a different data structure here.
Personally, I would go with something like this:
type RouteMetadata struct {
Type RouteType
K8sObjRef string
}
routes map[bgp.Route]RouteMetadata
- you can easily get a set of desired routes with
sets.KeySet(c.routes)
, requiring only minimal changes inreconcileBGPAdvertisements
- the handler will transform the data (as it already does) and filter routes if needed (based on type)
f1854c3
to
fbf32fe
Compare
fbf32fe
to
9b3af32
Compare
5d7ebc9
to
0dba864
Compare
Signed-off-by: Kumar Atish <kumar.atish@broadcom.com>
0dba864
to
bb7126a
Compare
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
/test-all |
For #6794