[dts] DUT port map is showing port index as -1

Sharma, Yash Yash.Sharma at cavium.com
Wed Aug 29 15:06:09 CEST 2018


Hi all,


Hi can anyone explain me why in in DTS 18.02, dut_prerequisites(), it is calling disable_tester_ipv6().
Why is there a need of disabling testers IPV6 support.

While executing testcases it is showing me this:  DUT PORT MAP: [-1, -1], and there is a Index Error exception raised.

File "/root/dts-18.02/framework/dut.py", line 984, in disable_tester_ipv6
    if self.tester.ports_info[tester_port]['type'] != 'ixia':
IndexError: list index out of range


However if I comment out the disable_tester_ipv6() function call, I am able to run some test cases, while some test cases  fail and raise ParameterInvalidException,

File "/root/dts-18.02/framework/tester.py", line 188, in get_interface
    raise ParameterInvalidException("local port should not be -1")
ParameterInvalidException: local port should not be -1






dut.172.28.12.218: echo 0000:af:00.0 > /sys/bus/pci/devices/0000\:af\:00.0/driver/unbind
             dut.172.28.12.218:
             dut.172.28.12.218: modprobe qede
             dut.172.28.12.218:
             dut.172.28.12.218: echo 0000:af:00.0 > /sys/bus/pci/drivers/qede/bind
             dut.172.28.12.218:
             dut.172.28.12.218: ifconfig eth0 up
             dut.172.28.12.218:
             dut.172.28.12.218: echo 0000:af:00.1 > /sys/bus/pci/devices/0000\:af\:00.1/driver/unbind
             dut.172.28.12.218:
             dut.172.28.12.218: modprobe qede
             dut.172.28.12.218:
             dut.172.28.12.218: echo 0000:af:00.1 > /sys/bus/pci/drivers/qede/bind
             dut.172.28.12.218:
             dut.172.28.12.218: ifconfig eth1 up
             dut.172.28.12.218:
             dut.172.28.12.218: ip link show eth0
             dut.172.28.12.218: 33: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
    link/ether 14:02:ec:ce:ee:24 brd ff:ff:ff:ff:ff:ff
             dut.172.28.12.218: ip -family inet6 address show dev eth0 | awk '/inet6/ { print $2 }'
             dut.172.28.12.218: fe80::1602:ecff:fece:ee24/64
             dut.172.28.12.218: ip -family inet address show dev eth0 | awk '/inet/ { print $2 }'
             dut.172.28.12.218:
             dut.172.28.12.218: ip link show eth1
             dut.172.28.12.218: 34: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN mode DEFAULT qlen 1000
    link/ether 14:02:ec:ce:ee:25 brd ff:ff:ff:ff:ff:ff
             dut.172.28.12.218: ip -family inet6 address show dev eth1 | awk '/inet6/ { print $2 }'
             dut.172.28.12.218: fe80::1602:ecff:fece:ee25/64
             dut.172.28.12.218: ip -family inet address show dev eth1 | awk '/inet/ { print $2 }'
             dut.172.28.12.218:
             dut.172.28.12.218: DUT PORT MAP: [-1, -1]
                                        dts:  PREREQ EXCEPTION Traceback (most recent call last):
  File "/root/dts-18.02/framework/dts.py", line 341, in dts_run_prerequisties
    dutobj.prerequisites()
  File "/root/dts-18.02/framework/project_dpdk.py", line 327, in prerequisites
    self.dut_prerequisites()
  File "/root/dts-18.02/framework/dut.py", line 216, in dut_prerequisites
    self.disable_tester_ipv6()
  File "/root/dts-18.02/framework/dut.py", line 984, in disable_tester_ipv6
    if self.tester.ports_info[tester_port]['type'] != 'ixia':
IndexError: list index out of range

Regards,
Yash

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dts/attachments/20180829/c355b5a2/attachment.html>


More information about the dts mailing list