|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.12.0.1
|
Macros | |
| #define | OPEN_DIFFSERV_POLICY_NAME_MAX 31 |
| #define | OPEN_DIFFSERV_POLICY_NAME_MIN 1 |
Functions | |
| open_error_t | openapiDiffServClassValidForPolicyCheck (openapiClientHandle_t *client_handle, uint32_t classIndex, uint32_t policyIndex) |
| Check if class definition is suitable for inclusion by specified policy. More... | |
| open_error_t | openapiDiffServPolicyAttrCreate (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_BOOL_t activateRow) |
| Create a new row in the Policy Attribute Table for the specified index. More... | |
| open_error_t | openapiDiffServPolicyAttrDelete (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex) |
| Delete a row from the Policy Attribute Table for the specified index. More... | |
| open_error_t | openapiDiffServPolicyAttrGetNext (openapiClientHandle_t *client_handle, uint32_t prevPolicyIndex, uint32_t prevPolicyInstIndex, uint32_t prevPolicyAttrIndex, uint32_t *pPolicyIndex, uint32_t *pPolicyInstIndex, uint32_t *pPolicyAttrIndex) |
| Determine next sequential row in the Policy Attribute Table. More... | |
| open_error_t | openapiDiffServPolicyAttrIndexFind (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t inEntry, uint32_t *pPolicyAttrIndex) |
| Find the Policy Attribute index for the specified attribute. More... | |
| open_error_t | openapiDiffServPolicyAttrIndexMaxGet (openapiClientHandle_t *client_handle, uint32_t *pIndexMax) |
| Retrieve the maximum policy attribute index value allowed for the Policy Attribute Table. More... | |
| open_error_t | openapiDiffServPolicyAttrIndexNext (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t *pPolicyAttrIndex) |
| Obtain the next available index value to be used when creating a new row in the Policy Attribute Table. More... | |
| open_error_t | openapiDiffServPolicyAttrRowStatusGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_ROW_STATUS_t *pValue) |
| Get the current status of the specified Policy Attribute Table row. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtEntryDataGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, uint32_t *data) |
| Get the Policy Attribute statement entry associated data. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtEntryTypeDataSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, uint32_t data) |
| Set the Policy Attribute statement entry type and associated data. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtEntryTypeGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t *pEntryType) |
| Get the Policy Attribute statement entry type. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceBurstGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, OPEN_BURST_POLICE_TYPE_t burstType, uint32_t *burst) |
| Get the policing committed burst size attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceBurstSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, OPEN_BURST_POLICE_TYPE_t burstType, uint32_t burst) |
| Set the policing committed burst size attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceColorAwareClassValidate (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t classIndex) |
| Determine if a DiffServ class is valid for use as a policing color aware designation. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceColorConformIndexGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *pClassIndex) |
| Get the policing color conform attribute class index value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceColorConformIndexSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t classIndex) |
| Set the policing color conform attribute class index value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceColorConformValGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *pVal) |
| Get the policing color conform value attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceColorExceedIndexGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *pClassIndex) |
| Get the policing color exceed attribute class index value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceColorExceedIndexSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t classIndex) |
| Set the policing color exceed attribute class index value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceConformActGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICE_ACT_t *action) |
| Get the policing conform action attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceConformActSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICE_ACT_t action) |
| Set the policing conform action attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceConformValGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *value) |
| Get the policing conform value attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceConformValSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t value) |
| Set the policing conform value attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceDataRatePercentGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, uint32_t *pRate_percent) |
| Get the policing committed rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceDataRateSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, OPEN_RATE_UNIT_t rate_unit, uint32_t rate) |
| Set the simple policing committed rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceDataRateUnitGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, OPEN_RATE_UNIT_t *pRate_unit) |
| Get the policing committed rate unit attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceExceedActGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICE_ACT_t *action) |
| Get the policing exceed action attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceExceedActSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICE_ACT_t action) |
| Set the policing exceed action attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceExceedValGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *pValue) |
| Get the policing exceed value attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceExceedValSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t value) |
| Set the policing exceed value attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceNonconformActGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICE_ACT_t *action) |
| Get the policing nonconform action attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceNonconformActSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICE_ACT_t action) |
| Set the policing nonconform action attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceNonconformValGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *value) |
| Get the policing nonconform value attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceNonconformValSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t value) |
| Set the policing nonconform value attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPolicePdataRatePercentGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_POLICY_ATTR_TYPE_t entryType, uint32_t *pRate_percent) |
| Get the policing peak rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceSimpleCrateGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *rate) |
| Get the simple policing committed rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceSimpleCrateSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t rate) |
| Set the simple policing committed rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceTworateCrateGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *pRate) |
| Get the two-rate policing committed rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceTworateCrateSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t rate) |
| Set the two-rate policing committed rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceTworatePdataRateSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_RATE_UNIT_t rate_unit, uint32_t rate) |
| Set the two-rate policing peak rate attribute statement value as per unit. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceTworatePrateGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t *rate) |
| Get the two-rate policing peak rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStmtPoliceTworatePrateSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, uint32_t rate) |
| Set the two-rate policing peak rate attribute statement value. More... | |
| open_error_t | openapiDiffServPolicyAttrStorageTypeGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t policyAttrIndex, OPEN_DIFFSERV_STORAGE_TYPE_t *pValue) |
| Get the storage type for the specified Policy Attribute Table row. More... | |
| open_error_t | openapiDiffServPolicyCreate (openapiClientHandle_t *client_handle, uint32_t policyIndex, OPEN_BOOL_t activateRow) |
| Create a new row in the Policy Table for the specified index. More... | |
| open_error_t | openapiDiffServPolicyDelete (openapiClientHandle_t *client_handle, uint32_t policyIndex) |
| Delete a row from the Policy Table for the specified index. More... | |
| open_error_t | openapiDiffServPolicyGetNext (openapiClientHandle_t *client_handle, uint32_t prevPolicyIndex, uint32_t *pPolicyIndex) |
| Determine next sequential row in the Policy Table. More... | |
| open_error_t | openapiDiffServPolicyIndexNext (openapiClientHandle_t *client_handle, uint32_t *pPolicyIndex) |
| Obtain the next available index value to be used when creating a new row in the Policy Table. More... | |
| open_error_t | openapiDiffServPolicyInstClassIndexGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t *pClassIndex) |
| Get the class index referenced as the policy class instance. More... | |
| open_error_t | openapiDiffServPolicyInstClassIndexSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, uint32_t classIndex) |
| Set the class index referenced as the policy class instance. More... | |
| open_error_t | openapiDiffServPolicyInstCreate (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, OPEN_BOOL_t activateRow) |
| Create a new row in the Policy-Class Instance Table for the specified index. More... | |
| open_error_t | openapiDiffServPolicyInstDelete (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex) |
| Delete a row from the Policy-Class Instance Table for the specified index. More... | |
| open_error_t | openapiDiffServPolicyInstGetNext (openapiClientHandle_t *client_handle, uint32_t prevPolicyIndex, uint32_t prevPolicyInstIndex, uint32_t *pPolicyIndex, uint32_t *pPolicyInstIndex) |
| Determine next sequential row in the Policy-Class Instance Table. More... | |
| open_error_t | openapiDiffServPolicyInstIndexFromClass (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t classIndex, uint32_t *pPolicyInstIndex) |
| Find the policy instance index from the policy and class indexes. More... | |
| open_error_t | openapiDiffServPolicyInstIndexNext (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t *pPolicyInstIndex) |
| Obtain the next available index value to be used when creating a new row in the Policy-Class Instance Table. More... | |
| open_error_t | openapiDiffServPolicyInstRowStatusGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, uint32_t policyInstIndex, OPEN_DIFFSERV_ROW_STATUS_t *pValue) |
| Get the current status of the specified Policy-Class Instance Table row. More... | |
| open_error_t | openapiDiffServPolicyNameGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, open_buffdesc *bufd) |
| Get the policy name. More... | |
| open_error_t | openapiDiffServPolicyNameSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, open_buffdesc *bufd) |
| Set the policy name. More... | |
| open_error_t | openapiDiffServPolicyNameToIndex (openapiClientHandle_t *client_handle, open_buffdesc *stringPtr, uint32_t *pPolicyIndex) |
| Translate a policy name into its associated Policy Table index. More... | |
| open_error_t | openapiDiffServPolicyRowStatusGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, OPEN_DIFFSERV_ROW_STATUS_t *pValue) |
| Get the current status of the specified Policy Table row. More... | |
| open_error_t | openapiDiffServPolicyTypeGet (openapiClientHandle_t *client_handle, uint32_t policyIndex, OPEN_DIFFSERV_POLICY_TYPE_t *pPolicyType) |
| Get the type of policy definition. More... | |
| open_error_t | openapiDiffServPolicyTypeSet (openapiClientHandle_t *client_handle, uint32_t policyIndex, OPEN_DIFFSERV_POLICY_TYPE_t policyType) |
| Set the type of policy definition. More... | |
Definition at line 98 of file openapi_diffserv_policy.h.
Definition at line 108 of file openapi_diffserv_policy.h.
Definition at line 79 of file openapi_diffserv_policy.h.
| Enumerator | |
|---|---|
| OPEN_DIFFSERV_POLICY_TYPE_NONE |
None. |
| OPEN_DIFFSERV_POLICY_TYPE_IN |
In. |
| OPEN_DIFFSERV_POLICY_TYPE_OUT |
Out. |
Definition at line 60 of file openapi_diffserv_policy.h.
Definition at line 48 of file openapi_diffserv_policy.h.
Definition at line 67 of file openapi_diffserv_policy.h.
| open_error_t openapiDiffServClassValidForPolicyCheck | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | classIndex, | ||
| uint32_t | policyIndex | ||
| ) |
Check if class definition is suitable for inclusion by specified policy.
| [in] | client_handle | client handle |
| [in] | classIndex | Class index |
| [in] | policyIndex | Policy index |
| OPEN_E_NONE | inclusion is valid |
| OPEN_E_FAIL | inclusion is invalid |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_INTERNAL | internal error occured |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrCreate | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_BOOL_t | activateRow | ||
| ) |
Create a new row in the Policy Attribute Table for the specified index.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | activateRow | Activate row when ready flag |
| OPEN_E_NONE | row creation is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | row creation failed |
| OPEN_E_ERROR | index value in use, row not complete |
| OPEN_E_EXISTS | index value in use, row complete |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrDelete | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex | ||
| ) |
Delete a row from the Policy Attribute Table for the specified index.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| OPEN_E_NONE | row deletion is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | row deletion failed |
| OPEN_E_ERROR | row does not exist for the specified index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | prevPolicyIndex, | ||
| uint32_t | prevPolicyInstIndex, | ||
| uint32_t | prevPolicyAttrIndex, | ||
| uint32_t * | pPolicyIndex, | ||
| uint32_t * | pPolicyInstIndex, | ||
| uint32_t * | pPolicyAttrIndex | ||
| ) |
Determine next sequential row in the Policy Attribute Table.
| [in] | client_handle | client handle |
| [in] | prevPolicyIndex | Policy index to begin search |
| [in] | prevPolicyInstIndex | Policy instance index to begin search |
| [in] | prevPolicyAttrIndex | Policy attribute index to begin search |
| [out] | pPolicyIndex | Pointer to next sequential policy index value |
| [out] | pPolicyInstIndex | Pointer to next sequential policy instance index value |
| [out] | pPolicyAttrIndex | Pointer to next sequential policy attribute index value |
| OPEN_E_NONE | next index get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get next index |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrIndexFind | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | inEntry, | ||
| uint32_t * | pPolicyAttrIndex | ||
| ) |
Find the Policy Attribute index for the specified attribute.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | inEntry | Policy attribute |
| [out] | pPolicyAttrIndex | Pointer to attribute index |
| OPEN_E_NONE | policy attribute index find is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to find policy attribute index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrIndexMaxGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pIndexMax | ||
| ) |
Retrieve the maximum policy attribute index value allowed for the Policy Attribute Table.
| [in] | client_handle | client handle |
| [out] | pIndexMax | Pointer to index max output location |
| OPEN_E_NONE | maximum policy attribute index is successfully retrieved |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get maximum policy attribute index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrIndexNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t * | pPolicyAttrIndex | ||
| ) |
Obtain the next available index value to be used when creating a new row in the Policy Attribute Table.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [out] | pPolicyAttrIndex | Pointer to policy attribute index |
| OPEN_E_NONE | next index is successfully retrieved |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get the next index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrRowStatusGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_ROW_STATUS_t * | pValue | ||
| ) |
Get the current status of the specified Policy Attribute Table row.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pValue | Pointer to row status value |
| OPEN_E_NONE | current status is successfully retrieved |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get the current status |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtEntryDataGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| uint32_t * | data | ||
| ) |
Get the Policy Attribute statement entry associated data.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [out] | data | associated data |
| OPEN_E_NONE | associated data get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get the associated data |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtEntryTypeDataSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| uint32_t | data | ||
| ) |
Set the Policy Attribute statement entry type and associated data.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [in] | data | Entry value |
| OPEN_E_NONE | succesfully set the policy attribute statement and associated data |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | faled to set the policy attribute statement and associated data |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtEntryTypeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t * | pEntryType | ||
| ) |
Get the Policy Attribute statement entry type.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pEntryType | Pointer to entry type value |
| OPEN_E_NONE | policy attribute statement is successfully retrieved |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get the policy attribute statement |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceBurstGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| OPEN_BURST_POLICE_TYPE_t | burstType, | ||
| uint32_t * | burst | ||
| ) |
Get the policing committed burst size attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [in] | burstType | burst type , i.e OPEN_BURST_POLICE_TWORATE_CBURST or OPEN_BURST_POLICE_TWORATE_PBURST or OPEN_BURST_POLICE_SINGLERATE_CBURST or OPEN_BURST_POLICE_SINGLERATE_EBURST or OPEN_BURST_POLICE_SIMPLE_CBURST |
| [out] | burst | Burst size value |
| OPEN_E_NONE | policing committed burst size attribute statement value is set successfully |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing committed burst size attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceBurstSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| OPEN_BURST_POLICE_TYPE_t | burstType, | ||
| uint32_t | burst | ||
| ) |
Set the policing committed burst size attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [in] | burstType | burst type , i.e OPEN_BURST_POLICE_TWORATE_CBURST or OPEN_BURST_POLICE_TWORATE_PBURST or OPEN_BURST_POLICE_SINGLERATE_CBURST or OPEN_BURST_POLICE_SINGLERATE_EBURST or OPEN_BURST_POLICE_SIMPLE_CBURST |
| [in] | burst | Burst size value |
| OPEN_E_NONE | policing committed burst size attribute statement value is set successfully |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set policing committed burst size attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceColorAwareClassValidate | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | classIndex | ||
| ) |
Determine if a DiffServ class is valid for use as a policing color aware designation.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | classIndex | Class index value to be set |
| OPEN_E_NONE | Class is valid for color-aware use |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | invalid class definition for color-aware use |
| OPEN_E_FAIL | if any error or malfunction |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceColorConformIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | pClassIndex | ||
| ) |
Get the policing color conform attribute class index value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pClassIndex | Pointer to class index output value |
| OPEN_E_INTERNAL | exceed color-aware parms same as Conform. |
| OPEN_E_FAIL | failed to get policing color conform attribute class index value |
| OPEN_E_NONE | policing color conform attribute class index value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_NOT_FOUND | value is not configured |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceColorConformIndexSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | classIndex | ||
| ) |
Set the policing color conform attribute class index value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | classIndex | Class index value to be set |
| OPEN_E_NONE | policing color conform attribute class index value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | invalid class definition for color-aware use |
| OPEN_E_INTERNAL | exceed color-aware parms same as Conform. |
| OPEN_E_FAIL | if any other malfunction |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceColorConformValGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | pVal | ||
| ) |
Get the policing color conform value attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pVal | Pointer to police color value |
| OPEN_E_NONE | policing color conform value attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing color conform value attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceColorExceedIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | pClassIndex | ||
| ) |
Get the policing color exceed attribute class index value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pClassIndex | Class index value to be set |
| OPEN_E_NONE | policing color exceed attribute class index get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | invalid class definition for color-aware use |
| OPEN_E_INTERNAL | exceed color-aware parms same as Conform. |
| OPEN_E_FAIL | failed to get policing color exceed attribute class index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceColorExceedIndexSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | classIndex | ||
| ) |
Set the policing color exceed attribute class index value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | classIndex | Class index value to be set |
| OPEN_E_NONE | policing color exceed attribute class index value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | invalid class definition for color-aware use |
| OPEN_E_INTERNAL | exceed color-aware parms same as Conform. |
| OPEN_E_FAIL | failed to set policing color exceed attribute class index value |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceConformActGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICE_ACT_t * | action | ||
| ) |
Get the policing conform action attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | action | Police action value |
| OPEN_E_NONE | policing conform action attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing conform action attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceConformActSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICE_ACT_t | action | ||
| ) |
Set the policing conform action attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | action | Police action value |
| OPEN_E_NONE | policing conform action attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set policing conform action attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceConformValGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | value | ||
| ) |
Get the policing conform value attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | value | Police conform value |
| OPEN_E_NONE | policing conform value attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing conform value attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceConformValSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | value | ||
| ) |
Set the policing conform value attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | value | Police conform value |
| OPEN_E_NONE | policing conform value attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set policing conform value attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceDataRatePercentGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| uint32_t * | pRate_percent | ||
| ) |
Get the policing committed rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [out] | pRate_percent | Value percentage |
| OPEN_E_NONE | policing committed rate attribute statement value is successfully retrieved. |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing committed rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceDataRateSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| OPEN_RATE_UNIT_t | rate_unit, | ||
| uint32_t | rate | ||
| ) |
Set the simple policing committed rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [in] | rate_unit | Rate unit (in kbps or percentage) |
| [in] | rate | Rate value |
| OPEN_E_NONE | simple policing committed rate attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set simple policing committed rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceDataRateUnitGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| OPEN_RATE_UNIT_t * | pRate_unit | ||
| ) |
Get the policing committed rate unit attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [out] | pRate_unit | Value unit |
| OPEN_E_NONE | policing committed rate unit attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing committed rate unit attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceExceedActGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICE_ACT_t * | action | ||
| ) |
Get the policing exceed action attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | action | Police action value |
| OPEN_E_NONE | policing exceed action attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing exceed action attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceExceedActSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICE_ACT_t | action | ||
| ) |
Set the policing exceed action attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | action | Police action value |
| OPEN_E_NONE | policing exceed action attribute statement value is set successfully |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing exceed action attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceExceedValGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | pValue | ||
| ) |
Get the policing exceed value attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pValue | Pointer to police exceed value |
| OPEN_E_NONE | policing exceed value attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing exceed value attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceExceedValSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | value | ||
| ) |
Set the policing exceed value attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | value | Police exceed value |
| OPEN_E_NONE | policing exceed value attribute statement value is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set policing exceed value attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceNonconformActGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICE_ACT_t * | action | ||
| ) |
Get the policing nonconform action attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | action | Police action value |
| OPEN_E_NONE | policing nonconform action attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing nonconform action attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceNonconformActSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICE_ACT_t | action | ||
| ) |
Set the policing nonconform action attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | action | Police action value |
| OPEN_E_NONE | policing nonconform action attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set policing nonconform action attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceNonconformValGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | value | ||
| ) |
Get the policing nonconform value attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | value | Police noncofrm value |
| OPEN_E_NONE | policing nonconform value attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policing nonconform value attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceNonconformValSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | value | ||
| ) |
Set the policing nonconform value attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | value | Police noncofrm value |
| OPEN_E_NONE | policing nonconform value attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set policing nonconform value attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPolicePdataRatePercentGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_POLICY_ATTR_TYPE_t | entryType, | ||
| uint32_t * | pRate_percent | ||
| ) |
Get the policing peak rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | entryType | Entry type value |
| [out] | pRate_percent | Value percentage |
| OPEN_E_NONE | |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceSimpleCrateGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | rate | ||
| ) |
Get the simple policing committed rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | rate | Rate value |
| OPEN_E_NONE | simple policing committed rate attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get simple policing committed rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceSimpleCrateSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | rate | ||
| ) |
Set the simple policing committed rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | rate | Rate value |
| OPEN_E_NONE | simple policing committed rate attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set simple policing committed rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceTworateCrateGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | pRate | ||
| ) |
Get the two-rate policing committed rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pRate | Pointer to rate value |
| OPEN_E_NONE | two-rate policing committed rate attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get two-rate policing committed rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceTworateCrateSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | rate | ||
| ) |
Set the two-rate policing committed rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | rate | rate value |
| OPEN_E_NONE | two-rate policing committed rate attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set two-rate policing committed rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceTworatePdataRateSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_RATE_UNIT_t | rate_unit, | ||
| uint32_t | rate | ||
| ) |
Set the two-rate policing peak rate attribute statement value as per unit.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | rate_unit | Rate unit (in kbps or percentage) |
| [in] | rate | Rate value in percentage |
| OPEN_E_NONE | two-rate policing peak rate attribute statement value as per unit set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | Not allowed for current match entry type |
| OPEN_E_FAIL | failed to set two-rate policing peak rate attribute statement value as per unit set |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceTworatePrateGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t * | rate | ||
| ) |
Get the two-rate policing peak rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | rate | Rate value |
| OPEN_E_NONE | two-rate policing peak rate attribute statement value get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to two-rate policing peak rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStmtPoliceTworatePrateSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| uint32_t | rate | ||
| ) |
Set the two-rate policing peak rate attribute statement value.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [in] | rate | Rate value |
| OPEN_E_NONE | two-rate policing peak rate attribute statement value set is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to set two-rate policing peak rate attribute statement value |
| OPEN_E_ERROR | Not allowed for current match entry type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyAttrStorageTypeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | policyAttrIndex, | ||
| OPEN_DIFFSERV_STORAGE_TYPE_t * | pValue | ||
| ) |
Get the storage type for the specified Policy Attribute Table row.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | policyAttrIndex | Policy attribute index |
| [out] | pValue | Pointer to storage type value |
| OPEN_E_NONE | storage type get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get the storage type |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyCreate | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| OPEN_BOOL_t | activateRow | ||
| ) |
Create a new row in the Policy Table for the specified index.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | activateRow | Activate row when ready flag |
| OPEN_E_NONE | row status successfully retrieved |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_INTERNAL | internal error occured |
| OPEN_E_ERROR | Index value in use, row not complete |
| OPEN_E_EXISTS | Index value in use, row complete |
| OPEN_E_FAIL | Failed to set the row. |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyDelete | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex | ||
| ) |
Delete a row from the Policy Table for the specified index.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| OPEN_E_NONE | deletion is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | Row does not exist for the specified index, or is referenced by one or more services (interfaces) |
| OPEN_E_INTERNAL | Config change not approved |
| OPEN_E_FAIL | Deletion failed |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | prevPolicyIndex, | ||
| uint32_t * | pPolicyIndex | ||
| ) |
Determine next sequential row in the Policy Table.
| [in] | client_handle | client handle |
| [in] | prevPolicyIndex | Policy index to begin search |
| [out] | pPolicyIndex | Pointer to next sequential policy index value |
| OPEN_E_NONE | next entry successfully retrieved |
| OPEN_E_FAIL | failed to get next entry |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | internal error has occurred |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyIndexNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pPolicyIndex | ||
| ) |
Obtain the next available index value to be used when creating a new row in the Policy Table.
| [in] | client_handle | client handle |
| [in,out] | pPolicyIndex | Pointer to policy index value |
| OPEN_E_NONE | next index is received successfully |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get next available index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstClassIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t * | pClassIndex | ||
| ) |
Get the class index referenced as the policy class instance.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [out] | pClassIndex | Pointer to class index value |
| OPEN_E_NONE | Class index get is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | Class index get failed |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstClassIndexSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| uint32_t | classIndex | ||
| ) |
Set the class index referenced as the policy class instance.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | classIndex | class index value |
| OPEN_E_NONE | Class index is successfuly set |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | Class index set failed |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstCreate | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| OPEN_BOOL_t | activateRow | ||
| ) |
Create a new row in the Policy-Class Instance Table for the specified index.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [in] | activateRow | Activate row when ready flag |
| OPEN_E_NONE | New row creation is successful |
| OPEN_E_PARAM | Invalid parameter passed |
| OPEN_E_ERROR | Index value in use, row not complete |
| OPEN_E_EXISTS | Index value in use, row complete |
| OPEN_E_INTERNAL | Internal error occured |
| OPEN_E_FAIL | New row creation failed |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstDelete | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex | ||
| ) |
Delete a row from the Policy-Class Instance Table for the specified index.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| OPEN_E_NONE | deletion is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_ERROR | row does not exist for the specified index |
| OPEN_E_INTERNAL | config change not approved |
| OPEN_E_FAIL | deletion is not successful |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | prevPolicyIndex, | ||
| uint32_t | prevPolicyInstIndex, | ||
| uint32_t * | pPolicyIndex, | ||
| uint32_t * | pPolicyInstIndex | ||
| ) |
Determine next sequential row in the Policy-Class Instance Table.
| [in] | client_handle | client handle |
| [in] | prevPolicyIndex | Policy index to begin search |
| [in] | prevPolicyInstIndex | Policy instance index to begin search |
| [out] | pPolicyIndex | Pointer to next sequential policy index value |
| [out] | pPolicyInstIndex | Pointer to next sequential policy instance index value |
| OPEN_E_NONE | Operation is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | Failed to get next sequential index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstIndexFromClass | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | classIndex, | ||
| uint32_t * | pPolicyInstIndex | ||
| ) |
Find the policy instance index from the policy and class indexes.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | classIndex | Class index |
| [out] | pPolicyInstIndex | Pointer to policy instance index value |
| OPEN_E_NONE | Policy instance index find is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | Failed to find the Policy instance index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstIndexNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t * | pPolicyInstIndex | ||
| ) |
Obtain the next available index value to be used when creating a new row in the Policy-Class Instance Table.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [out] | pPolicyInstIndex | Pointer to instance index value |
| OPEN_E_NONE | Operation is successful |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | Failed to get next index |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyInstRowStatusGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| uint32_t | policyInstIndex, | ||
| OPEN_DIFFSERV_ROW_STATUS_t * | pValue | ||
| ) |
Get the current status of the specified Policy-Class Instance Table row.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyInstIndex | Policy instance index |
| [out] | pValue | Pointer to row status value |
| OPEN_E_NONE | row status successfully retrieved |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_FAIL | failed to get policy instance row status |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_INTERNAL | internal error occured |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyNameGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| open_buffdesc * | bufd | ||
| ) |
Get the policy name.
| [in] | client_handle | client handle |
| [in] | policyIndex | i Policy index |
| [out] | bufd | buffer descriptor for policy name |
| OPEN_E_NONE | name successfully retrieved |
| OPEN_E_FAIL | failed to get name |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_INTERNAL | Object value never been established or buffer length is too short |
bufd points to a char buffer of minimum length equals to OPEN_DIFFSERV_POLICY_NAME_MAXOpEN API Version: 1.26
| open_error_t openapiDiffServPolicyNameSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| open_buffdesc * | bufd | ||
| ) |
Set the policy name.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | bufd | buffer descriptor for policy name |
| OPEN_E_NONE | name is set successfully |
| OPEN_E_FAIL | failed to set name |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_INTERNAL | internal error occured |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyNameToIndex | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | stringPtr, | ||
| uint32_t * | pPolicyIndex | ||
| ) |
Translate a policy name into its associated Policy Table index.
| [in] | client_handle | client handle |
| [in] | stringPtr | Policy name string pointer |
| [out] | pPolicyIndex | Pointer to policy index value |
| OPEN_E_NONE | index successfully retrieved |
| OPEN_E_FAIL | failed to get policy index |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_INTERNAL | internal error occured |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyRowStatusGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| OPEN_DIFFSERV_ROW_STATUS_t * | pValue | ||
| ) |
Get the current status of the specified Policy Table row.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [out] | pValue | Pointer to row status value |
| OPEN_E_NONE | row status successfully retrieved |
| OPEN_E_FAIL | failed to get policy row status |
| OPEN_E_PARAM | invalid parameter passed |
| OPEN_E_INTERNAL | internal error occured |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyTypeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| OPEN_DIFFSERV_POLICY_TYPE_t * | pPolicyType | ||
| ) |
Get the type of policy definition.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [out] | pPolicyType | Pointer to policy type value |
| OPEN_E_NONE | Get is successful |
| OPEN_E_FAIL | Get operation failed |
| OPEN_E_PARAM | Invalida parameter passed |
OpEN API Version: 1.26
| open_error_t openapiDiffServPolicyTypeSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | policyIndex, | ||
| OPEN_DIFFSERV_POLICY_TYPE_t | policyType | ||
| ) |
Set the type of policy definition.
| [in] | client_handle | client handle |
| [in] | policyIndex | Policy index |
| [in] | policyType | Pointer to policy type value |
| OPEN_E_NONE | Set is successful |
| OPEN_E_FAIL | Set operation failed |
| OPEN_E_PARAM | Invalida parameter passed |
OpEN API Version: 1.26