vxlan delete#
Description#
The delete sub-command under the tools vxlan command deletes VxLAN interfaces which name matches a user specified prefix or an exact name. The delete command is typically used to remove VxLAN interfaces created with create command.
Either --prefix or --name must be provided. The two flags are mutually exclusive.
Usage#
containerlab tools vxlan delete [local-flags]
Flags#
prefix#
Set a prefix with --prefix | -p flag. The VxLAN interfaces which name is matched by the prefix will be deleted. Default prefix is vx- which is matched the default prefix used by create command.
name#
Set an exact interface name with --name | -n flag. Exactly one VxLAN interface with the given name will be deleted. If no interface with that name exists, or if an interface with that name exists but is not a VxLAN, the command returns an error.