sample-plugin: refactor .api to use explicit types
Use explicit types in .api definition.
Type: refactor
/* Define a simple binary API to control the feature */
option version = "0.1.0";
+import "../../vnet/interface_types.api";
autoreply define sample_macswap_enable_disable {
/* Client identifier, set from api_main.my_client_index */
@@ -26,8 +27,8 @@ autoreply define sample_macswap_enable_disable {
u32 context;
/* Enable / disable the feature */
- u8 enable_disable;
+ bool enable_disable;
/* Interface handle */
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
