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
This commit is contained in:
Oliver Smith 2024-01-16 18:25:17 +01:00
parent 1cfec9d2c9
commit fb23879651
1 changed files with 4 additions and 2 deletions

View File

@ -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;