summaryrefslogtreecommitdiffstats
path: root/src/plugins/ioam/udp-ping/udp_ping.api
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-12-09 14:25:09 +0100
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-12-10 04:11:04 +0000
commit0fa66d618e7d839782a896f75bc8b0337cc2a2b8 (patch)
tree9a9b8593063d59dbf66cc6d09914df072c6663e6 /src/plugins/ioam/udp-ping/udp_ping.api
parent668605fc873a6409f38df712106f4b1290d87648 (diff)
ioam: use explicit api types
Also remove API boilerplate. Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I62e795f5af3843af7912707ade4ba178ff326942
Diffstat (limited to 'src/plugins/ioam/udp-ping/udp_ping.api')
-rw-r--r--src/plugins/ioam/udp-ping/udp_ping.api10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/ioam/udp-ping/udp_ping.api b/src/plugins/ioam/udp-ping/udp_ping.api
index 72e578c5674..6b6213acf75 100644
--- a/src/plugins/ioam/udp-ping/udp_ping.api
+++ b/src/plugins/ioam/udp-ping/udp_ping.api
@@ -14,7 +14,8 @@
* limitations under the License.
*/
-option version = "2.0.0";
+option version = "3.0.0";
+import "vnet/ip/ip_types.api";
/** \brief UDP-Probe Add/Delete request
@param src_ip_address - Source ipv4/v6 address for the udp-ping flow
@@ -30,14 +31,13 @@ option version = "2.0.0";
autoreply define udp_ping_add_del {
u32 client_index;
u32 context;
- u8 src_ip_address[16];
- u8 dst_ip_address[16];
+ vl_api_address_t src_ip_address;
+ vl_api_address_t dst_ip_address;
u16 start_src_port;
u16 end_src_port;
u16 start_dst_port;
u16 end_dst_port;
u16 interval;
- u8 is_ipv4;
u8 dis;
u8 fault_det;
u8 reserve[3];
@@ -51,6 +51,6 @@ autoreply define udp_ping_add_del {
autoreply define udp_ping_export {
u32 client_index;
u32 context;
- u32 enable;
+ bool enable;
};