From e6e09a4acef2c38bc31e89c05bd1f40f1829debb Mon Sep 17 00:00:00 2001 From: Filip Varga Date: Wed, 31 Jul 2019 12:45:48 +0200 Subject: nat: elog rewrite for multi-worker support Type: fix Change-Id: I04f136a04bc022d223e4bcb5c59920bd1f1fd560 Signed-off-by: Filip Varga --- src/plugins/nat/nat.api | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/plugins/nat/nat.api') 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 -- cgit 1.2.3-korg