aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpragash <pxv3620@rit.edu>2017-08-17 22:53:24 -0400
committerpragash <pxv3620@rit.edu>2017-08-19 10:46:50 -0400
commit352829f538783afe8609f09850f45536a4779b70 (patch)
tree1ac6569e9e001594314431fe6006d5f40a37a6cd
parente87216fedd41dd0bb6c99ffadb83272a2c16c8eb (diff)
Fixed ip add bug for ip6 with review comments
Change-Id: Ie1fba1a32020775444c7b1ed800e8559b54691ff Signed-off-by: pragash <pxv3620@rit.edu>
-rwxr-xr-xsrc/vnet/ip/lookup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/ip/lookup.c b/src/vnet/ip/lookup.c
index 4506ae14..5537bb04 100755
--- a/src/vnet/ip/lookup.c
+++ b/src/vnet/ip/lookup.c
@@ -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);