Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
openapi_protectedport.h
Go to the documentation of this file.
1 
9 /**********************************************************************
10 *
11 * Copyright 2023 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_protectedport.h
28 *
29 * @purpose This code implements the OpEN Protected Port API
30 *
31 * @component OPEN
32 *
33 * @create 05/26/2023
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_PROTECTEDPORT_H_INCLUDED
39 #define OPENAPI_PROTECTEDPORT_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 
44 #define OPEN_PROTECTED_PORT_GROUP_NAME_SIZE 49
45 
46 /*************************************************************************/
61  uint32_t *maxGroupNum);
62 
63 /*************************************************************************/
79  uint32_t groupId,
80  open_buffdesc *groupName);
81 
82 /*************************************************************************/
99  uint32_t groupId,
100  open_buffdesc *groupName);
101 
102 /*************************************************************************/
118  uint32_t groupId,
119  uint32_t *intfCount);
120 
121 /*************************************************************************/
141  uint32_t groupId,
142  open_buffdesc *intfList);
143 
144 /*************************************************************************/
160  uint32_t ifNum, uint32_t *groupId);
161 
162 /*************************************************************************/
180  uint32_t ifNum, uint32_t groupId,
181  uint32_t *NextIfNum,
182  uint32_t *NextGroupId);
183 
184 /*************************************************************************/
201  uint32_t ifNum, uint32_t groupId);
202 
203 /*************************************************************************/
220  uint32_t ifNum, uint32_t groupId);
221 
222 
223 #endif /* OPENAPI_PROTECTEDPORT_H_INCLUDED */
224 
open_error_t openapiProtectedPortGroupIntfListGet(openapiClientHandle_t *client_handle, uint32_t groupId, open_buffdesc *intfList)
Get all the protected ports which are members of a given group ID.
open_error_t openapiProtectedPortNextGroupGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t groupId, uint32_t *NextIfNum, uint32_t *NextGroupId)
Get the next group and interface for a given group and interface.
open_error_t openapiProtectedPortGroupGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *groupId)
Get the group ID for a given interface.
open_error_t openapiProtectedPortGroupIntfAdd(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t groupId)
Add an interface to a protected port group.
open_error_t openapiProtectedPortGroupNameGet(openapiClientHandle_t *client_handle, uint32_t groupId, open_buffdesc *groupName)
Get the name of the group for a given group ID.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiProtectedPortGroupNameSet(openapiClientHandle_t *client_handle, uint32_t groupId, open_buffdesc *groupName)
Set the name of the group for a given group ID.
open_error_t openapiProtectedPortGroupIntfCountGet(openapiClientHandle_t *client_handle, uint32_t groupId, uint32_t *intfCount)
Get the number of protected ports which are members of a given group ID.
open_error_t openapiProtectedPortGroupIntfDelete(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t groupId)
Delete an interface from a protected port group.
open_error_t openapiProtectedPortMaxGroups(openapiClientHandle_t *client_handle, uint32_t *maxGroupNum)
Get the maximum number of protected port groups.