summaryrefslogtreecommitdiff
path: root/pceplib/test/pcep_utils_memory_test.h
diff options
context:
space:
mode:
authorTrey Aspelund <taspelund@nvidia.com>2022-11-02 15:09:13 -0400
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>2023-05-24 15:29:32 -0700
commit72eab6953d5638a7a03b1e62a7816317256deed3 (patch)
treec783039d2ff4f7cbbd806d7292cba0730a58df5e /pceplib/test/pcep_utils_memory_test.h
parent254feba0a504f10a372c11567106d85f7102b537 (diff)
ospfd: add oi to show ip ospf interface json
Currently "show ip ospf interface json" will walk all oi's bound to a given interface, but every oi overwrites the same json keys. This adds a new hierarchy to the json output which will allow each oi to have its info displayed separately (instead of stomping on each other). Before: ``` tor-11# show ip ospf interface swp2 json { "interfaces":{ "swp2":{ "ifUp":true, "ifIndex":4, "mtuBytes":9216, "bandwidthMbit":10000, "ifFlags":"<UP,BROADCAST,RUNNING,MULTICAST>", "ospfEnabled":true, "ipAddress":"100.64.3.15", "ipAddressPrefixlen":24, "ospfIfType":"Broadcast", "localIfUsed":"100.64.3.255", "area":"0.0.0.1", "routerId":"6.0.0.15", "networkType":"NBMA", "cost":10, "transmitDelaySecs":1, "state":"Backup", "priority":100, "bdrId":"6.0.0.15", "bdrAddress":"100.64.3.15", "mcastMemberOspfAllRouters":true, "timerMsecs":10000, "timerDeadSecs":40, "timerWaitSecs":40, "timerRetransmitSecs":5, "timerHelloInMsecs":2502, "nbrCount":1, "nbrAdjacentCount":1 } } } ``` After: ``` leaf-12# show ip ospf interface swp3 json { "interfaces":{ "swp3":{ "ifUp":true, "ifIndex":5, "mtuBytes":9216, "bandwidthMbit":10000, "ifFlags":"<UP,BROADCAST,RUNNING,MULTICAST>", "ospfEnabled":true, "interfaceIp":{ "100.64.2.6":{ "ipAddress":"100.64.2.6", "ipAddressPrefixlen":24, "ospfIfType":"Broadcast", "localIfUsed":"100.64.2.255", "area":"0.0.0.0", "routerId":"6.0.0.6", "networkType":"NBMA", "cost":10, "transmitDelaySecs":1, "state":"DR", "priority":2, "bdrId":"6.0.0.15", "bdrAddress":"100.64.2.15", "networkLsaSequence":2147483652, "mcastMemberOspfAllRouters":true, "timerMsecs":10000, "timerDeadSecs":40, "timerWaitSecs":40, "timerRetransmitSecs":5, "timerHelloInMsecs":1559, "nbrCount":1, "nbrAdjacentCount":1 }, "100.64.3.6":{ "ipAddress":"100.64.3.6", "ipAddressPrefixlen":24, "ospfIfType":"Broadcast", "localIfUsed":"100.64.3.255", "area":"0.0.0.1", "routerId":"6.0.0.6", "networkType":"NBMA", "cost":10, "transmitDelaySecs":1, "state":"DR", "priority":222, "bdrId":"6.0.0.15", "bdrAddress":"100.64.3.15", "networkLsaSequence":2147483651, "mcastMemberOspfAllRouters":true, "timerMsecs":10000, "timerDeadSecs":40, "timerWaitSecs":40, "timerRetransmitSecs":5, "timerHelloInMsecs":1559, "nbrCount":1, "nbrAdjacentCount":1 } } } } } ``` Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
Diffstat (limited to 'pceplib/test/pcep_utils_memory_test.h')
0 files changed, 0 insertions, 0 deletions