diff options
author | Oliver Smith <osmith@sysmocom.de> | 2024-01-16 18:25:17 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2024-01-16 18:25:17 +0100 |
commit | fb2387965136ebcf2ed13f6a0059947be356c65a (patch) | |
tree | 395c9ea13332e73643a2ec93e1f85640faa93bf3 | |
parent | 1cfec9d2c98593f813d77246494f5396201ec88e (diff) |
vty: show mscs: tweak output
Make the output more readable and split it over two lines, in
preparation to add more information in the next patch.
Before:
OsmoBSC> show mscs
0 m3ua RI=SSN_PC,PC=0.23.3,SSN=BSSAP RI=SSN_PC,PC=0.23.1,SSN=BSSAP
After:
OsmoBSC> show mscs
MSC 0: RI=SSN_PC,PC=0.23.3,SSN=BSSAP <-> RI=SSN_PC,PC=0.23.1,SSN=BSSAP
ASP protocol: m3ua
Related: OS#6741
Change-Id: I70ad1b0f44f2a923248f4e3259747cb3fec98fd2
-rw-r--r-- | src/osmo-bsc/bsc_vty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c index 925f21f7f..27ceae48e 100644 --- a/src/osmo-bsc/bsc_vty.c +++ b/src/osmo-bsc/bsc_vty.c @@ -3250,13 +3250,15 @@ DEFUN(show_mscs, { struct bsc_msc_data *msc; llist_for_each_entry(msc, &bsc_gsmnet->mscs, entry) { - vty_out(vty, "%d %s %s ", + vty_out(vty, "MSC %d: %s <-> ", msc->a.cs7_instance, - osmo_ss7_asp_protocol_name(msc->a.asp_proto), osmo_sccp_inst_addr_name(msc->a.sccp, &msc->a.bsc_addr)); vty_out(vty, "%s%s", osmo_sccp_inst_addr_name(msc->a.sccp, &msc->a.msc_addr), VTY_NEWLINE); + vty_out(vty, " ASP protocol: %s%s", + osmo_ss7_asp_protocol_name(msc->a.asp_proto), + VTY_NEWLINE); } return CMD_SUCCESS; |