diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-05-09 23:11:27 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-05-09 23:13:09 +0700 |
commit | 906c2099da1ca2e7dabac518816b890797f06657 (patch) | |
tree | ce07594b3f4700db46faa87cc0090e2fbb407d0d /ggsn | |
parent | ac07625086948281295e54dd295228153ecd5ff0 (diff) |
ggsn_vty.c: fix: use CONFIG_NODE as parent by default
There are some configuration nodes, which are handled by extenral
libraries, such as libosmoctrl. So, when switching back to the
parent node, this should be kept in mind.
Change-Id: I65be7910dc46166caa34a0984a6763e1477dec99
Diffstat (limited to 'ggsn')
-rw-r--r-- | ggsn/ggsn_vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ggsn/ggsn_vty.c b/ggsn/ggsn_vty.c index 6ddfc0d..53f4ebf 100644 --- a/ggsn/ggsn_vty.c +++ b/ggsn/ggsn_vty.c @@ -948,6 +948,10 @@ static int ggsn_vty_go_parent(struct vty *vty) vty->index_sub = &apn->ggsn->cfg.description; } break; + default: + vty->node = CONFIG_NODE; + vty->index = NULL; + vty->index_sub = NULL; } return vty->node; |