]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Fix location of some of the commands in integrated config
authorvivek <vivek@cumulusnetworks.com>
Wed, 21 Oct 2015 05:21:39 +0000 (22:21 -0700)
committervivek <vivek@cumulusnetworks.com>
Wed, 21 Oct 2015 05:21:39 +0000 (22:21 -0700)
Ticket:
Reviewed By: CCR-3509
Testing Done: bgpsmoke, enhe, tests with/without this change

When saving an integrated config file, certain commands such as
"ipv6 protocol", "ip nht route-map" etc. ended up with a very
different group of commands making it hard to look for them. This
fixes the command grouping so that related commands are located
together.

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Vipin Kumar <vipin@cumulusnetworks.com>
vtysh/vtysh_config.c

index fc0fa351a9ff80b2d0da208ce358fdf38742c34b..a0f973588b23595e678c5210bc3d1f5850229b51 100644 (file)
@@ -225,8 +225,6 @@ vtysh_config_parse_line (const char *line)
        config = config_get (BGP_NODE, line);
       else if (strncmp (line, "router isis", strlen ("router isis")) == 0)
        config = config_get (ISIS_NODE, line);
-      else if (strncmp (line, "router bgp", strlen ("router bgp")) == 0)
-       config = config_get (BGP_NODE, line);
       else if (strncmp (line, "route-map", strlen ("route-map")) == 0)
        config = config_get (RMAP_NODE, line);
       else if (strncmp (line, "access-list", strlen ("access-list")) == 0)
@@ -269,6 +267,12 @@ vtysh_config_parse_line (const char *line)
        config = config_get (AAA_NODE, line);
       else if (strncmp (line, "ip protocol", strlen ("ip protocol")) == 0)
        config = config_get (PROTOCOL_NODE, line);
+      else if (strncmp (line, "ipv6 protocol", strlen ("ipv6 protocol")) == 0)
+       config = config_get (PROTOCOL_NODE, line);
+      else if (strncmp (line, "ip nht", strlen ("ip nht")) == 0)
+       config = config_get (PROTOCOL_NODE, line);
+      else if (strncmp (line, "ipv6 nht", strlen ("ipv6 nht")) == 0)
+       config = config_get (PROTOCOL_NODE, line);
       else
        {
          if (strncmp (line, "log", strlen ("log")) == 0