diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-28 10:16:38 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-28 10:16:38 +0100 |
commit | d87ef3bc669968cd2ee6188ce249571d59e3577b (patch) | |
tree | d1ed2ba40e71ba922c576aee4f117f55618d9522 /src | |
parent | c5e8f08303842033b9d5cd92b240b210f53f8fb2 (diff) |
vty: Add show msc [NR] to specify an optional MSC nr
Diffstat (limited to 'src')
-rw-r--r-- | src/vty_interface_cmds.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/vty_interface_cmds.c b/src/vty_interface_cmds.c index 6f8ca05..78e67c0 100644 --- a/src/vty_interface_cmds.c +++ b/src/vty_interface_cmds.c @@ -103,10 +103,15 @@ DEFUN(show_linksets, show_linksets_cmd, } DEFUN(show_msc, show_msc_cmd, - "show msc", - SHOW_STR "Display the status of the MSC\n") + "show msc [NR]", + SHOW_STR "Display the status of the MSC\n" "Number of the MSC\n") { - struct msc_connection *msc = msc_connection_num(bsc, 0); + struct msc_connection *msc; + + if (argc == 1) + msc = msc_connection_num(bsc, atoi(argv[0])); + else + msc = msc_connection_num(bsc, 0); if (!msc) { vty_out(vty, "%%No MSC Connection defined in this app.%s", VTY_NEWLINE); |