diff options
Diffstat (limited to 'vtysh/vtysh_config.c')
| -rw-r--r-- | vtysh/vtysh_config.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index 348053c727..e94bd139e5 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -201,7 +201,7 @@ void vtysh_config_parse_line(void *arg, const char *line) config = config_get(INTERFACE_NODE, line); else if (strncmp(line, "pseudowire", strlen("pseudowire")) == 0) config = config_get(PW_NODE, line); - else if (strncmp(line, "logical-router", strlen("ns")) == 0) + else if (strncmp(line, "logical-router", strlen("logical-router")) == 0) config = config_get(LOGICALROUTER_NODE, line); else if (strncmp(line, "vrf", strlen("vrf")) == 0) config = config_get(VRF_NODE, line); @@ -283,8 +283,6 @@ void vtysh_config_parse_line(void *arg, const char *line) strlen("ip forwarding")) == 0)) config = config_get(FORWARDING_NODE, line); - else if (strncmp(line, "service", strlen("service")) == 0) - config = config_get(SERVICE_NODE, line); else if (strncmp(line, "debug vrf", strlen("debug vrf")) == 0) config = config_get(VRF_DEBUG_NODE, line); else if (strncmp(line, "debug", strlen("debug")) == 0) @@ -328,9 +326,9 @@ void vtysh_config_parse_line(void *arg, const char *line) ((I) == ACCESS_NODE || (I) == PREFIX_NODE || (I) == IP_NODE \ || (I) == AS_LIST_NODE || (I) == COMMUNITY_LIST_NODE \ || (I) == ACCESS_IPV6_NODE || (I) == ACCESS_MAC_NODE \ - || (I) == PREFIX_IPV6_NODE || (I) == SERVICE_NODE \ - || (I) == FORWARDING_NODE || (I) == DEBUG_NODE || (I) == AAA_NODE \ - || (I) == VRF_DEBUG_NODE || (I) == MPLS_NODE) + || (I) == PREFIX_IPV6_NODE || (I) == FORWARDING_NODE \ + || (I) == DEBUG_NODE || (I) == AAA_NODE || (I) == VRF_DEBUG_NODE \ + || (I) == MPLS_NODE) /* Display configuration to file pointer. */ void vtysh_config_dump(FILE *fp) |
