qos: api clenup
Use consistent API types.
Type: fix
* mark: Make a change to the content of a packet header by writing a stored
* QoS value
*/
-option version = "1.1.0";
+option version = "1.1.1";
import "vnet/ip/ip_types.api";
+import "vnet/interface_types.api";
enum qos_source : u8
{
@@ -48,7 +49,7 @@ enum qos_source : u8
*/
typedef qos_store
{
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
vl_api_qos_source_t input_source;
u8 value;
};
@@ -64,7 +65,7 @@ autoreply define qos_store_enable_disable
{
u32 client_index;
u32 context;
- u8 enable;
+ bool enable [default=true];
vl_api_qos_store_t store;
};
@@ -94,7 +95,7 @@ define qos_store_details
*/
typedef qos_record
{
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
vl_api_qos_source_t input_source;
};
@@ -109,7 +110,7 @@ autoreply define qos_record_enable_disable
{
u32 client_index;
u32 context;
- u8 enable;
+ bool enable [default=true];
vl_api_qos_record_t record;
};
@@ -223,7 +224,7 @@ autoreply define qos_mark_enable_disable
{
u32 client_index;
u32 context;
- u8 enable;
+ bool enable [default=true];
vl_api_qos_mark_t mark;
};
@@ -234,7 +235,7 @@ define qos_mark_dump
{
u32 client_index;
u32 context;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
/**
