Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
openapi_diffserv_service.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_diffserv_serv.h
28 *
29 * @purpose This code implements the OpEN Diff services API
30 *
31 * @component OPEN
32 *
33 * @create 05/19/2023
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_DIFFSERV_SERVICE_H_INCLUDED
39 #define OPENAPI_DIFFSERV_SERVICE_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
44 typedef enum
45 {
46  OPEN_MIB_DIFFSERV_IF_DIRECTION_NONE = 0,
50 
52 typedef enum
53 {
58 
60 typedef enum
61 {
70 
71 /*************************************************************************/
107  uint32_t intIfNum,
109  OPEN_BOOL_t activateRow);
110 
111 /*************************************************************************/
133  uint32_t intIfNum,
135 
136 /*************************************************************************/
157  uint32_t intIfNum,
159 
160 /*************************************************************************/
185  uint32_t intIfNum,
187  uint32_t *pNxtIntIfNum,
189 
190 /*************************************************************************/
213  uint32_t intIfNum,
215  uint32_t policyIndex);
216 
217 /*************************************************************************/
239  uint32_t intIfNum,
241  uint32_t *pPolicyIndex);
242 
243 /*************************************************************************/
265  uint32_t intIfNum,
267  OPEN_MIB_DIFFSERV_IF_OPER_STATUS_t *pIfOperStatus);
268 
269 /*************************************************************************/
291  uint32_t intIfNum,
293  OPEN_BOOL_t *pIsAclIntfInUse);
294 
295 /*************************************************************************/
319  uint32_t intIfNum,
322 
323 /*************************************************************************/
343  uint32_t intIfNum,
346 
347 /*************************************************************************/
367  uint32_t intIfNum,
370 
371 /*************************************************************************/
394  uint32_t policyIndex,
395  uint32_t policyInstIndex,
396  uint32_t intIfNum,
397  uint64_t *pPacktCount);
398 
399 /*************************************************************************/
422  uint32_t policyIndex,
423  uint32_t policyInstIndex,
424  uint32_t intIfNum,
425  uint64_t *pPacktCount);
426 
427 /*************************************************************************/
450  uint32_t policyIndex,
451  uint32_t policyInstIndex,
452  uint32_t intIfNum,
453  uint64_t *pPacktCount);
454 
455 /*************************************************************************/
478  uint32_t policyIndex,
479  uint32_t policyInstIndex,
480  uint32_t intIfNum,
481  uint64_t *pPacktCount);
482 #endif /* OPENAPI_DIFFSERV_SERVICE_H_INCLUDED */
483 
Interface operational status UP.
open_error_t openapiDiffServPolicyPerfOutDiscardedPacketsGet(openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t intIfNum, uint64_t *pPacktCount)
Get the outbound discarded packet count for the specified policy class instance.
open_error_t openapiDiffServPolicyPerfInDiscardedPacketsGet(openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t intIfNum, uint64_t *pPacktCount)
Get the inbound discarded packet count for the specified policy class instance.
open_error_t openapiDiffServServiceDelete(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir)
Delete a row from the Service Table for the specified interface and direction.
open_error_t openapiDiffServServiceIfOperStatusGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, OPEN_MIB_DIFFSERV_IF_OPER_STATUS_t *pIfOperStatus)
Get the service interface operational status for the specified Service Table row. ...
open_error_t
OPEN uses these enumerators to indicate the error codes.
OPEN_MIB_DIFFSERV_ROW_STATUS_t
Enumerated values for RowStatus object.
open_error_t openapiDiffServServiceRowStatusGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, OPEN_MIB_DIFFSERV_ROW_STATUS_t *pStatus)
Get the current status for the specified Service Table row.
open_error_t openapiDiffServServiceGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir)
Gets a row from the Service Table for the specified interface and direction.
Interface operational status DOWN.
open_error_t openapiDiffServIsAclIntfInUse(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, OPEN_BOOL_t *pIsAclIntfInUse)
Check if the specified internal interface number is in use by the ACL component.
open_error_t openapiDiffServPolicyPerfOutOfferedPacketsGet(openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t intIfNum, uint64_t *pPacktCount)
Get the outbound offered packets count for the specified policy class instance.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiDiffServServiceRowStatusVerify(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, OPEN_MIB_DIFFSERV_ROW_STATUS_t status)
Verifies the current status for the specified Service Table row.
open_error_t openapiDiffServServiceGetNext(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, uint32_t *pNxtIntIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t *pNxtIfDir)
Determine next sequential row in the Service Table.
Interface direction type OUT.
open_error_t openapiDiffServServicePolicyIndexSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, uint32_t policyIndex)
Set the policy index attached to the specified interface and direction.
OPEN_MIB_DIFFSERV_IF_DIRECTION_t
DiffServ Interface Direction type.
OPEN_MIB_DIFFSERV_IF_OPER_STATUS_t
DiffServ Interface Operational Status type.
open_error_t openapiDiffServServiceCreate(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, OPEN_BOOL_t activateRow)
Create a new row in the Service Table for the specified interface and direction.
open_error_t openapiDiffServServiceRowStatusSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, OPEN_MIB_DIFFSERV_ROW_STATUS_t status)
Set the given status for the specified Service Table row.
open_error_t openapiDiffServPolicyPerfInOfferedPacketsGet(openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t intIfNum, uint64_t *pPacktCount)
Get the inbound offered packets count for the specified policy class instance.
open_error_t openapiDiffServServicePolicyIndexGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_MIB_DIFFSERV_IF_DIRECTION_t ifDir, uint32_t *pPolicyIndex)
Get the policy index attached to the specified interface and direction.