38 #ifndef OPENAPI_DOT1AD_H_INCLUDED
39 #define OPENAPI_DOT1AD_H_INCLUDED
48 #define OPEN_DOT1AD_SVID_MIN 1
49 #define OPEN_DOT1AD_SVID_MAX 4092
50 #define OPEN_DOT1AD_SERVICES_MAX 4096
51 #define OPEN_DOT1AD_SERVICE_NAME_LEN_MIN 1
52 #define OPEN_DOT1AD_SERVICE_NAME_LEN_MAX 31
53 #define OPEN_DOT1AD_MIN_VLAN_ID 1
54 #define OPEN_DOT1AD_MAX_VLAN_ID 4095
55 #define OPEN_DOT1AD_SUBSCRIPTIONS_MAX 4096
56 #define OPEN_DOT1AD_CVID_MIN 1
57 #define OPEN_DOT1AD_CVID_MAX 4092
63 OPEN_DOT1AD_SVCTYPE_ELINE = 1,
74 OPEN_DOT1AD_PKTTYPE_NONE = 0,
87 OPEN_DOT1AD_INTERFACE_TYPE_UNI = 0,
157 uint32_t *serviceIndex);
178 uint32_t serviceIndex,
368 uint32_t svid, uint32_t isolateVid);
481 uint32_t intIfNum, uint32_t svid);
508 uint32_t intIfNum, uint32_t svid,
605 uint32_t intIfNum, uint32_t svid,
655 uint32_t intIfNum, uint32_t svid,
678 uint32_t intIfNum, uint32_t svid);
702 uint32_t intIfNum, uint32_t svid,
726 uint32_t svid, uint32_t matchSvid);
747 uint32_t subscrIndex,
749 uint32_t *matchCvid);
771 uint32_t subscrIndex,
773 uint32_t *matchSvid);
818 uint32_t intfIn, uint32_t *intfOut,
819 uint32_t *svid, uint32_t *cvid);
842 uint32_t intfIn, uint32_t svidIn,
843 uint32_t cvidIn, uint32_t *intfOut,
844 uint32_t *svidOut, uint32_t *cvidOut);
868 uint32_t intfIn, uint32_t svidIn,
869 uint32_t cvidIn, uint32_t *intfOut,
870 uint32_t *svidOut, uint32_t *cvidOut);
891 uint32_t subscrIndex,
919 uint32_t intIfNum, uint32_t svid,
965 uint32_t subscrIndex,
994 uint32_t intIfNum, uint32_t svid,
1018 uint32_t subscrIndex,
1081 uint32_t intIfNum, uint32_t *nextIntIfNum);
open_error_t openapiDot1adSubscriptionNextIntfEntryGet(openapiClientHandle_t *client_handle, uint32_t intfIn, uint32_t svidIn, uint32_t cvidIn, uint32_t *intfOut, uint32_t *svidOut, uint32_t *cvidOut)
Given subscribers entry, get the next subscribers entry.
open_error_t openapiDot1adSubscriptionRemoveCtagSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, OPEN_BOOL_t removeCtag)
To set the action remove CTAG for a DOT1AD subscription.
open_error_t openapiDot1adServiceNameToSvid(openapiClientHandle_t *client_handle, open_buffdesc *name, uint32_t *svid)
To get the VLAN ID of a service, given its name.
open_error_t openapiDot1adSubscriptionSvidSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid)
To set the Service VLAN ID for a DOT1AD subscription.
OPEN_DOT1AD_PKTTYPE_t
This enumerator is appointed to indicate packet type for a given configuration or status parameter...
open_error_t openapiDot1adServiceVidIsConfigured(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_BOOL_t *flag)
To get the information if specified VLAN ID is configured as a DOT1AD service Vlan.
open_error_t openapiDot1adSubscriptionCvidSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, uint32_t cvid)
To set the resulting customer VLAN ID for a DOT1AD subscription.
open_error_t openapiDot1adReserveCurrentSubscription(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid)
Reserve current subscription structure for given internal interface number and DOT1AD service VLAN ID...
open_error_t openapiDot1adServiceTypeGet(openapiClientHandle_t *client_handle, uint32_t svid, OPEN_DOT1AD_SVCTYPE_t *serviceType)
To get the service type for a given DOT1AD service.
open_error_t openapiDot1adServiceIntfMatchPriorityGet(openapiClientHandle_t *client_handle, uint32_t subscrIndex, uint32_t intIfNum, uint32_t *priority)
To get the matching dot1p priority for a DOT1AD subscription.
Match criteria is not defined.
To match priority-tagged packets.
open_error_t openapiDot1adSubscriptionPktTypeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, uint32_t cvid, OPEN_DOT1AD_PKTTYPE_t *pktType)
To get the matching Packet type for a DOT1AD subscription.
open_error_t openapiDot1adNniIntfListGet(openapiClientHandle_t *client_handle, uint32_t svid, open_buffdesc *nniIntfList)
To get the NNI InterfaceList for a given DOT1AD service.
open_error_t openapiDot1adSubscriptionDelete(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, open_buffdesc *subscrName)
To delete a DOT1AD service subscription on an given interface.
open_error_t openapiDot1adInterfacePreserveCvlanDot1pGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *enable)
Get the Dot1ad interface's preserve CVLAN-dot1p property.
To match packets without service tag.
open_error_t openapiDot1adSubscriptionMatchPrioritySet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, uint32_t priority)
To set the matching dot1p priority for a DOT1AD subscription.
open_error_t openapiDot1adInterfaceTypeSet(openapiClientHandle_t *client_handle, uint32_t basePort, OPEN_DOT1AD_INTERFACE_TYPE_t intfType)
Set the Dot1ad interface type.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiDot1adServiceIndexGetFirst(openapiClientHandle_t *client_handle, uint32_t *serviceIndex)
Get the First service index created in the system.
open_error_t openapiDot1adNniIntfListSet(openapiClientHandle_t *client_handle, uint32_t svid, open_buffdesc *nniIntfList)
To set the NNI Intf List for a given DOT1AD service.
open_error_t openapiDot1adInterfaceTypeGet(openapiClientHandle_t *client_handle, uint32_t BasePort, OPEN_DOT1AD_INTERFACE_TYPE_t *intfType)
Get the Dot1ad interface type.
open_error_t openapiDot1adSubscriptionMatchCvidSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, uint32_t matchCvid)
To set the matching customer VLAN ID for a DOT1AD subscription.
open_error_t openapiDot1adSubscriptionNNIIntfListSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, open_buffdesc *nniIntfList)
To set the NNI Interface List for a given DOT1AD service subscription.
open_error_t openapiDot1adSubscriptionAdd(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid)
To add a subscription to a given DOT1AD service on a given interface.
open_error_t openapiDot1adServiceRemoveCtagGet(openapiClientHandle_t *client_handle, uint32_t subscrIndex, uint32_t intIfNum, OPEN_BOOL_t *removeCtag)
To get the remove CTAG action for a DOT1AD subscription.
open_error_t openapiDot1adServiceCreate(openapiClientHandle_t *client_handle, uint32_t svid)
To create a new DOT1AD service.
open_error_t openapiDot1adServiceIndexGetNext(openapiClientHandle_t *client_handle, uint32_t serviceIndex, uint32_t *next)
Given serviceIndex, get the next service index.
open_error_t openapiDot1adIntfNextGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *nextIntIfNum)
Get the Internal Interface Number of the next valid DOT1AD port.
open_error_t openapiDot1adSubscriptionPktTypeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, OPEN_DOT1AD_PKTTYPE_t pktType)
To set the matching Packet type for a DOT1AD subscription.
open_error_t openapiDot1adServiceTypeSet(openapiClientHandle_t *client_handle, uint32_t svid, OPEN_DOT1AD_SVCTYPE_t serviceType)
To set the service type for a given DOT1AD service.
open_error_t openapiDot1adServiceIsolateVidIsConfigured(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_BOOL_t *flag)
To get the information if specified VLAN ID is configured as isolate Vlan Id.
open_error_t openapiDot1adServiceIntfMatchCvidGet(openapiClientHandle_t *client_handle, uint32_t subscrIndex, uint32_t intIfNum, uint32_t *matchCvid)
To get the matching customer VLAN ID for a DOT1AD subscription.
open_error_t openapiDot1adInterfacePreserveCvlanDot1pSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t enable)
Set the Dot1ad interface's preserve CVLAN-dot1p property.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiDot1adSubscriptionNameGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, uint32_t cvid, open_buffdesc *name)
To get the name of a DOT1AD service subscription.
To match untagged packets.
open_error_t openapiDot1adSpecificSubscriptionNextIntfEntryGet(openapiClientHandle_t *client_handle, uint32_t intfIn, uint32_t svidIn, uint32_t cvidIn, uint32_t *intfOut, uint32_t *svidOut, uint32_t *cvidOut)
Given interface number, service VLAN ID and Customer VLAN ID get the next subscribers entry...
open_error_t openapiDot1adSubscriptionMatchSvidSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, uint32_t matchSvid)
To set the matching Service VLAN ID for a DOT1AD subscription.
open_error_t openapiDot1adServiceDelete(openapiClientHandle_t *client_handle, uint32_t svid)
To delete an existing DOT1AD service.
To match packets without customer tag.
OPEN_DOT1AD_INTERFACE_TYPE_t
This enumerator is appointed to indicate interface type for a given configuration or status parameter...
open_error_t openapiDot1adServiceIntfMatchSvidGet(openapiClientHandle_t *client_handle, uint32_t subscrIndex, uint32_t intIfNum, uint32_t *matchSvid)
To get the matching service VLAN ID for a DOT1AD subscription.
open_error_t openapiDot1adReleaseCurrentSubscription(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid)
Remove current subscription structure from given internal interface number and DOT1AD service VLAN ID...
open_error_t openapiDot1adServiceNameAdd(openapiClientHandle_t *client_handle, uint32_t svid, open_buffdesc *name)
To add the name to this service.
open_error_t openapiDot1adSubscriptionNameSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t svid, open_buffdesc *name)
To set the name for a DOT1AD service subscription.
open_error_t openapiDot1adIsolateVidSet(openapiClientHandle_t *client_handle, uint32_t svid, uint32_t isolateVid)
To set the isolated VLAN ID for E-TREE service.
open_error_t openapiDot1adServiceNameGet(openapiClientHandle_t *client_handle, uint32_t svid, open_buffdesc *name)
To get the name of the service for a given service VLAN ID.
open_error_t openapiDot1adServiceNameStringCheck(openapiClientHandle_t *client_handle, open_buffdesc *name)
Checks if the service name is a valid string.
open_error_t openapiDot1adSubscriptionNNIIntfListGet(openapiClientHandle_t *client_handle, uint32_t subscrIndex, uint32_t intIfNum, open_buffdesc *nniIntfList)
To get the NNI InterfaceList for a given DOT1AD service subscription.
open_error_t openapiDot1adSubscriptionFirstIntfEntryGet(openapiClientHandle_t *client_handle, uint32_t intfIn, uint32_t *intfOut, uint32_t *svid, uint32_t *cvid)
Get the first subscribers entry based on interface number.
OPEN_DOT1AD_SVCTYPE_t
This enumerator is appointed to indicate type of DOT1AD service for a given configuration or status p...