Fixed ip add bug for ip6 with review comments 34/8134/8
authorpragash <pxv3620@rit.edu>
Fri, 18 Aug 2017 02:53:24 +0000 (22:53 -0400)
committerpragash <pxv3620@rit.edu>
Sat, 19 Aug 2017 14:46:50 +0000 (10:46 -0400)
Change-Id: Ie1fba1a32020775444c7b1ed800e8559b54691ff
Signed-off-by: pragash <pxv3620@rit.edu>
src/vnet/ip/lookup.c

index 4506ae1..5537bb0 100755 (executable)
@@ -384,10 +384,6 @@ vnet_ip_route_cmd (vlib_main_t * vm,
 
       if (unformat (line_input, "table %d", &table_id))
        ;
-      else if (unformat (line_input, "del"))
-       is_del = 1;
-      else if (unformat (line_input, "add"))
-       is_del = 0;
       else if (unformat (line_input, "resolve-via-host"))
        {
          if (vec_len (rpaths) == 0)
@@ -542,6 +538,10 @@ vnet_ip_route_cmd (vlib_main_t * vm,
        {
          vec_add1 (dpos, dpo);
        }
+      else if (unformat (line_input, "del"))
+       is_del = 1;
+      else if (unformat (line_input, "add"))
+       is_del = 0;
       else
        {
          error = unformat_parse_error (line_input);