Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CUMULUS] tools: gdb macro to print zebra rn
gdb macro to print route node entry in zebra. Given a pointer to route node structure in zebra, it prints the contents of route node, get the rib_dst_t and print the router entires for that route node. Testing: (gdb) source ~/zebra_print_route_node Redefine command "print_route_entry"? (y or n) [answered Y; input not from terminal] Redefine command "iterate_route_entries"? (y or n) [answered Y; input not from terminal] Redefine command "print_route_node"? (y or n) [answered Y; input not from terminal] (gdb) print 0x55958669a0e0 $1 = 94100693557472 (gdb) print_route_node 0x55958669a0e0 Iterating over route entries: Route Entry: NHE: 0x559586699d50 NHE ID: 114 NHE Installed ID: 0 Type: 2 VRF ID: 0 Table: 254 Metric: 0 MTU: 0 Nexthop MTU: 0 Flags: 264 Status: 2 Dplane Sequence: 0 Instance: 0 Distance: 0 Tag: 0 Uptime: 147628904433685 Opaque: (nil) (gdb) Ticket: #4029525 Signed-off-by: Karthikeya Venkat Muppalla <kmuppalla@nvidia.com>
- Loading branch information