summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index c55e1648..7525df65 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -141,9 +141,9 @@ static int cmp_desc(const void *p, const void *q)
static int is_config(struct vty *vty)
{
- if (vty->node < CONFIG_NODE)
+ if (vty->node <= CONFIG_NODE)
return 0;
- else if (vty->node >= CONFIG_NODE && vty->node < _LAST_OSMOVTY_NODE)
+ else if (vty->node > CONFIG_NODE && vty->node < _LAST_OSMOVTY_NODE)
return 1;
else if (host.app_info->is_config_node)
return host.app_info->is_config_node(vty, vty->node);