summaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-gpe
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-02-13 23:55:27 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-02-16 16:24:19 +0000
commitb69111e167f5be70b3721ed5c2e5e02b971c3f67 (patch)
treee6bbd56317bb0dfbb2f00adb1b7a6e74d43664a8 /src/vnet/lisp-gpe
parent6085e16d924f12d57779d7d7692016ec9fc19a9d (diff)
Add NSH load-balance and drop DPO
Also adds missing gpe nsh address type functions. Change-Id: I3353a23c0518da9ce3b221ddf8c5bd0364930154 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe')
-rw-r--r--src/vnet/lisp-gpe/lisp_gpe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe.c b/src/vnet/lisp-gpe/lisp_gpe.c
index e76c03f0033..d2f7ad44305 100644
--- a/src/vnet/lisp-gpe/lisp_gpe.c
+++ b/src/vnet/lisp-gpe/lisp_gpe.c
@@ -103,15 +103,15 @@ lisp_gpe_add_del_fwd_entry_command_fn (vlib_main_t * vm,
}
}
- if (!vni_set || !dp_table_set)
+ if (!reid_set)
{
- vlib_cli_output (vm, "vni and vrf/bd must be set!");
+ vlib_cli_output (vm, "remote eid must be set!");
goto done;
}
- if (!reid_set)
+ if (gid_address_type (reid) != GID_ADDR_NSH && (!vni_set || !dp_table_set))
{
- vlib_cli_output (vm, "remote eid must be set!");
+ vlib_cli_output (vm, "vni and vrf/bd must be set!");
goto done;
}