diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-01-07 15:43:30 +0200 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-01-07 16:17:11 +0200 | 
| commit | 7a474b87548189e82c40e95010319603771b5e29 (patch) | |
| tree | f11b967912167ecc0356fc101d7d6875ca872db5 /bgpd/bgp_debug.h | |
| parent | d2fe1936d9815a979f1e99afeb32fc5c0f0e0806 (diff) | |
bgpd: Add `debug bgp updates detail` command
When filtering with `debug bgp updates in x.x.x.x prefix-list plist`, we want
to filter out unnecessary messages like:
```
127.0.0.1(Unknown) rcvd UPDATE wlen 0 attrlen 20 alen 5
```
Such a line as above will be repeated for all the paths received and it's useless
without knowing the prefix (because NLRIs are not parsed yet).
But want to see only relevant ones:
```
127.0.0.1(Unknown) rcvd UPDATE w/ attr: nexthop 127.0.0.1, origin i, path 65002
127.0.0.1(Unknown) rcvd 10.255.255.1/32 IPv4 unicast
```
With `debug bgp updates detail` we can combine this to something like:
```
127.0.0.1(Unknown) rcvd UPDATE w/ attr: nexthop 127.0.0.1, origin i, path 65002
127.0.0.1(Unknown) rcvd UPDATE wlen 0 attrlen 20 alen 5
127.0.0.1(Unknown) rcvd 10.255.255.1/32 IPv4 unicast
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_debug.h')
| -rw-r--r-- | bgpd/bgp_debug.h | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_debug.h b/bgpd/bgp_debug.h index 1fc2a87e2c..dd07bda667 100644 --- a/bgpd/bgp_debug.h +++ b/bgpd/bgp_debug.h @@ -112,6 +112,7 @@ struct bgp_debug_filter {  #define BGP_DEBUG_UPDATE_IN           0x01  #define BGP_DEBUG_UPDATE_OUT          0x02  #define BGP_DEBUG_UPDATE_PREFIX       0x04 +#define BGP_DEBUG_UPDATE_DETAIL       0x08  #define BGP_DEBUG_ZEBRA               0x01  #define BGP_DEBUG_ALLOW_MARTIANS      0x01  #define BGP_DEBUG_NHT                 0x01  | 
