Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
openapi_mvrp.h
Go to the documentation of this file.
1 
9 /**********************************************************************
10 *
11 * Copyright 2020 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ***********************************************************************
26 *
27 * @filename openapi_mvrp.h
28 *
29 * @purpose MVRP Open API(s)
30 *
31 * @component OPEN
32 *
33 * @create 06/18/2020
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_MVRP_H_INCLUDED
39 #define OPENAPI_MVRP_H_INCLUDED
40 
41 #include "openapi_common.h"
42 #include "openapi_vlan.h"
43 
44 typedef enum
45 {
49 
50 typedef enum
51 {
60 
61 
62 /*************************************************************************/
79 
80 /*************************************************************************/
97 
98 /*************************************************************************/
114 
115 /*************************************************************************/
131 
132 /*************************************************************************/
149 open_error_t openapiMvrpIntfModeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t *mode);
150 
151 /*************************************************************************/
168 open_error_t openapiMvrpIntfModeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t mode);
169 
170 /*************************************************************************/
186 open_error_t openapiMvrpIsValidIntfGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *isValid);
187 
188 /*************************************************************************/
204 open_error_t openapiMvrpValidIntfNextGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *nextIfNum);
205 
206 /*************************************************************************/
223 
224 /*************************************************************************/
241 open_error_t openapiMvrpIntfTrafficPduCounterGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MVRP_STATS_t type, uint32_t *counter);
242 
243 /*************************************************************************/
262 open_error_t openapiMvrpVlanArrayGet(openapiClientHandle_t *client_handle, OPEN_MVRP_VLAN_TYPE_t vlanType, OPEN_VLAN_LIST_t *vlanList, uint32_t *count);
263 
264 /*************************************************************************/
284 open_error_t openapiMvrpIntfVlanArrayGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MVRP_VLAN_TYPE_t vlanType, OPEN_VLAN_LIST_t *vlanList, uint32_t *count);
285 
286 /*************************************************************************/
302 
303 /*************************************************************************/
318 
319 /*************************************************************************/
334 
335 #endif /* OPENAPI_MVRP_H_INCLUDED */
336 
open_error_t openapiMvrpModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *mode)
Get the global MVRP mode.
open_error_t openapiMvrpIntfModeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t mode)
Set the MVRP mode for the given interface.
Registered VLAN.
Definition: openapi_mvrp.h:46
open_error_t openapiMvrpIntfModeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t *mode)
Get the MVRP mode for the specified interface.
open_error_t openapiMvrpTrafficGlobalCountersClear(openapiClientHandle_t *client_handle)
Clear global MVRP traffic counters.
all received mvrp PDUs
Definition: openapi_mvrp.h:52
received mvrp PDUs with bad data field
Definition: openapi_mvrp.h:54
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiMvrpIntfVlanArrayGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MVRP_VLAN_TYPE_t vlanType, OPEN_VLAN_LIST_t *vlanList, uint32_t *count)
Get MVRP VLAN array on an interface.
OPEN_MVRP_STATS_t
Definition: openapi_mvrp.h:50
open_error_t openapiMvrpPeriodicStateMachineModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t mode)
Sets the MVRP periodic state machine mode.
open_error_t openapiMvrpIntfTrafficPduCounterGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MVRP_STATS_t type, uint32_t *counter)
Get the value of specified MVRP counter for an interface.
open_error_t openapiMvrpVlanArrayGet(openapiClientHandle_t *client_handle, OPEN_MVRP_VLAN_TYPE_t vlanType, OPEN_VLAN_LIST_t *vlanList, uint32_t *count)
Get MVRP VLAN array in the system.
open_error_t openapiMvrpValidIntfNextGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *nextIfNum)
Given the current interface, get the next valid MVRP interface.
open_error_t openapiMvrpIsValidIntfGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *isValid)
Check if the current interface is valid for MVRP.
message queue send failed
Definition: openapi_mvrp.h:57
registration failed
Definition: openapi_mvrp.h:58
received mvrp PDUs with bad header
Definition: openapi_mvrp.h:53
open_error_t openapiMvrpTrafficCountersPerIfClear(openapiClientHandle_t *client_handle, uint32_t intIfNum)
Clear MVRP traffic counters on specified interface.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiMvrpModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t mode)
set the global MVRP mode.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
OPEN_MVRP_VLAN_TYPE_t
Definition: openapi_mvrp.h:44
all transmitted mvrp PDUs
Definition: openapi_mvrp.h:55
mvrp PDUs which failed
Definition: openapi_mvrp.h:56
open_error_t openapiMvrpTrafficCountersClear(openapiClientHandle_t *client_handle)
Clear all MVRP traffic counters.
open_error_t openapiMvrpPeriodicStateMachineModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *mode)
Gets the MVRP periodic state machine mode.
open_error_t openapiMvrpTrafficPduCounterGet(openapiClientHandle_t *client_handle, OPEN_MVRP_STATS_t type, uint32_t *counter)
Get the value of specified MVRP counter.
Declared VLAN.
Definition: openapi_mvrp.h:47