Add API support to dump IPsec SAs 75/8575/3
authorMatthew Smith <mgsmith@netgate.com>
Tue, 26 Sep 2017 18:33:44 +0000 (13:33 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 4 Oct 2017 09:37:03 +0000 (09:37 +0000)
commit28029530963223c5c3b94f7a2f9d1343662a1a04
treeb4934a6e574ac2815d43f8a3079211f11bf6ab42
parent780fc39506759127f59840e37be9c03d278a2f6b
Add API support to dump IPsec SAs

Add an API request message type to dump IPsec SAs. Either
all IPsec SAs can be dumped or it can be limited to a single
SA ID (numeric ID set at creation time - not an index).
Add a handler for incoming messages with the new request type.
Add an API response message type containing the data
for an IPsec SA.
Add VAT support for new message type.

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