Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isisd: Command 'show isis interface IFNAME json' displays the circuit…
… ID of all interfaces 1.before the commit if the interface exists: sonic# show isis interface lo json { "areas":[ { "area":"10", "circuits":[ { "circuit":13 }, { "circuit":14 }, { "circuit":0, "interface":{ "name":"lo", "state":"Up", "is-passive":"passive", "circuit-id":"0x0", "type":"loopback", "level":"L1", "levels":[ { "level":"L1", "metric":10 } ], "ip-prefix":{ "ip":"7.7.7.7/32" } } } ] } ] } if the interface doesn't exist: sonic# show isis interface abc json { "areas":[ { "area":"10", "circuits":[ { "circuit":13 }, { "circuit":14 }, { "circuit":0 } ] } ] } 2.after the commit if the interface exists: sonic# show isis interface lo json { "areas":[ { "area":"10", "circuits":[ { "circuit":0, "interface":{ "name":"lo", "state":"Up", "is-passive":"passive", "circuit-id":"0x0", "type":"loopback", "level":"L1", "levels":[ { "level":"L1", "metric":10 } ], "ip-prefix":{ "ip":"7.7.7.7/32" } } } ] } ] } if the interface doesn't exist: sonic# show isis interface abc json { "areas":[ { "area":"10", "circuits":[ ] } ] } Signed-off-by: baozhen-H3C <[email protected]>
- Loading branch information