X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnat%2Fnat.api;h=b5057ce1d3cc57d36546fbda95254bc47cf703bf;hb=e6e09a4acef2c38bc31e89c05bd1f40f1829debb;hp=4ce1db17c52f20647e45443de2938fa7a7b81bd1;hpb=c343a17df5bba800ecd7cca92acdd2bd1f984ebf;p=vpp.git diff --git a/src/plugins/nat/nat.api b/src/plugins/nat/nat.api index 4ce1db17c52..b5057ce1d3c 100644 --- a/src/plugins/nat/nat.api +++ b/src/plugins/nat/nat.api @@ -13,7 +13,7 @@ * limitations under the License. */ -option version = "5.0.0"; +option version = "5.1.0"; import "vnet/ip/ip_types.api"; import "vnet/interface_types.api"; @@ -120,6 +120,27 @@ define nat_show_config_reply u32 nat64_st_memory_size; }; +enum nat_log_level : u8 +{ + NAT_LOG_NONE = 0x00, + NAT_LOG_ERROR = 0x01, + NAT_LOG_WARNING = 0x02, + NAT_LOG_NOTICE = 0x03, + NAT_LOG_INFO = 0x04, + NAT_LOG_DEBUG = 0x05, +}; + +/** \brief Set NAT logging level + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param log_level - logging level +*/ +autoreply define nat_set_log_level { + u32 client_index; + u32 context; + vl_api_nat_log_level_t log_level; +}; + /** \brief Set NAT workers @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request