-
Notifications
You must be signed in to change notification settings - Fork 380
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
BGP Antctl commands #6209
Comments
Hi, @Atish-iaf! If you're already working on this issue, I would like to be a part of it. CC: @rajnkamr |
Add `antctl get bgppolicy` command to get effective BGP policy applied on the Node. Add `antctl get bgpserver` command to get configuration of BGP server running on the Node. For antrea-io#6209 Signed-off-by: Kumar Atish <[email protected]>
Add `antctl get bgppolicy` agent command to get effective BGP policy applied on the Node. Add `antctl get bgpserver` agent command to get configuration of BGP server running on the Node. For antrea-io#6209 Signed-off-by: Kumar Atish <[email protected]>
Maybe remove the alias
Maybe remove the alias
I'm fine this with one.
IIRC, we can only identify the routes received from remote peers as well as the routes sent to remote peers (by getting the routes from the bgpserver on a Node). cc @antoninbas @tnqn |
For effective policy we might want to have asn, router id and listen port details given that at one time only one bgp policy can be effective however multiple bgp policies could have been applied . may be can add option to display only effective bgp policy name with
Usually this command is equivalent to
for
IMO- can add another command to get bgp peer specific details using gobgp apis ( second phase)
It seems it is possible to filter advertised routes, usually routes which starts with * are advertized routes ! from gobgp standard output
|
What's the difference between "antctl get bgpolicy" and "antctl get bgprouter"? It's better to have fewer commands if possible. For "antctl get bgproutes", we should have the ability to filter by peer. Filtering routes by "type", or being able to tie each route to a specific resource, sounds nice, but I wonder if it is worth it as it may increase the complexity of the implementation without adding too much value. |
|
Makes sense to me as for each bgp peer, a local rib is maintained which could be used to filter routes based on peer, we can have an extension of command |
In this case, I wonder if |
As it provides same information as provided by |
Add `antctl get bgppolicy` agent command to get effective BGP policy applied on the Node. The command is implemented using a new HTTP endpoint (`/bgppolicy`), which will return a `404 Not Found` error if no BGPPolicy has been applied on the Node. For #6209 Signed-off-by: Kumar Atish <[email protected]>
@rajnkamr I suppose this issue can be closed now? |
Yes, antctl bgp PRs and follow up PR is also merged. |
Add `antctl get bgppolicy` agent command to get effective BGP policy applied on the Node. The command is implemented using a new HTTP endpoint (`/bgppolicy`), which will return a `404 Not Found` error if no BGPPolicy has been applied on the Node. For antrea-io#6209 Signed-off-by: Kumar Atish <[email protected]>
antctl
agent command to -get effective BGPPolicy name. (Add "antctl get bgppolicy" agent command #6646)
It is nice to also have some basic info about it like LocalASN, RouterID, ListenPort.
antctl get bgppolicy
(orget bp
) , exclude short nameget bp
get ASN, RouterID and ListenPort directly from local BGP server corresponding to effective BGPPolicy.
It can be helpful in debugging when BGP server is not running properly or its configuration is different from effective BGPPolicy due to some unknown reason.
antctl get bgpserver
(orget bs
) , exclude short nameget bs
This command was earlier excluded , check details here
We replanned to include this command as gobgp binary support is excluded now. details here
get BGP Peers(known by their Address) added to effective BGPPolicy. (Add "antctl get bgppeers" agent command #6689)
It is nice to also have ASN and State of each BGP Peer which can be
unknown
,idle
,active
,established
etc.antctl get bgppeers
, include peer and state in command output, other details will be added later.get routes advertised by effective BGPPolicy. (Add "antctl get bgproutes" agent command #6734)
It is nice to also have Advertisement type for each advertised routes.
AdvertisementType
can beegress
,service
,pod
orall
(defaultall
)antctl get bgproutes --type <AdvertisementType>
( currently excluding--type
, it will be supported later only for advertised routes )antctl get bgproutes --peer <peer-ip-address> --in
or(--out
) for received or advertised routes respectively.--in
or (--out
) is omitted, the command will use--out
(advertised routes) as default.--peer
flag is omitted we will consider routes from all peers depending on--in
or(--out
) flag provided.The text was updated successfully, but these errors were encountered: