aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/tap/cli.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-02-14 17:51:04 +0000
committerDamjan Marion <dmarion@me.com>2020-03-05 11:09:19 +0000
commitb49bc1ae6404f0dff373578786a9fd95d961e5cd (patch)
tree448558e4c18d5fbb6996cfaed793f9f91aecb055 /src/vnet/devices/tap/cli.c
parentea2abbaeaf34a4652e970fd1e2f60c0d377ebde4 (diff)
tap: add support for persistance
Type: feature Change-Id: I775f53531972447ebae0d69b9e2dfeee84d115e5 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap/cli.c')
-rw-r--r--src/vnet/devices/tap/cli.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vnet/devices/tap/cli.c b/src/vnet/devices/tap/cli.c
index 8d59210c293..68b8cef2a21 100644
--- a/src/vnet/devices/tap/cli.c
+++ b/src/vnet/devices/tap/cli.c
@@ -92,6 +92,10 @@ tap_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
args.tap_flags |= TAP_FLAG_GSO;
else if (unformat (line_input, "csum-offload"))
args.tap_flags |= TAP_FLAG_CSUM_OFFLOAD;
+ else if (unformat (line_input, "persist"))
+ args.tap_flags |= TAP_FLAG_PERSIST;
+ else if (unformat (line_input, "attach"))
+ args.tap_flags |= TAP_FLAG_ATTACH;
else if (unformat (line_input, "hw-addr %U",
unformat_ethernet_address, args.mac_addr.bytes))
args.mac_addr_set = 1;
@@ -131,7 +135,8 @@ VLIB_CLI_COMMAND (tap_create_command, static) = {
"[host-bridge <bridge-name>] [host-ip4-addr <ip4addr/mask>] "
"[host-ip6-addr <ip6-addr>] [host-ip4-gw <ip4-addr>] "
"[host-ip6-gw <ip6-addr>] [host-mac-addr <host-mac-address>] "
- "[host-if-name <name>] [host-mtu-size <size>] [no-gso|gso|csum-offload]",
+ "[host-if-name <name>] [host-mtu-size <size>] [no-gso|gso|csum-offload] "
+ "[persist] [attach]",
.function = tap_create_command_fn,
};
/* *INDENT-ON* */