diff options
author | Stefan Kobza <skobza@cisco.com> | 2016-02-11 19:09:06 +0100 |
---|---|---|
committer | Stefan Kobza <skobza@cisco.com> | 2016-02-11 19:09:06 +0100 |
commit | b92a827b1c7f48da4214e992e5503ebe1c182416 (patch) | |
tree | cf272e0cd0354d0f13bbcb65c170545e9492c60c /resources/traffic_scripts/ipv4_ping_ttl_check.py | |
parent | 33499c81c94c2d3baef9d3e9f061cd76ef86fa74 (diff) |
Update of latest tests.
Change-Id: Ifb04651ff4a3c1ba9aaa725eb9a309278ebc1140
Signed-off-by: Stefan Kobza <skobza@cisco.com>
Diffstat (limited to 'resources/traffic_scripts/ipv4_ping_ttl_check.py')
-rwxr-xr-x | resources/traffic_scripts/ipv4_ping_ttl_check.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/traffic_scripts/ipv4_ping_ttl_check.py b/resources/traffic_scripts/ipv4_ping_ttl_check.py index 050a1d7b29..1286b46876 100755 --- a/resources/traffic_scripts/ipv4_ping_ttl_check.py +++ b/resources/traffic_scripts/ipv4_ping_ttl_check.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from scapy.all import * +from scapy.all import Ether, IP, ICMP from resources.libraries.python.PacketVerifier \ import Interface, create_gratuitous_arp_request, auto_pad from optparse import OptionParser @@ -25,8 +25,8 @@ def check_ttl(ttl_begin, ttl_end, ttl_diff): if dst_if_defined: dst_if.close() raise Exception( - "TTL changed from {} to {} but decrease by {} expected")\ - .format(ttl_begin, ttl_end, hops) + "TTL changed from {} to {} but decrease by {} expected" + .format(ttl_begin, ttl_end, hops)) def ckeck_packets_equal(pkt_send, pkt_recv): |