vty_go_parent(): remove legacy cruft
We do not need to restore the parent node on vty_go_parent() anymore, only call the ss7 go-parent callback to trigger actions on vty node exit. Change-Id: Id3ecc53885436294d2217c52130910872dde550e
This commit is contained in:
parent
164f3a67f1
commit
e966e73fd2
|
@ -104,30 +104,7 @@ DEFUN(cfg_hnbgw_mgcp, cfg_hnbgw_mgcp_cmd,
|
|||
|
||||
int hnbgw_vty_go_parent(struct vty *vty)
|
||||
{
|
||||
switch (vty->node) {
|
||||
case IUH_NODE:
|
||||
case IUCS_NODE:
|
||||
case IUPS_NODE:
|
||||
vty->node = HNBGW_NODE;
|
||||
vty->index = NULL;
|
||||
break;
|
||||
case MGCP_NODE:
|
||||
vty->node = HNBGW_NODE;
|
||||
vty->index = NULL;
|
||||
break;
|
||||
case HNBGW_NODE:
|
||||
vty->node = CONFIG_NODE;
|
||||
vty->index = NULL;
|
||||
break;
|
||||
case CONFIG_NODE:
|
||||
vty->node = ENABLE_NODE;
|
||||
vty->index = NULL;
|
||||
break;
|
||||
default:
|
||||
osmo_ss7_vty_go_parent(vty);
|
||||
break;
|
||||
}
|
||||
|
||||
osmo_ss7_vty_go_parent(vty);
|
||||
return vty->node;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue