Allow an IPsec tunnel interface to be renumbered 02/11902/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 12 Apr 2018 12:32:56 +0000 (07:32 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 19 Apr 2018 10:35:25 +0000 (10:35 +0000)
commit8e1039a8231cd1d817a24256c421b9fc512f45fa
tree656a6902ae128794b76e879c74a8dad895c52294
parent1e5c07d379a092f4829e7081aa962d013b31fdfc
Allow an IPsec tunnel interface to be renumbered

When creating an IPsec tunnel interface, allow a numeric
identifier to be set for use in the interface's name in
place of the dev instance. Default to using the dev instance
if no value is explicitly set.

When an IPsec tunnel is deleted, the interface is deleted
now instead of being kept in a pool of available hw
interfaces. Otherwise there was the possibility of
conflicting tx node names between deleted tunnels and
newly created ones.

Change-Id: Ic525466622a0dec38a845fa5871c084f6d9da380
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vat/api_format.c
src/vnet/ipsec/ipsec.api
src/vnet/ipsec/ipsec.h
src/vnet/ipsec/ipsec_api.c
src/vnet/ipsec/ipsec_cli.c
src/vnet/ipsec/ipsec_if.c