-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
zebra: show command to display metaq info #18497
base: master
Are you sure you want to change the base?
Conversation
Thanks @krishna-samy . Can you please move the |
87fa775
to
d182823
Compare
@Jafaral - Done |
have you looked at lib/termtable - we have some infra that helps with tables? and it looks like it may have some json help too? |
Display below info from metaq and sub queues 1. Current queue size 2. Max/Highwater size 3. Total number of events received fo so far r1# sh zebra metaq MetaQ Summary Current Size : 0 Max Size : 9 Total : 20 |------------------------------------------------------------------| | SubQ | Current | Max Size | Total | |----------------------------------+----------+-----------+--------| | NHG Objects | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | EVPN/VxLan Objects | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | Early Route Processing | 0 | 8 | 11 | |----------------------------------+----------+-----------+--------| | Early Label Handling | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | Connected Routes | 0 | 6 | 9 | |----------------------------------+----------+-----------+--------| | Kernel Routes | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | Static Routes | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | RIP/OSPF/ISIS/EIGRP/NHRP Routes | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | BGP Routes | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | Other Routes | 0 | 0 | 0 | |----------------------------------+----------+-----------+--------| | Graceful Restart | 0 | 0 | 0 | |------------------------------------------------------------------| Signed-off-by: Krishnasamy <[email protected]>
d182823
to
cd020be
Compare
Output
r1# sh zebra metaq json |
@mjstapp - Done. Please check |
neat, thanks - but it looks like the subqueue numbers are presented as strings in their json objects - only the top-level object is using integers? can you show the ttable text output too, so we can see it?
|
@mjstapp |
@mjstapp |
|
||
/* Convert the table to JSON and add it to the main JSON object */ | ||
/* n = name/string, u = unsigned int */ | ||
json_object *json_table = ttable_json(tt, "nuuu"); |
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.
looking at the lib, that format string should be "sddd" ?
Display below info from metaq and sub queues