From 459d17bb7d051566c587c4f963014fdbbe99ff6a Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Mon, 6 Jul 2020 15:40:08 +0000 Subject: ikev2: refactor and test profile dump API Type: refactor Change-Id: I6b8dc68e5d4a452776fbaf5a69fbd7f53a8abb75 Signed-off-by: Filip Tehlar --- src/plugins/ikev2/ikev2.api | 43 +++++++++---------------------------------- 1 file changed, 9 insertions(+), 34 deletions(-) (limited to 'src/plugins/ikev2/ikev2.api') diff --git a/src/plugins/ikev2/ikev2.api b/src/plugins/ikev2/ikev2.api index 53f4d7736c5..2a1a6d6365b 100644 --- a/src/plugins/ikev2/ikev2.api +++ b/src/plugins/ikev2/ikev2.api @@ -132,12 +132,7 @@ autoreply define ikev2_profile_set_id @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param name - IKEv2 profile name - @param is_local - Traffic selector is local if non-zero, else remote - @param proto - Traffic selector IP protocol (if zero not relevant) - @param start_port - The smallest port number allowed by traffic selector - @param end_port - The largest port number allowed by traffic selector - @param start_addr - The smallest address included in traffic selector - @param end_addr - The largest address included in traffic selector + @param ts - traffic selector data */ autoreply define ikev2_profile_set_ts { @@ -145,12 +140,7 @@ autoreply define ikev2_profile_set_ts u32 context; string name[64]; - bool is_local; - u8 proto; - u16 start_port; - u16 end_port; - u32 start_addr; - u32 end_addr; + vl_api_ikev2_ts_t ts; option vat_help = "name protocol start_port end_port start_addr end_addr (local|remote)"; option status="in_progress"; }; @@ -158,7 +148,6 @@ autoreply define ikev2_profile_set_ts /** \brief IKEv2: Set IKEv2 local RSA private key @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request - @param key_file - Key file absolute path */ autoreply define ikev2_set_local_key @@ -192,8 +181,7 @@ autoreply define ikev2_set_tunnel_interface @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param name - IKEv2 profile name - @param sw_if_index - interface index - @param address - interface address + @param responder - responder data */ autoreply define ikev2_set_responder { @@ -201,8 +189,7 @@ autoreply define ikev2_set_responder u32 context; string name[64]; - vl_api_interface_index_t sw_if_index; - vl_api_ip4_address_t address; + vl_api_ikev2_responder_t responder; option vat_help = " interface address "; option status="in_progress"; }; @@ -211,10 +198,7 @@ autoreply define ikev2_set_responder @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param name - IKEv2 profile name - @param crypto_alg - encryption algorithm - @param crypto_key_size - encryption key size - @param integ_alg - integrity algorithm - @param dh_group - Diffie-Hellman group + @param tr - IKE transforms */ autoreply define ikev2_set_ike_transforms { @@ -222,10 +206,7 @@ autoreply define ikev2_set_ike_transforms u32 context; string name[64]; - u32 crypto_alg; - u32 crypto_key_size; - u32 integ_alg; - u32 dh_group; + vl_api_ikev2_ike_transforms_t tr; option vat_help = " "; option status="in_progress"; }; @@ -234,10 +215,7 @@ autoreply define ikev2_set_ike_transforms @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param name - IKEv2 profile name - @param crypto_alg - encryption algorithm - @param crypto_key_size - encryption key size - @param integ_alg - integrity algorithm - @param dh_group - Diffie-Hellman group + @param tr - ESP transforms */ autoreply define ikev2_set_esp_transforms { @@ -245,11 +223,8 @@ autoreply define ikev2_set_esp_transforms u32 context; string name[64]; - u32 crypto_alg; - u32 crypto_key_size; - u32 integ_alg; - u32 dh_group; - option vat_help = " "; + vl_api_ikev2_esp_transforms_t tr; + option vat_help = " "; option status="in_progress"; }; -- cgit 1.2.3-korg