Skip to content
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

"Last error sent:" not included picked up from OpenBGPd for AliceLG #4

Open
moshivji opened this issue Nov 27, 2023 · 0 comments
Open

Comments

@moshivji
Copy link

Is it possible to have the ""Last error sent:" data added to the OpenBGPd-state-server JSON output ?

For example one one of our route-servers we have the output for a rsclient

:~$ obgpd show neighbor 195.66.237.195 
BGP neighbor is 195.66.237.195, remote AS 37273, Passive
 Max-prefix: 500
  BGP state = Idle, down for 03w5d02h
  Last read 03w5d02h, holdtime 240s, keepalive interval 80s
  Last write 03w5d02h

  Message statistics:
                  Sent       Received  
  Opens                   66         57
  Notifications           58          7
  Updates          134123208        147
  Keepalives             171     418922
  Route Refresh            0          0
  Total            134123503     419133

  Update statistics:
                  Sent       Received   Pending   
  Prefixes                 0          0
  Updates                  0          0          0
  Withdraws                0          0          0
  End-of-Rib               0          0
  Route Refresh statistics:
  Request                  0          0
  Begin-of-RR              0          0
  End-of-RR                0          0

  Last error sent: Cease, received max-prefix exceeded

The JSON output from Openbgpd-state-server for the same rsclient shows

{
                        "remote_as": "37273",
                        "group": "clients",
                        "remote_addr": "195.66.237.195",
                        "state": "Idle",
                        "last_updown": "03w5d03h",
                        "last_updown_sec": 2259882,
                        "config": {
                                "template": false,
                                "cloned": false,
                                "passive": true,
                                "down": false,
                                "multihop": false,
                                "max_prefix": 500,
                                "ttl_security": false,
                                "holdtime": 0,
                                "min_holdtime": 0,
                                "announce_capabilities": true,
                                "capabilities": {
                                        "as4byte": true,
                                        "refresh": true,
                                        "enhanced_refresh": false,
                                        "multiprotocol": [
                                                "IPv4 unicast"
                                        ],
                                        "graceful_restart": {
                                                "eor": true,
                                                "restart": false
                                        }
                                }
                        },

and does not include the key for "Last error sent:" field. Can this be added so it aligns with the same key in Birdwatcher , "last_error" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant