diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:14:08 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:31:35 +0800 |
commit | 1398f13a64116157eba74e74a587d1799380623a (patch) | |
tree | bb136806c895812d4c4e34f66510b1a9fd718a17 /openbsc/src/nat/bsc_nat_vty.c | |
parent | 69d801e23a72b4b450b94a9d592d28d8fc8a8b76 (diff) |
nat: Attempt to update the VTY usage to the latest version
* Install the show commands to be available in the enable mode as well
* Provide a copyright header..
Diffstat (limited to 'openbsc/src/nat/bsc_nat_vty.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat_vty.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/openbsc/src/nat/bsc_nat_vty.c b/openbsc/src/nat/bsc_nat_vty.c index a7478920f..ea168a407 100644 --- a/openbsc/src/nat/bsc_nat_vty.c +++ b/openbsc/src/nat/bsc_nat_vty.c @@ -19,10 +19,7 @@ * */ -#include <vty/command.h> -#include <vty/buffer.h> -#include <vty/vty.h> - +#include <openbsc/vty.h> #include <openbsc/bsc_nat.h> #include <openbsc/bsc_msc.h> #include <openbsc/gsm_04_08.h> @@ -512,19 +509,14 @@ int bsc_nat_vty_init(struct bsc_nat *nat) { _nat = nat; - cmd_init(1); - vty_init(); - /* show commands */ - install_element(VIEW_NODE, &show_sccp_cmd); - install_element(VIEW_NODE, &show_bsc_cmd); - install_element(VIEW_NODE, &show_bsc_cfg_cmd); - install_element(VIEW_NODE, &show_stats_cmd); - install_element(VIEW_NODE, &close_bsc_cmd); - install_element(VIEW_NODE, &show_msc_cmd); - install_element(VIEW_NODE, &test_regex_cmd); - - openbsc_vty_add_cmds(); + install_element_ve(&show_sccp_cmd); + install_element_ve(&show_bsc_cmd); + install_element_ve(&show_bsc_cfg_cmd); + install_element_ve(&show_stats_cmd); + install_element_ve(&close_bsc_cmd); + install_element_ve(&show_msc_cmd); + install_element_ve(&test_regex_cmd); /* nat group */ install_element(CONFIG_NODE, &cfg_nat_cmd); |