X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fpolicer%2Fpolicer.api;h=a664ab0be76b6463e8935ea36a418293a17035f0;hb=b04683017;hp=c3b8d7cd0610f4160f48e08f91632a69e1bae528;hpb=15c18e3e40d3bf754e5b6969c7478ad9f1d5e95b;p=vpp.git diff --git a/src/vnet/policer/policer.api b/src/vnet/policer/policer.api index c3b8d7cd061..a664ab0be76 100644 --- a/src/vnet/policer/policer.api +++ b/src/vnet/policer/policer.api @@ -15,6 +15,7 @@ option version = "2.0.0"; +import "vnet/interface_types.api"; import "vnet/policer/policer_types.api"; /** \brief policer bind: Associate/disassociate a policer with a worker thread. @@ -34,6 +35,23 @@ autoreply define policer_bind bool bind_enable; }; +/** \brief policer input: Apply policer as an input feature. + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param name - policer name + @param sw_if_index - interface to apply the policer + @param apply - Apply/remove +*/ +autoreply define policer_input +{ + u32 client_index; + u32 context; + + string name[64]; + vl_api_interface_index_t sw_if_index; + bool apply; +}; + /** \brief Add/del policer @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request