diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-08-17 13:16:10 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-08-17 13:16:10 +0200 |
commit | 570ce24debddbba8efca8567b70a805f80d18ecc (patch) | |
tree | 8d5bc6573fbdbf00fc0c883743ccbfde9d805e7d /openbsc/src/gprs | |
parent | e555c2b5453a9aea6fa03db4033eac1cee8d8ce4 (diff) |
VTY: improve VTY prompt and make sure exit/end works everywhere
Some nodes below 'config' didn't have ournode_exit / ournode_end,
and thus were not able to properly perform this function. exit should
always only go back one level, while end drops us back to ENABLE_NODE.
The prompt now represents the nesting level, and there's one consistent
space after the final prompt character (typically #).
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_vty.c | 2 | ||||
-rw-r--r-- | openbsc/src/gprs/sgsn_vty.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c index 574f45f78..bfa1f3bd1 100644 --- a/openbsc/src/gprs/gb_proxy_vty.c +++ b/openbsc/src/gprs/gb_proxy_vty.c @@ -40,7 +40,7 @@ static struct gbproxy_config *g_cfg = NULL; */ static struct cmd_node gbproxy_node = { GBPROXY_NODE, - "%s(gbproxy)#", + "%s(config-gbproxy)# ", 1, }; diff --git a/openbsc/src/gprs/sgsn_vty.c b/openbsc/src/gprs/sgsn_vty.c index f4a8083a3..1fc0b4110 100644 --- a/openbsc/src/gprs/sgsn_vty.c +++ b/openbsc/src/gprs/sgsn_vty.c @@ -106,7 +106,7 @@ static char *gprs_pdpaddr2str(uint8_t *pdpa, uint8_t len) static struct cmd_node sgsn_node = { SGSN_NODE, - "%s(sgsn)#", + "%s(config-sgsn)# ", 1, }; |