Hello
I installed Ryu(version 4.24) on Ubuntu16.04 on VirtualBox.
And I followed RyuBook and tried to run Sample test as suggested in the chapter
named “OpenFlow switch test tool”.
If I run an individual json file such as 17_PUSH_VLAN.json under action, for
instance, Ryu successfully completes the test with a test report like
ok<3>/error<0>.
However if I try to run the whole directory “ryu/tests/switch/of13/”, I get the
following error messages.
Any suggestion on how I may solve this issue?
ted@Agemalab1:~/Project/SDN$ sudo ryu/ryu/tests/switch/run_mininet.py
[sudo] password for ted:
mininet> net
s1 lo: s1-eth1:s2-eth1 s1-eth2:s2-eth2 s1-eth3:s2-eth3
s2 lo: s2-eth1:s1-eth1 s2-eth2:s1-eth2 s2-eth3:s1-eth3
c0
mininet> xterm c0
root@Agemalab1:~/Project/SDN# ryu-manager --test-switch-dir
ryu/ryu/tests/switch/of13 ryu/ryu/tests/switch/tester.py
loading app ryu/ryu/tests/switch/tester.py
loading app ryu.controller.ofp_handler
instantiating app ryu/ryu/tests/switch/tester.py of OfTester
target_dpid=0000000000000001
tester_dpid=0000000000000002
target ofp version=openflow13
tester ofp version=openflow13
Test files directory = ryu/ryu/tests/switch/of13
instantiating app ryu.controller.ofp_handler of OFPHandler
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 59, in
_launch
return func(*args, **kwargs)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 413, in
_test_sequential_execute
tests = TestPatterns(test_dir, self.logger)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1297, in
__init__
self._get_tests(test_dir)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1309, in
_get_tests
self._get_tests(test_path)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1309, in
_get_tests
self._get_tests(test_path)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1309, in
_get_tests
self._get_tests(test_path)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1314, in
_get_tests
test = TestFile(path, self.logger)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1326, in
__init__
self._get_tests(path)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1359, in
_get_tests
self.tests.append(Test(test_json))
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1371, in
__init__
self.tests) = self._parse_test(test_json)
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1413, in
_parse_test
test_pkt[KEY_INGRESS] = __test_pkt_from_json(test[KEY_INGRESS])
File "/home/ted/Project/SDN/ryu/ryu/tests/switch/tester.py", line 1377, in
__test_pkt_from_json
data.serialize()
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/packet/packet.py", line
99, in serialize
data = p.serialize(self.data, prev)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/packet/icmpv6.py", line
142, in serialize
assert isinstance(self.data, _ICMPv6Payload)
AssertionError
dpid=0000000000000001 : Join target SW.
dpid=0000000000000002 : Join tester SW.
Here Ryu stops, so only thing I can do is to exit by “ctrl c”.
Thank you,
Ted
*************************************************************************
This email message, including any attachments, is for the sole
use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message. [Delta Electronics, INC. Taiwan]
*************************************************************************
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel