aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-09-20 02:43:19 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-09-24 18:31:45 +0200
commit9791359e6d5aeafff67a7fbdb2dbe5b18aafad31 (patch)
tree3912eac395ab792b3c58a1fa3b4348ad47519465
parentc3a3f685140ce3fb8f3e919481d5ac68c4da34f9 (diff)
-rw-r--r--src/vty/command.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index c7a3720d..1516b1b0 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -2134,6 +2134,26 @@ int vty_go_parent(struct vty *vty)
vty_clear_parents(vty);
}
break;
+#if 0
+ if (host.app_info->go_parent_cb)
+ host.app_info->go_parent_cb(vty);
+ if (!vty_pop_parent(vty)) {
+ printf("vty_pop_parent() returned false, vty->node = %d\n", vty->node);
+ if (is_config_child(vty)) {
+ vty->node = CONFIG_NODE;
+ printf("is_config_child() returned true, vty->node = CONFIG_NODE = %d\n", vty->node);
+ vty_clear_parents(vty);
+ }
+ else {
+ vty->node = VIEW_NODE;
+ printf("is_config_child() returned false, vty->node = VIEW_NODE = %d\n", vty->node);
+ vty_clear_parents(vty);
+ }
+ }
+ else
+ printf("vty_pop_parent() returned true, vty->node = %d\n", vty->node);
+ break;
+#endif
}
return vty->node;