X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnsim%2Fnsim.api;h=f0ae02a70bdaac20956b3f9e614c2f226c116f1d;hb=00f21fb2f;hp=722aac17fed1215089a37b97b7c17e3660ff1e6e;hpb=2e7a43ca453c677c00d371ea5dfdba71267ab185;p=vpp.git diff --git a/src/plugins/nsim/nsim.api b/src/plugins/nsim/nsim.api index 722aac17fed..f0ae02a70bd 100644 --- a/src/plugins/nsim/nsim.api +++ b/src/plugins/nsim/nsim.api @@ -3,7 +3,8 @@ * @brief VPP control-plane API messages for the network delay simulator */ -option version = "2.1.0"; +option version = "2.2.1"; +import "vnet/interface_types.api"; /** \brief enable / disable the network delay simulation cross-connect @param client_index - opaque cookie to identify the sender @@ -21,11 +22,11 @@ autoreply define nsim_cross_connect_enable_disable u32 context; /* Enable / disable the feature on the interfaces */ - u8 enable_disable; + bool enable_disable; /* Interface handles */ - u32 sw_if_index0; - u32 sw_if_index1; + vl_api_interface_index_t sw_if_index0; + vl_api_interface_index_t sw_if_index1; option vat_help = "[ | sw_if_index ] [ | sw_if_index ] [disable]"; }; @@ -44,10 +45,10 @@ autoreply define nsim_output_feature_enable_disable u32 context; /* Enable / disable the feature on the interfaces */ - u8 enable_disable; + bool enable_disable; /* Interface handles */ - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; option vat_help = "[ | sw_if_index [disable]"; }; @@ -60,6 +61,7 @@ autoreply define nsim_output_feature_enable_disable */ autoreply define nsim_configure { + option deprecated; /* Client identifier, set from api_main.my_client_index */ u32 client_index; @@ -74,4 +76,27 @@ autoreply define nsim_configure option vat_help = "delay