38 #ifndef OPENAPI_MIRROR_H_INCLUDED
39 #define OPENAPI_MIRROR_H_INCLUDED
197 uint32_t sessionNum);
253 uint32_t * sessionCount);
287 uint32_t sessionNum);
307 uint32_t * sessionNum,
347 uint32_t * sessionNum);
401 uint32_t * intIfNum);
422 uint32_t * nextIntIfNum);
457 uint32_t * intIfNum);
478 uint32_t *nextIntIfNum);
558 uint32_t * mirrorSrcType);
578 uint32_t * mirrorDstType);
598 uint32_t * remoteSrcVlan);
641 uint32_t * remoteDstVlan);
682 uint32_t * intIfNum);
725 uint32_t * ipAccessListNum);
747 uint32_t ipAccessListNum,
815 uint32_t * rspanVlan);
834 uint32_t * rspanVlanNext);
open_error_t openapiSwMonitorSrcTypeGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t *mirrorSrcType)
Returns the source mirror type(Port based or VLAN based) for session "sessionNum".
open_error_t openapiSwPortMonitorValidDestIntfListGet(openapiClientHandle_t *client_handle, open_buffdesc *bufd)
Returns list of valid interfaces that can be configured as destination port.
open_error_t openapiSwPortMonitorSourcePortAdd(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t intIfNum, OPENAPI_MIRROR_DIRECTION_t probeType)
Adds interface to the mirrored ports of session "sessionNum".
open_error_t openapiSwMonitorRemoteSrcVlanGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t *remoteSrcVlan)
Returns the remote source VLAN for session "sessionNum".
open_error_t openapiSwPortMonitorDestPortGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t *intIfNum)
Returns Destination Port for session "sessionNum".
open_error_t openapiSwPortMonitorSrcConfiguredSessionGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *sessionNum)
Returns the session in which internal interface number is configured as a source port.
open_error_t openapiSwPortMonitorIsDestConfigured(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *sessionNum, OPEN_BOOL_t *status)
Determines status of internal interface number which is configured as destination port...
open_error_t openapiSwPortMonitorValidDestIntfNextGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *nextIntIfNum)
Returns next valid interface that can be configured as destination port.
open_error_t openapiSwMonitorIpAclGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t *ipAccessListNum)
Returns the IP ACL attached to the mirroring session "sessionNum".
Traffic direction is egress.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiSwPortMonitorDestPortSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t intIfNum)
Sets Destination Port for session "sessionNum".
open_error_t openapiSwPortMonitorModeGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, OPEN_CONTROL_t *mode)
Returns the Port Monitoring Mode for session "sessionNum".
open_error_t openapiSwPortMonitorValidSrcIntfListGet(openapiClientHandle_t *client_handle, open_buffdesc *bufd)
Returns list of valid interfaces that can be configured as source port.
open_error_t openapiMirrorIsSrcVlan(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_BOOL_t *status)
Checks if the VLAN is source to any of the mirroring sessions.
Traffic direction is ingress.
open_error_t openapiSwPortMonitorSessionCount(openapiClientHandle_t *client_handle, uint32_t *sessionCount)
Returns count of the sessiosns of Port Monitoring sessions.
open_error_t openapiSwPortMonitorModeSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, OPEN_CONTROL_t mode)
Sets the Port Monitoring Mode for session "sessionNum".
open_error_t openapiRemoteSpanVlanGet(openapiClientHandle_t *client_handle, uint32_t *rspanVlan)
Returns the RSPAN VLAN.
open_error_t openapiSwRemoteMonitorDstVlanSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint16_t vlanId, OPEN_CONTROL_t updateAction)
Sets the remote destination VLAN for session "sessionNum".
open_error_t openapiSwPortMonitorDestPortRemove(openapiClientHandle_t *client_handle, uint32_t sessionNum)
Remove Destination Port of session "sessionNum".
open_error_t openapiSwMonitorMacAclGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, open_buffdesc *macAccessListName)
Returns the MAC ACL attached to the mirroring session "sessionNum".
open_error_t openapiMirrorSessionReserveStateGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, OPEN_CONTROL_t *state)
Returns the Port Monitoring session "sessionNum" reserved state.
open_error_t openapiSwPortMonitorIsSrcConfigured(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *status)
Determines status of internal interface number which is configured as source port.
open_error_t openapiRemoteSpanVlanListGet(openapiClientHandle_t *client_handle, open_buffdesc *bufd)
Returns list of RSPAN VLAN.
Traffic direction is unconfigured.
open_error_t openapiSwPortMonitorSourcePortsListGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, open_buffdesc *bufd)
Returns list of source ports for session "sessionNum".
open_error_t openapiSwMonitorVlanListGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, open_buffdesc *bufd)
Returns the VLAN IDs for session "sessionNum".
open_error_t openapiSwRemoteMonitorSrcVlanSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint16_t vlanId, OPEN_CONTROL_t updateAction)
Sets the remote source VLAN for session "sessionNum".
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiSwMonitorMacAclSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, open_buffdesc *macAccessListName, OPEN_CONTROL_t updateAction)
Attaches MAC ACL to the mirroring session "sessionNum".
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiSwMonitorIpAclSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t ipAccessListNum, OPEN_CONTROL_t updateAction)
Attaches IP ACL to the mirroring session "sessionNum".
Traffic direction is bidirectional.
open_error_t openapiMirrorIsRspanVlan(openapiClientHandle_t *client_handle, uint32_t vlanId, OPEN_BOOL_t *status)
Checks if the VLAN is a RSPAN VLAN.
Traffic direction is swlow.
open_error_t openapiSwMonitorVlanListSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, open_buffdesc *bufd, OPEN_CONTROL_t updateAction)
Sets the VLAN IDs for session "sessionNum".
open_error_t openapiRemoteSpanVlanSet(openapiClientHandle_t *client_handle, uint32_t rspanVlan, OPEN_CONTROL_t updateAction)
Sets the VLAN as RSPAN VLAN.
open_error_t openapiSwMonitorRemoteDstVlanGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t *remoteDstVlan)
Returns the remote destination VLAN for session "sessionNum".
open_error_t openapiSwPortMonitorIsValidSrcPort(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *valid)
Checks validity of interface for a source port.
open_error_t openapiSwPortMonitorValidSrcIntfFirstGet(openapiClientHandle_t *client_handle, uint32_t *intIfNum)
Returns first valid interface that can be configured as source port.
open_error_t openapiSwPortMonitorConfigRemove(openapiClientHandle_t *client_handle)
Removes port monitoring configuration for all sessions.
open_error_t openapiSwPortMonitorSessionRemove(openapiClientHandle_t *client_handle, uint32_t sessionNum)
Removes port monitoring configuration for session.
open_error_t openapiSwPortMonitorSourcePortRemove(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t intIfNum)
Remove interface from mirrored ports of session "sessionNum".
open_error_t openapiSwPortMonitorValidDestIntfFirstGet(openapiClientHandle_t *client_handle, uint32_t *intIfNum)
Returns first valid interface that can be configured as destination port.
OPENAPI_MIRROR_DIRECTION_t
OpEN uses this enumeration to define ports traffic direction.
open_error_t openapiSwPortMonitorValidSrcIntfNextGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *nextIntIfNum)
Returns next valid interface that can be configured as source port.
open_error_t openapiSwPortMonitorIsValidDestPort(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *valid)
Checks validity of interface for a destination port.
open_error_t openapiRemoteSpanVlanNextGet(openapiClientHandle_t *client_handle, uint32_t rspanVlan, uint32_t *rspanVlanNext)
Returns next configured RSPAN VLAN.
open_error_t openapiSwMonitorReflectorPortGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t *intIfNum)
Returns Monitoring Reflector Port for session "sessionNum".
open_error_t openapiMirrorSourcePortDirectionGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t intIfNum, OPENAPI_MIRROR_DIRECTION_t *probeType)
Returns the direction to be mirrored for a source port.
open_error_t openapiMirrorSessionReserveStateSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, OPEN_CONTROL_t state)
Sets the Port Monitoring session "sessionNum" reserved state.
open_error_t openapiSwMonitorDstTypeGet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t *mirrorDstType)
Returns the destination mirror type (Port based or VLAN based) for session "sessionNum".
open_error_t openapiSwMonitorReflectorPortSet(openapiClientHandle_t *client_handle, uint32_t sessionNum, uint32_t intIfNum, OPEN_CONTROL_t updateAction)
Sets Monitoring Reflector Port for session "sessionNum".