38 #ifndef OPENAPI_VLAN_H_INCLUDED
39 #define OPENAPI_VLAN_H_INCLUDED
62 #define OPEN_VLAN_LIST_MAX_ENTRIES 4096
106 #define OPEN_DOT1Q_UNTAGGED 0
107 #define OPEN_DOT1Q_TAGGED 1
129 uint32_t *nextVlanNum);
306 uint32_t *participating);
327 uint32_t *nextVlanNum,
328 uint32_t *delete_pending);
450 uint32_t *numTrafficClasses);
615 uint32_t intf, uint32_t vlanId);
635 uint32_t intf, uint32_t *vlanId);
656 uint32_t intf, uint32_t vlanId);
676 uint32_t intf, uint32_t *vlanId);
840 uint32_t *primaryVid,
841 uint32_t *secondaryVid);
865 uint32_t *primaryVid,
915 uint32_t *nextPrimaryVid,
944 uint32_t *nextPrimaryVid,
945 uint32_t *secondaryVid);
971 uint32_t *nativeVid);
1114 uint32_t primary_vlan,
1154 uint32_t primary_vlan,
1265 uint32_t *nextvlanId);
1431 uint32_t vlanId, uint32_t ifNum,
1450 uint32_t vid, uint32_t *nextVid);
1509 uint32_t ifNum, uint32_t *val);
1551 uint32_t *numOfElements);
1574 uint64_t *totalRxPktsNotForwarded);
open_error_t openapiVlanNameLenGet(openapiClientHandle_t *client_handle, uint32_t *strLen)
Gets the VLAN Name string length.
open_error_t openapiPvlanIntfPromiscTrunkAssocNextGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t primaryVid, uint32_t *nextPrimaryVid, OPEN_VLAN_LIST_t *secondaryVidList)
Get the next primary VLAN and any associated secondary VLAN(s) for a promiscuous trunk interface in a...
OPEN_DOT1Q_SWPORT_MODE_t
< Dot1q port modes.
open_error_t openapiVlanGlobalAutoTrunkGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
Get the Auto-Trunk administrative mode.
open_error_t openapiDot1qRxPacketsNotForwardedCountGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint64_t *totalRxPktsNotForwarded)
Get the total number of received packets that are not forwarded of the interafce. ...
open_error_t openapiVlanDelete(openapiClientHandle_t *client_handle, uint32_t vlanNum)
Deletes the VLAN with the ID specified on the switch.
uint32_t numEntries
number of valid list entries
open_error_t openapiVlanGlobalAutoTrunkSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
Set the Auto-Trunk administrative mode.
open_error_t openapiVlanMacDelete(openapiClientHandle_t *client_handle, open_buffdesc *mac, uint32_t vlanId)
To delete a mac from a VLAN.
open_error_t openapiDot1qSwPortForbiddenVlanListGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *vidList)
Get the forbidden VLAN list for the interface when the interface is in general mode.
open_error_t openapiPvlanIntfOperAssocGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *operationalVidList)
Get the list of operational VLAN(s) for a private VLAN interface.
open_error_t openapiPvlanIntfTrunkAllowedVlanListGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *normalVidList)
Get the list of normal VLAN(s) carried by a promiscuous or isolated trunk interface in a private VLAN...
int openapiVlanIsStatic(openapiClientHandle_t *client_handle, uint32_t vlanNum)
Returns whether the VLAN is static.
open_error_t openapiDot1qSwPortTrunkNativeVlanGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t *vlanId)
Get the Native VLAN ID for a port when in trunking mode.
open_error_t openapiVlanIfNumTrafficClassesGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *numTrafficClasses)
Gets an interface's number of traffic classes supported.
open_error_t openapiDot1qPVlanIntfPromiscAssocRemove(openapiClientHandle_t *client_handle, uint32_t ifNum)
Clear VLAN bindings for private VLAN interface.
open_error_t openapiVlanCreatedCheck(openapiClientHandle_t *client_handle, uint32_t vlanNum)
Test if the given VLAN has been configured on the switch.
Switchport private promisc mode.
open_error_t openapiDot1qOperAutoTrunkModeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *autoTrunkOperMode)
Get the operational auto-trunk mode of the interface.
OPEN_DOT1Q_ACCEPT_FRAME_TYPE_t
OPEN uses these enumerators to indicate the types of frames that may be received on this port...
open_error_t openapiDot1qVlanNumDeletesGet(openapiClientHandle_t *client_handle, uint32_t *val)
Get the number of times a VLAN entry has been deleted from DOT1Q table.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiVlanNextGet(openapiClientHandle_t *client_handle, uint32_t vlanNum, uint32_t *nextVlanNum)
Gets the next VLAN number that has been configured on the switch.
open_error_t openapiDot1qApiPrivateVlanAssocRemove(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_VLAN_LIST_t vidList)
Remove VLAN bindings for private VLAN domain.
This is used by applications like gvrp who do not care about the mode.
open_error_t openapiPvlanIntfHostAssocGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t *primaryVid, uint32_t *secondaryVid)
Get the private VLAN association for a host mode interface.
Dynamically configured Auth manager/DOT1X VLAN.
open_error_t openapiVlanMacGetNext(openapiClientHandle_t *client_handle, open_buffdesc *mac, open_buffdesc *nextmac, uint32_t *nextvlanId)
Gets the next MAC vlan entry details of a given MAC.
Switchport private host mode.
open_error_t openapiDot1qSwPortAccessVlanGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t *vlanId)
Get the Access VLAN ID for a port.
open_error_t openapiDot1qSwPortModeSet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_DOT1Q_SWPORT_MODE_t mode)
Set the Switchport Configuration Mode for a port.
Dynamically configured L2 Tunnel VLAN.
open_error_t openapiDot1qPrivateVlanAssociationGet(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_VLAN_LIST_t *vidList)
Get VLAN bindings for private VLAN domain.
Switchport private promisc trunk mode.
open_error_t openapiVlanNameSet(openapiClientHandle_t *client_handle, uint32_t vlanNum, open_buffdesc *vlanName)
Configures a VLAN Name.
open_error_t openapiVlanIfParticipationGet(openapiClientHandle_t *client_handle, uint32_t vlanNum, uint32_t ifNum, OPEN_VLAN_PARTICIPATION_MODE_t *participationMode)
Gets an interface's configured participation mode for the specified VLAN.
open_error_t openapiVlanCreate(openapiClientHandle_t *client_handle, uint32_t vlanNum)
Creates the VLAN with the ID specified on the switch.
open_error_t openapiDot1qSwPortAccessVlanSet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t vlanId)
Set the Access VLAN ID for a port.
Default VLAN, always valued at 1.
open_error_t openapiQportsCurrentIngressFilteringGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Get the Current Ingress Filtering configuration for a port.
open_error_t openapiVlanIfTaggingGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t vlanNum, OPEN_CONTROL_t *tagging)
Gets an interface's tagging setting for the specified VLAN.
open_error_t openapiVlanIfParticipationStatusGet(openapiClientHandle_t *client_handle, uint32_t vlanNum, uint32_t ifNum, uint32_t *participating)
Gets an interface's participation status for the specified VLAN.
open_error_t openapiVlanMacGet(openapiClientHandle_t *client_handle, open_buffdesc *mac, uint32_t *vlanId)
To get the details of the mac vlan entry.
Switchport auto trunk mode.
open_error_t openapiVlanIfTaggingSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t vlanNum, OPEN_CONTROL_t tagging)
Sets an interface's tagging mode for the given VLAN.
open_error_t openapiDot1qSwPortUntaggedVlanListGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *vidList)
Get the untagged VLAN list for the interface when the interface is in general mode.
open_error_t openapiDot1qSwPortTrunkNativeVlanSet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t vlanId)
Set the native VLAN ID for a port when in trunking mode.
open_error_t openapiDot1qSwPortDynamicallyAddedVlanListGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *vidList)
Get the dynamically added VLAN list for the interface when the interface is in general mode...
open_error_t openapiDot1qSwPortModeGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_DOT1Q_SWPORT_MODE_t *mode)
Get the Switchport Configuration Mode for a port.
open_error_t openapiVlanIfPvidGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *vlanNum)
Gets an interface's PVID.
open_error_t openapiVlanTypeGet(openapiClientHandle_t *client_handle, uint32_t vlanNum, OPEN_DOT1Q_VLAN_TYPE_t *vlanType)
Gets the VLAN type for the specified VLAN.
open_error_t openapiDot1qIntfPVlanHostAssocSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t primary_vlan, uint32_t sec_vlan)
Set VLAN bindings for private VLAN interface.
Dynamically configured MVRP VLAN.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiVlanIfAcceptFrameTypeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT1Q_ACCEPT_FRAME_TYPE_t type)
Set the Acceptable Frame Type configuration for a port.
Switchport private isolated trunk mode.
open_error_t openapiMostVlanEntriesGet(openapiClientHandle_t *client_handle, uint32_t *val)
Get the max VLAN entries allowed.
open_error_t openapiPvlanIntfTrunkNativeVlanGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t *nativeVid)
Get the native VLAN for a promiscuous or isolated trunk interface in a private VLAN.
open_error_t openapiDot1qSwPortTrunkAllowedVlanListSet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *vidList)
Set the list of VLANs allowed on an interface when the interface is in trunking mode.
open_error_t openapiPvlanIntfPromiscAssocGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t *primaryVid, OPEN_VLAN_LIST_t *secondaryVidList)
Get the private VLAN association for a promiscuous mode interface.
OPEN_VLAN_PARTICIPATION_MODE_t
OPEN uses these enumerators to indicate the VLAN participation of a given interface.
open_error_t openapiDot1qPrivateVlanGet(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_DOT1Q_PVLAN_TYPE_t *pvlanType)
Get the configured private VLAN type.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
Dynamically configured GVRP VLAN.
OPEN_DOT1Q_PVLAN_PORT_TYPE_t
open_error_t openapiVlanNameGet(openapiClientHandle_t *client_handle, uint32_t vlanNum, open_buffdesc *vlanName)
Gets the VLAN Name.
open_error_t openapiNextVlanGet(openapiClientHandle_t *client_handle, uint32_t vid, uint32_t *nextVid)
Gets the next VLAN ID.
open_error_t openapiVlanIfPvidSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t vlanNum)
Sets an interface's VLAN ID (PVID).
open_error_t openapiDot1qMaxSupportedVlansGet(openapiClientHandle_t *client_handle, uint32_t *val)
Get dot1q Max Supported VLANs.
Administratively configured, static VLAN.
open_error_t openapiDot1qPrivateVlanEnable(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_DOT1Q_PVLAN_TYPE_t pvlanType)
Setup a VLAN as private VLAN.
open_error_t openapiDot1qPVlanIntfHostAssocRemove(openapiClientHandle_t *client_handle, uint32_t ifNum)
Clear VLAN bindings for private VLAN interface.
open_error_t openapiPvlanIntfModeGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_DOT1Q_SWPORT_MODE_t *mode)
Get the private VLAN mode for an interface.
open_error_t openapiVlanIfDefaultUserPrioritySet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority)
Sets an interface's default user priority.
open_error_t openapiDot1qPortIngressFiltering(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Get VLAN ingress filtering status per port.
open_error_t openapiQportsEnableIngressFilteringSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t mode)
Set the Ingress Filtering configuration for a port.
open_error_t openapiVlanIfAcceptFrameTypeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT1Q_ACCEPT_FRAME_TYPE_t *type)
Get the Acceptable Frame Type configuration for a port.
open_error_t openapiStaticVlanEntriesGet(openapiClientHandle_t *client_handle, uint32_t *val)
Get the number of static VLANs.
open_error_t openapiVlanVIDListGet(openapiClientHandle_t *client_handle, uint32_t intfNum, OPEN_VLAN_LIST_t *data, uint32_t *numOfElements)
Get a list of VLANs an interface is a member of.
open_error_t openapiDynamicVlanEntriesGet(openapiClientHandle_t *client_handle, uint32_t *val)
Get the number of dynamic VLANs.
open_error_t openapiDot1qSwPortTrunkAllowedVlanListGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *vidList)
Get the list of VLANs allowed on an interface when the interface is in trunking mode.
open_error_t openapiVlanIfDefaultUserPriorityGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *priority)
Gets an interface's default user priority.
open_error_t openapiDot1qIntfPVlanPromiscAssocSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t primary_vlan, OPEN_VLAN_LIST_t vidList)
Set VLAN bindings for private VLAN interface.
open_error_t openapiDot1qSwPortTaggedVlanListGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_VLAN_LIST_t *vidList)
Get the tagged VLAN list for the interface when the interface is in general mode. ...
#define OPEN_VLAN_LIST_MAX_ENTRIES
VLAN list.
open_error_t openapiVlanIfParticipationSet(openapiClientHandle_t *client_handle, uint32_t vlanNum, uint32_t ifNum, OPEN_VLAN_PARTICIPATION_MODE_t participationMode)
Sets an interface's participation mode configuration for the specified VLAN.
open_error_t openapiPvlanIntfIsolatedTrunkAssocNextGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t primaryVid, uint32_t *nextPrimaryVid, uint32_t *secondaryVid)
Get the next primary VLAN and any associated secondary VLAN for an isolated trunk interface in a priv...
open_error_t openapiVlanTaggedSetGet(openapiClientHandle_t *client_handle, uint32_t vlanId, uint32_t ifNum, uint32_t *val)
Get the tagging configuration of a port.
Dynamically configured OPENFLOW VLAN.
Dynamically configured IP internal VLAN.
open_error_t openapiVlanMacAdd(openapiClientHandle_t *client_handle, open_buffdesc *mac, uint32_t vlanId)
To add a mac to a VLAN.
open_error_t openapiQportsEnableIngressFilteringGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
Get the Ingress Filtering configuration for a port.
open_error_t openapiVlanNextChangedGet(openapiClientHandle_t *client_handle, uint32_t vlanNum, uint32_t *nextVlanNum, uint32_t *delete_pending)
Gets the next VLAN which has a pending change or a pending deletion.
open_error_t openapiDot1qApiPrivateVlanAssocAdd(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_VLAN_LIST_t vidList)
Setup a VLAN bindings for private VLAN domain.