From: "Sharma, Yash" <Yash.Sharma@cavium.com>
To: "dts@dpdk.org" <dts@dpdk.org>, "yong.liu@intel.com" <yong.liu@intel.com>
Subject: [dts] DUT port map is showing port index as -1
Date: Wed, 29 Aug 2018 13:06:09 +0000 [thread overview]
Message-ID: <BYAPR07MB5141A40B8BA4611406CD09CB99090@BYAPR07MB5141.namprd07.prod.outlook.com> (raw)
[-- 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 --]
reply other threads:[~2018-08-29 13:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BYAPR07MB5141A40B8BA4611406CD09CB99090@BYAPR07MB5141.namprd07.prod.outlook.com \
--to=yash.sharma@cavium.com \
--cc=dts@dpdk.org \
--cc=yong.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).