""" pcapToRawTrafficItem.py Tested with two back-2-back Ixia ports - Connect to the API server - Connect to chassis - Configure license server IP - Assign ports: - If variable forceTakePortOwnership is True, take over the ports if they're owned by another user. - If variable forceTakePortOwnership if False, abort test. - Configure a Raw Traffic Item - Read a PCAP file. - Add Traffic Item packet headers using PCAP packet header values. Supports IxNetwork API servers: - Windows, Windows Connection Mgr and Linux Requirements - IxNetwork 8.50 - tcp.pcap file (Included in the same local directory). - pip install scapy - pip install requests - pip install -U --no-cache-dir ixnetwork_restpy Usage: # Defaults to Windows - Enter: python