grpc: grpc get_session will no longer return peer to peer nodes, they should be invisible to users, updated core-cli to print human readable links better
This commit is contained in:
parent
d480a1dd4c
commit
ab17cb1053
3 changed files with 9 additions and 5 deletions
|
@ -150,12 +150,16 @@ def query_session(args: Namespace) -> None:
|
|||
n2 = names[link.node2_id]
|
||||
print(f"Node | ", end="")
|
||||
print_iface_header()
|
||||
print(f"{n1:<6} | ", end="")
|
||||
if link.HasField("iface1"):
|
||||
print(f"{n1:<6} | ", end="")
|
||||
print_iface(link.iface1)
|
||||
else:
|
||||
print()
|
||||
print(f"{n2:<6} | ", end="")
|
||||
if link.HasField("iface2"):
|
||||
print(f"{n2:<6} | ", end="")
|
||||
print_iface(link.iface2)
|
||||
else:
|
||||
print()
|
||||
print()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue