2 * Copyright (c) 2018 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 option version = "1.0.0";
17 import "vnet/ip/ip_types.api";
21 SYSLOG_API_SEVERITY_EMERG = 0,
22 SYSLOG_API_SEVERITY_ALERT = 1,
23 SYSLOG_API_SEVERITY_CRIT = 2,
24 SYSLOG_API_SEVERITY_ERR = 3,
25 SYSLOG_API_SEVERITY_WARN = 4,
26 SYSLOG_API_SEVERITY_NOTICE = 5,
27 SYSLOG_API_SEVERITY_INFO = 6,
28 SYSLOG_API_SEVERITY_DBG = 7,
31 /** \brief Set syslog sender configuration
32 @param client_index - opaque cookie to identify the sender
33 @param context - sender context, to match reply w/ request
34 @param src_address - IPv4 address of syslog sender (source)
35 @param collector_address - IPv4 address of syslog collector (destination)
36 @param collector_port - UDP port of syslog colector (destination)
37 @param vrf_id - VRF/FIB table ID
38 @param max_msg_size - maximum message length
40 autoreply define syslog_set_sender
44 vl_api_ip4_address_t src_address;
45 vl_api_ip4_address_t collector_address;
51 /** \brief Get syslog sender configuration
52 @param client_index - opaque cookie to identify the sender
53 @param context - sender context, to match reply w/ request
55 define syslog_get_sender
61 /** \brief Get syslog sender configuration reply
62 @param context - sender context, to match reply w/ request
63 @param retval - return code for the request
64 @param src_address - IPv4 address of syslog sender (source)
65 @param collector_address - IPv4 address of syslog collector (destination)
66 @param collector_port - UDP port of syslog colector (destination)
67 @param vrf_id - VRF/FIB table ID
68 @param max_msg_size - maximum message length
70 define syslog_get_sender_reply
74 vl_api_ip4_address_t src_address;
75 vl_api_ip4_address_t collector_address;
81 /** \brief Set syslog filter
82 @param client_index - opaque cookie to identify the sender
83 @param context - sender context, to match reply w/ request
84 @param severity - severity filter (specified severity and greater match)
86 autoreply define syslog_set_filter
90 vl_api_syslog_severity_t severity;
93 /** \brief Get syslog filter
94 @param client_index - opaque cookie to identify the sender
95 @param context - sender context, to match reply w/ request
97 define syslog_get_filter
103 /** \brief Get syslog filter reply
104 @param context - sender context, to match reply w/ request
105 @param retval - return code for the request
106 @param severity - severity filter (specified severity and greater match)
108 define syslog_get_filter_reply
112 vl_api_syslog_severity_t severity;
117 * eval: (c-set-style "gnu")