Separate files needing GPL license
[csit.git] / GPL / traffic_scripts / policer.py
old mode 100755 (executable)
new mode 100644 (file)
similarity index 94%
rename from resources/traffic_scripts/policer.py
rename to GPL/traffic_scripts/policer.py
index 97cad61..db90bb2
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
 #!/usr/bin/env python3
 
-# Copyright (c) 2019 Cisco and/or its affiliates.
+# Copyright (c) 2020 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -24,8 +24,8 @@ from scapy.layers.inet import IP, TCP
 from scapy.layers.inet6 import IPv6, ICMPv6ND_NS
 from scapy.packet import Raw
 
 from scapy.layers.inet6 import IPv6, ICMPv6ND_NS
 from scapy.packet import Raw
 
-from resources.libraries.python.TrafficScriptArg import TrafficScriptArg
-from resources.libraries.python.PacketVerifier import RxQueue, TxQueue
+from .TrafficScriptArg import TrafficScriptArg
+from .PacketVerifier import RxQueue, TxQueue
 
 
 def check_ipv4(pkt_recv, dscp):
 
 
 def check_ipv4(pkt_recv, dscp):