aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec
diff options
context:
space:
mode:
authorKingwel Xie <kingwel.xie@ericsson.com>2019-02-04 02:07:06 -0800
committerKingwel Xie <kingwel.xie@ericsson.com>2019-02-04 02:07:06 -0800
commit2baf9422cf42e6f3ca5841bacf1a5424e6db8bea (patch)
tree92b0c8353a477563a536def1ba441a166304fa12 /src/vnet/ipsec
parent9c8cfd3d575116ef2ebe225b90eb1a93627ba432 (diff)
ipsec: cli 'create ipsec tunnel' more options
use-esp use-anti-replay Change-Id: I977b65eee926adaded0cb923e14feb0ee90fc32c Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
Diffstat (limited to 'src/vnet/ipsec')
-rw-r--r--src/vnet/ipsec/ipsec_cli.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/vnet/ipsec/ipsec_cli.c b/src/vnet/ipsec/ipsec_cli.c
index 741df31dfe4..f3a6158e850 100644
--- a/src/vnet/ipsec/ipsec_cli.c
+++ b/src/vnet/ipsec/ipsec_cli.c
@@ -922,12 +922,16 @@ create_ipsec_tunnel_command_fn (vlib_main_t * vm,
num_m_args++;
else if (unformat (line_input, "instance %u", &a.show_instance))
a.renumber = 1;
- else if (unformat (line_input, "del"))
- a.is_add = 0;
else if (unformat (line_input, "udp-encap"))
a.udp_encap = 1;
+ else if (unformat (line_input, "use-esn"))
+ a.esn = 1;
+ else if (unformat (line_input, "use-anti-replay"))
+ a.anti_replay = 1;
else if (unformat (line_input, "tx-table %u", &a.tx_table_id))
;
+ else if (unformat (line_input, "del"))
+ a.is_add = 0;
else
{
error = clib_error_return (0, "unknown input `%U'",
@@ -971,7 +975,7 @@ done:
VLIB_CLI_COMMAND (create_ipsec_tunnel_command, static) = {
.path = "create ipsec tunnel",
.short_help = "create ipsec tunnel local-ip <addr> local-spi <spi> "
- "remote-ip <addr> remote-spi <spi> [instance <inst_num>] [udp-encap] "
+ "remote-ip <addr> remote-spi <spi> [instance <inst_num>] [udp-encap] [use-esn] [use-anti-replay] "
"[tx-table <table-id>]",
.function = create_ipsec_tunnel_command_fn,
};