neels has uploaded this change for review.

View Change

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
---
M src/osmo-hnbgw/hnbgw_vty.c
1 file changed, 14 insertions(+), 24 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/14/32914/1
diff --git a/src/osmo-hnbgw/hnbgw_vty.c b/src/osmo-hnbgw/hnbgw_vty.c
index 2952913..47db695 100644
--- a/src/osmo-hnbgw/hnbgw_vty.c
+++ b/src/osmo-hnbgw/hnbgw_vty.c
@@ -104,30 +104,7 @@

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;
}


To view, visit change 32914. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Id3ecc53885436294d2217c52130910872dde550e
Gerrit-Change-Number: 32914
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr@sysmocom.de>
Gerrit-MessageType: newchange