X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvnet%2Fdevices%2Ftap%2Fcli.c;h=68b8cef2a211834fc89d4feecf03d931f165c05d;hp=8d59210c293098bebd7bfbcbe8c416448a2e9326;hb=b49bc1ae6;hpb=ea2abbaeaf34a4652e970fd1e2f60c0d377ebde4 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 ] [host-ip4-addr ] " "[host-ip6-addr ] [host-ip4-gw ] " "[host-ip6-gw ] [host-mac-addr ] " - "[host-if-name ] [host-mtu-size ] [no-gso|gso|csum-offload]", + "[host-if-name ] [host-mtu-size ] [no-gso|gso|csum-offload] " + "[persist] [attach]", .function = tap_create_command_fn, }; /* *INDENT-ON* */