You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to run openflow 1.3 test cases given in tests-1.3 folder of oftest.
I am using ofsoftswitch13 for this purpose.
I run the test case basic.Echo in file tests-1.3 using this ./oft basic.Echo --test-dir=tests-1.3 --port=6633 command and it works fine.
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ...ok
Ran 1 test in 1.425s
OK
but when I run some other test case it gives error,
root@infmy10527:/home/user/a/oftest#./oft basic.PacketInMiss --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.PacketInMiss ... ERROR
ERROR: basic.PacketInMiss
Traceback (most recent call last):
File "tests-1.3/basic.py", line 248, in runTest
ofp.instruction.apply_actions(
AttributeError: 'module' object has no attribute 'instruction'
Ran 1 test in 4.391s
I run the test case using following command
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --of-version=1.3 --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ... ERROR
ERROR: basic.Echo
Traceback (most recent call last):
File "/home/user/a/oftest/src/python/oftest/base_tests.py", line 59, in setUp
"Did not complete features_request for handshake")
File "/home/user/a/oftest/src/python/oftest/base_tests.py", line 97, in assertTrue
unittest.TestCase.assertTrue(self, cond, msg)
AssertionError: Did not complete features_request for handshake
Ran 1 test in 5.440s
FAILED (errors=1)
when I do the same with --of-version=1.0 instead of --of-version=1.3 it works fine.
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --of-version=1.0 --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ... tests-1.3
ok
Ran 1 test in 1.425s
OK
I want all openflow 1.3 test cases to run without any error, can anyone help me out with this.
Thanks,
Asha
The text was updated successfully, but these errors were encountered:
Be sure to use the --of-version param to specify if you're running a v1.3 or v1.0. By specifying the version you run you tell oftest which openflow packet lib to load; By default it loads v1.0.
Based on the output you've included it looks like your switch may be configured to run v1.0.
I am using a virtual switch(cpqd ofsoftswitch) which is configured to work with openflow 1.3.
OFtest works fine when port number is changed from --port=6633 to --port= 6653.
Thanks for the reply .
Hi,
I want to run openflow 1.3 test cases given in tests-1.3 folder of oftest.
I am using ofsoftswitch13 for this purpose.
I run the test case basic.Echo in file tests-1.3 using this ./oft basic.Echo --test-dir=tests-1.3 --port=6633 command and it works fine.
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ...ok
Ran 1 test in 1.425s
OK
but when I run some other test case it gives error,
root@infmy10527:/home/user/a/oftest#./oft basic.PacketInMiss --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.PacketInMiss ... ERROR
ERROR: basic.PacketInMiss
Traceback (most recent call last):
File "tests-1.3/basic.py", line 248, in runTest
ofp.instruction.apply_actions(
AttributeError: 'module' object has no attribute 'instruction'
Ran 1 test in 4.391s
I run the test case using following command
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --of-version=1.3 --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ... ERROR
ERROR: basic.Echo
Traceback (most recent call last):
File "/home/user/a/oftest/src/python/oftest/base_tests.py", line 59, in setUp
"Did not complete features_request for handshake")
File "/home/user/a/oftest/src/python/oftest/base_tests.py", line 97, in assertTrue
unittest.TestCase.assertTrue(self, cond, msg)
AssertionError: Did not complete features_request for handshake
Ran 1 test in 5.440s
FAILED (errors=1)
when I do the same with --of-version=1.0 instead of --of-version=1.3 it works fine.
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --of-version=1.0 --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ... tests-1.3
ok
Ran 1 test in 1.425s
OK
I want all openflow 1.3 test cases to run without any error, can anyone help me out with this.
Thanks,
Asha
The text was updated successfully, but these errors were encountered: