""" DESCRIPTION Configures custom egress tracking on a receiving port. This sample shows how to create one ingress tracking and one egress tracking in the same custom egress statview tracking for VLAN ID. Tested with two Ixia ports connected back-2-back - Configure two VLAN/IPv4 Topology Groups - Start protocols - Create Traffic Item - Apply Traffic - Configures egress tracking for VLAN ID offset - Create egress tracking stat view - Start Traffic - Get stats To include an ingress tracking field: When you create your Traffic Item, you have the option to configure ingress trackings also. Available tracking filters for both ingress and egress... This script does a print with egressStatViewObj.AvailableTrackingFilter.find() to show the avialable tracking filters: ID: 1 VLAN:VLAN-ID (Ingress tracking) ID: 2 Flow Group (Ingress tracking) ID: 3 Custom: (4 bits at offset 116) <-- Egress tracking Sample egress stats: Row: 1 Rx Port: 2/1 VLAN:VLAN-ID: 103 <-- Ingress tracking the vlanID Egress Tracking: Custom: (4 bits at offset 116) Tx Frames: 100000 Rx Frames: 100000 Frames Delta: 0 Loss %: 0 Tx Frame Rate: 0 Rx Frame Rate: 0 Tx L1 Rate (bps): 0 Rx L1 Rate (bps): 0 Rx Bytes: 12800000 Tx Rate (Bps): 0 Rx Rate (Bps): 0 Tx Rate (bps): 0 Rx Rate (bps): 0 Tx Rate (Kbps): 0 Rx Rate (Kbps): 0 Tx Rate (Mbps): 0 Rx Rate (Mbps): 0 Store-Forward Avg Latency (ns): 556418835 Store-Forward Min Latency (ns): 9840 Store-Forward Max Latency (ns): 1213352620 First TimeStamp: 00:00:01.002 Last TimeStamp: 00:00:02.510 Supports IxNetwork API servers: - Windows, Windows Connection Mgr and Linux Requirements: - Minimum IxNetwork 8.50 - Python 2.7 and 3+ - pip install requests - pip install ixnetwork_restpy (minimum version 1.0.51) RestPy Doc: https://www.openixia.github.io/ixnetwork_restpy Usage: - Enter: python