CSIT-651 Add keywords and template for memif
[csit.git] / resources / traffic_scripts / ipfix_sessions.py
index 385d213..e7597a8 100755 (executable)
@@ -22,7 +22,8 @@ from scapy.layers.inet import IP, TCP, UDP
 from scapy.layers.inet6 import IPv6
 from scapy.layers.l2 import Ether
 
-from resources.libraries.python.IPFIXUtil import IPFIXHandler, IPFIXData
+from resources.libraries.python.telemetry.IPFIXUtil import IPFIXHandler, \
+    IPFIXData
 from resources.libraries.python.PacketVerifier import RxQueue, TxQueue, auto_pad
 from resources.libraries.python.TrafficScriptArg import TrafficScriptArg
 
@@ -133,8 +134,6 @@ def main():
     tx_if = args.get_arg('tx_if')
 
     protocol = args.get_arg('protocol')
-    source_port = int(args.get_arg('port'))
-    destination_port = int(args.get_arg('port'))
     count = int(args.get_arg('count'))
     sessions = int(args.get_arg('sessions'))
 
@@ -167,8 +166,8 @@ def main():
 
     # do not print details for sent packets
     verbose = False
-    print("Sending more than one packet. Details will be filtered for\
-    all packets sent.")
+    print("Sending more than one packet. Details will be filtered for "
+          "all packets sent.")
 
     ignore = []
     for x in range(sessions):