nat: use correct data types for memory sizes
[vpp.git] / src / plugins / ioam / lib-vxlan-gpe / ioam_vxlan_gpe.api
index dfaecff..36dc1a4 100644 (file)
@@ -14,7 +14,8 @@
  * limitations under the License.
  */
 
-vl_api_version 1.0.0
+option version = "1.0.0";
+import "vnet/ip/ip_types.api";
 
 /** \brief iOAM Over VxLAN-GPE - Set iOAM transport for VxLAN-GPE
     @param client_index - opaque cookie to identify the sender
@@ -30,8 +31,8 @@ autoreply define vxlan_gpe_ioam_enable {
   u32 context;
   u16 id;
   u8 trace_ppc;
-  u8 pow_enable;
-  u8 trace_enable;
+  bool pow_enable;
+  bool trace_enable;
 };
 
 /** \brief iOAM for VxLAN-GPE disable
@@ -58,9 +59,8 @@ autoreply define vxlan_gpe_ioam_vni_enable {
   u32 client_index;
   u32 context;
   u32 vni;
-  u8  local[16];
-  u8  remote[16];
-  u8  is_ipv6;
+  vl_api_address_t local;
+  vl_api_address_t remote;
 };
 
 /** \brief Disable iOAM for a VNI (VXLAN-GPE)
@@ -75,9 +75,8 @@ autoreply define vxlan_gpe_ioam_vni_disable {
   u32 client_index;
   u32 context;
   u32 vni;
-  u8  local[16];
-  u8  remote[16];
-  u8  is_ipv6;
+  vl_api_address_t local;
+  vl_api_address_t remote;
 };
 
 /** \brief Enable iOAM for a VXLAN-GPE transit
@@ -91,8 +90,7 @@ autoreply define vxlan_gpe_ioam_transit_enable {
   u32 client_index;
   u32 context;
   u32 outer_fib_index;
-  u8  dst_addr[16];
-  u8  is_ipv6;
+  vl_api_address_t dst_addr;
 };
 
 /** \brief Disable iOAM for VXLAN-GPE transit
@@ -106,7 +104,6 @@ autoreply define vxlan_gpe_ioam_transit_disable {
   u32 client_index;
   u32 context;
   u32 outer_fib_index;
-  u8  dst_addr[16];
-  u8  is_ipv6;
+  vl_api_address_t dst_addr;
 };