|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.11.1.2
|
Macros | |
| #define | OPEN_AUTO_VLAN_FIRST_MAC_OUI_INDEX 0 |
| #define | OPEN_AUTO_VLAN_MAX_MAC_OUIS L7_AUTO_VLAN_MAX_MAC_OUIS |
| #define | OPEN_AUTO_VLAN_OUI_DESC_STRINGLEN AUTO_VLAN_OUI_DESC_STRINGLEN |
| #define | OPEN_AUTO_VLAN_OUI_LEN AUTO_VLAN_OUI_LEN |
| #define | OPEN_AUTO_VLAN_OUI_STR_MAX_LEN 9 |
| #define | OPEN_DEFAULT_AUTO_CAMERA_PRIORITY 7 |
| #define | OPEN_DEFAULT_AUTO_CAMERA_STATUS OPEN_DISABLE |
| #define | OPEN_DEFAULT_AUTO_CAMERA_VLAN 0 |
| #define | OPEN_DEFAULT_AUTO_WIFI_PRIORITY 7 |
| #define | OPEN_DEFAULT_AUTO_WIFI_STATUS OPEN_DISABLE |
| #define | OPEN_DEFAULT_AUTO_WIFI_VLAN 0 |
| #define | OPEN_QOS_AUTO_VLAN_DYNAMIC_VLAN_SUPPORT L7_FALSE |
Enumerations | |
| enum | OPEN_AUTO_VLAN_TYPES_t { OPEN_AUTO_VLAN_FIRST = 0, OPEN_AUTO_VLAN_CAMERA = 0, OPEN_AUTO_VLAN_WIFI, OPEN_AUTO_VLAN_LAST } |
| < Auto VLAN Types More... | |
Functions | |
| open_error_t | openapiQosAutoVlanDetectedDevicesGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t *count) |
| Gets the count of devices learned for given Auto VLAN type. More... | |
| open_error_t | openapiQosAutoVlanGlobalModeGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, OPEN_CONTROL_t *mode) |
| Gets the AUTO VLAN global status. More... | |
| open_error_t | openapiQosAutoVlanGlobalModeSet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, OPEN_CONTROL_t mode) |
| Enables or disables the AUTO VLAN global status. More... | |
| open_error_t | openapiQosAutoVlanIdGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t *vlanId) |
| Gets the vlan Id configured for Auto VLAN type. More... | |
| open_error_t | openapiQosAutoVlanIdSet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t vlanId) |
| Sets the VLAN for autoVlan traffic on switch. More... | |
| open_error_t | openapiQosAutoVlanIndexOuiAdd (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t ouiIndex, open_buffdesc *autoVlanOui, open_buffdesc *autoOuiDesc) |
| Adds Auto VLAN OUI entry at particular Index. More... | |
| open_error_t | openapiQosAutoVlanIndexOuiRemove (openapiClientHandle_t *client_handle, uint32_t ouiIndex) |
| Removes Auto VLAN OUI entry at particular Index. More... | |
| open_error_t | openapiQosAutoVlanIntfModeGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t ifNum, OPEN_CONTROL_t *mode) |
| Gets the status of AUTO VLAN on interface. More... | |
| open_error_t | openapiQosAutoVlanIntfModeSet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t ifNum, OPEN_CONTROL_t mode) |
| Enables or disables the AUTO VLAN status on interface. More... | |
| open_error_t | openapiQoSAutoVlanIsValidIntf (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *isValid) |
| Determine if the interface is valid for AUTO VLAN configuration. More... | |
| open_error_t | openapiQosAutoVlanLearnedEntryNextGet (openapiClientHandle_t *client_handle, uint32_t index, open_buffdesc *autoVlanMac, OPEN_AUTO_VLAN_TYPES_t *autoVlanType, uint32_t *intIfNum, uint32_t *nextIndex) |
| Gets the Auto VLAN learned entry and next index. More... | |
| open_error_t | openapiQosAutoVlanOuiAdd (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, open_buffdesc *autoVlanOui, open_buffdesc *autoOuiDesc) |
| Adds Auto VLAN OUI entry. More... | |
| open_error_t | openapiQosAutoVlanOuiCountGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t *autoVlanOuiCount) |
| Gets the count of OUIs already configured. More... | |
| open_error_t | openapiQosAutoVlanOuiDescGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, open_buffdesc *autoVlanOui, open_buffdesc *autoOuiDesc) |
| Gets the autoVlan OUI description, given OUI entry string. More... | |
| open_error_t | openapiQosAutoVlanOuiEntryGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t currentIndex, open_buffdesc *autoVlanOui, open_buffdesc *autoOuiDesc) |
| Gets Auto VLAN OUI entry details. More... | |
| open_error_t | openapiQosAutoVlanOuiEntryNextGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t currentIndex, uint32_t *nextOuiIndex) |
| Gets Auto VLAN OUI next index. More... | |
| open_error_t | openapiQosAutoVlanOuiFirstEntryGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t *firstIndex) |
| Gets first Auto VLAN OUI Index. More... | |
| open_error_t | openapiQosAutoVlanOuiRemove (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, open_buffdesc *autoVlanOui) |
| Removes Auto Vlan OUI entry. More... | |
| open_error_t | openapiQosAutoVlanPortStatusGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t ifNum, OPEN_CONTROL_t *status) |
| Gets Auto VLAN operational port status. More... | |
| open_error_t | openapiQosAutoVlanPriorityGet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t *autoVlanPriority) |
| Gets the Priority for Auto VLAN traffic on switch. More... | |
| open_error_t | openapiQosAutoVlanPrioritySet (openapiClientHandle_t *client_handle, OPEN_AUTO_VLAN_TYPES_t autoVlanType, uint32_t autoVlanPriority) |
| Sets the Priority for Auto VLAN traffic on switch. More... | |
| open_error_t | openapiQosAutoVlanValidIntfFirstGet (openapiClientHandle_t *client_handle, uint32_t *ifNum) |
| Get the first interface that is valid for Auto VLAN. More... | |
| open_error_t | openapiQosAutoVlanValidIntfNextGet (openapiClientHandle_t *client_handle, uint32_t prevIfNum, uint32_t *nextIfNum) |
| Get the next interface that is valid for auto VLAN. More... | |
< Auto VLAN Types
| Enumerator | |
|---|---|
| OPEN_AUTO_VLAN_CAMERA |
Auto Camera VLAN Type. |
| OPEN_AUTO_VLAN_WIFI |
Auto Wifi VLAN Type. |
Definition at line 44 of file openapi_qos_auto_vlan.h.
| open_error_t openapiQosAutoVlanDetectedDevicesGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t * | count | ||
| ) |
Gets the count of devices learned for given Auto VLAN type.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [out] | count | Number of detected devices. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanGlobalModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| OPEN_CONTROL_t * | mode | ||
| ) |
Gets the AUTO VLAN global status.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [out] | mode | Mode value ENABLE/DISABLE |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanGlobalModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| OPEN_CONTROL_t | mode | ||
| ) |
Enables or disables the AUTO VLAN global status.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | mode | Mode value ENABLE/DISABLE |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanIdGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t * | vlanId | ||
| ) |
Gets the vlan Id configured for Auto VLAN type.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [out] | vlanId | VLAN id configured for given Auto VLAN type. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanIdSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | vlanId | ||
| ) |
Sets the VLAN for autoVlan traffic on switch.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | vlanId | VLAN Id to be configured for given Auto VLAN type. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanIndexOuiAdd | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | ouiIndex, | ||
| open_buffdesc * | autoVlanOui, | ||
| open_buffdesc * | autoOuiDesc | ||
| ) |
Adds Auto VLAN OUI entry at particular Index.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | ouiIndex | Index number. |
| [in] | autoVlanOui | Auto VLAN OUI Entry (string format. Example 0A020C) |
| [in] | autoOuiDesc | Auto Vlan OUI description |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanIndexOuiRemove | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ouiIndex | ||
| ) |
Removes Auto VLAN OUI entry at particular Index.
| [in] | client_handle | client handle from registration API |
| [in] | ouiIndex | OUI Index number. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanIntfModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | ifNum, | ||
| OPEN_CONTROL_t * | mode | ||
| ) |
Gets the status of AUTO VLAN on interface.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | ifNum | Interface on which vlan mode needs to be checked. |
| [out] | mode | Mode value ENABLE/DISABLE |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanIntfModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | ifNum, | ||
| OPEN_CONTROL_t | mode | ||
| ) |
Enables or disables the AUTO VLAN status on interface.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | ifNum | Interface on which auto vlan mode needs to be enabled or disabled. |
| [in] | mode | Mode value ENABLE/DISABLE |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQoSAutoVlanIsValidIntf | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| OPEN_BOOL_t * | isValid | ||
| ) |
Determine if the interface is valid for AUTO VLAN configuration.
| [in] | client_handle | client handle from registration API |
| [in] | ifNum | Interface number. |
| [out] | isValid | Valid flag. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanLearnedEntryNextGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | index, | ||
| open_buffdesc * | autoVlanMac, | ||
| OPEN_AUTO_VLAN_TYPES_t * | autoVlanType, | ||
| uint32_t * | intIfNum, | ||
| uint32_t * | nextIndex | ||
| ) |
Gets the Auto VLAN learned entry and next index.
| [in] | client_handle | Client handle from registration API |
| [in] | index | Current learned entry Index. |
| [out] | autoVlanMac | Auto VLAN MAC address |
| [out] | autoVlanType | Auto VLAN type |
| [out] | intIfNum | Interface number |
| [out] | nextIndex | Next learned entry index. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanOuiAdd | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| open_buffdesc * | autoVlanOui, | ||
| open_buffdesc * | autoOuiDesc | ||
| ) |
Adds Auto VLAN OUI entry.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | autoVlanOui | Auto VLAN OUI Entry (string format. Example 0A020C) |
| [in] | autoOuiDesc | Auto Vlan OUI description |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanOuiCountGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t * | autoVlanOuiCount | ||
| ) |
Gets the count of OUIs already configured.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [out] | autoVlanOuiCount | Count of OUIs configured. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanOuiDescGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| open_buffdesc * | autoVlanOui, | ||
| open_buffdesc * | autoOuiDesc | ||
| ) |
Gets the autoVlan OUI description, given OUI entry string.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | autoVlanOui | Auto VLAN OUI |
| [out] | autoOuiDesc | Auto Vlan OUI description |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanOuiEntryGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | currentIndex, | ||
| open_buffdesc * | autoVlanOui, | ||
| open_buffdesc * | autoOuiDesc | ||
| ) |
Gets Auto VLAN OUI entry details.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | currentIndex | Current OUI Index. |
| [out] | autoVlanOui | Auto VLAN OUI. |
| [out] | autoOuiDesc | Auto Vlan OUI description |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanOuiEntryNextGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | currentIndex, | ||
| uint32_t * | nextOuiIndex | ||
| ) |
Gets Auto VLAN OUI next index.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | currentIndex | Current OUI Index. |
| [out] | nextOuiIndex | Next OUI index. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanOuiFirstEntryGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t * | firstIndex | ||
| ) |
Gets first Auto VLAN OUI Index.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [out] | firstIndex | First valid OUI Index. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanOuiRemove | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| open_buffdesc * | autoVlanOui | ||
| ) |
Removes Auto Vlan OUI entry.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | autoVlanOui | Auto VLAN OUI Entry (string format. Example 0A020C) |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanPortStatusGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | ifNum, | ||
| OPEN_CONTROL_t * | status | ||
| ) |
Gets Auto VLAN operational port status.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | ifNum | Interface number. |
| [out] | status | Interface Operational status Enable/Disable. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanPriorityGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t * | autoVlanPriority | ||
| ) |
Gets the Priority for Auto VLAN traffic on switch.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [out] | autoVlanPriority | Auto VLAN-Priority value configured on the switch for given Auto VLAN type. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanPrioritySet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_AUTO_VLAN_TYPES_t | autoVlanType, | ||
| uint32_t | autoVlanPriority | ||
| ) |
Sets the Priority for Auto VLAN traffic on switch.
| [in] | client_handle | client handle from registration API |
| [in] | autoVlanType | Auto VLAN type |
| [in] | autoVlanPriority | Auto VLAN Priority to set on the switch for given Auto VLAN type. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanValidIntfFirstGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | ifNum | ||
| ) |
Get the first interface that is valid for Auto VLAN.
| [in] | client_handle | client handle from registration API |
| [out] | ifNum | Interface number. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiQosAutoVlanValidIntfNextGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | prevIfNum, | ||
| uint32_t * | nextIfNum | ||
| ) |
Get the next interface that is valid for auto VLAN.
| [in] | client_handle | client handle from registration API |
| [in] | prevIfNum | Previous interface number. |
| [out] | nextIfNum | Next interface number. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25