* [dts] DUT port map is showing port index as -1
@ 2018-08-29 13:06 Sharma, Yash
0 siblings, 0 replies; only message in thread
From: Sharma, Yash @ 2018-08-29 13:06 UTC (permalink / raw)
To: dts, yong.liu
[-- Attachment #1: Type: text/plain, Size: 3411 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 10835 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-29 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-29 13:06 [dts] DUT port map is showing port index as -1 Sharma, Yash
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).