Hi,

Perhaps your switch doesn't support ARP_SHA rule.
Apply the following patch, and you can skip that test.

Regards,
Yamada


diff --git a/ryu/tests/integrated/test_add_flow_v12_matches.py 
b/ryu/tests/integrated/test_add_flow_v12_matches.py
index 27b3880..9520ae8 100644
--- a/ryu/tests/integrated/test_add_flow_v12_matches.py
+++ b/ryu/tests/integrated/test_add_flow_v12_matches.py
@@ -1189,6 +1189,7 @@ class RunTest(tester.TestFlowBase):
      def is_supported(self, t):
          unsupported = [
              'test_rule_set_mpls_tc',
+            'test_rule_set_arp_sha',
          ]
          for u in unsupported:
              if t.find(u) != -1:



(2013/04/24 5:39), Syed Raihan wrote:
> Hi,
> I have a custom soft switch in C++ that listens for Openflow controller
> connections and has parsing and storing capability for Flows and Groups with
> a Set of port pre-defined.
> How can I run/configure ryu/integrated tests for Match and actions.
> I tried with,
>
> yu-manager test_add_flow_v12_matches.py
> loading app test_add_flow_v12_matches.py
> loading app ryu.controller.ofp_handler
> creating context dpset
> instantiating app test_add_flow_v12_matches.py
> instantiating app ryu.controller.ofp_handler
> TEST_START: test_rule_set_arp_opcode
> TEST_START: test_rule_set_arp_sha
> Traceback (most recent call last):
>    File "build/bdist.linux-i686/egg/gevent/greenlet.py", line 328, in run
>      result = self._run(*self.args, **self.kwargs)
>    File "/usr/lib/python2.6/site-packages/ryu/base/app_manager.py", line 106,
> in _event_loop
>      handler(ev)
>    File "/usr/lib/python2.6/site-packages/ryu/tests/integrated/tester.py",
> line 149, in stats_reply_handler
>      self.run_verify(ev)
>    File "/usr/lib/python2.6/site-packages/ryu/tests/integrated/tester.py",
> line 160, in run_verify
>      result = verify_func(dp, msg.body)
>    File "/simdisk/OF/ryu/ryu/tests/integrated/test_add_flow_v12_matches.py",
> line 71, in verify_default
>      if self._is_all_zero_bit(type_, mask):
>    File "/simdisk/OF/ryu/ryu/tests/integrated/test_add_flow_v12_matches.py",
> line 107, in _is_all_zero_bit
>      for v in val:
> TypeError: 'NoneType' object is not iterable
> <Greenlet at 0xa2facfc: <bound method RunTest._event_loop of
> <test_add_flow_v12_matches.RunTest object at 0xa311aac>>> failed with 
> TypeError
>
> How to fix test script error?
> Thanks
> Syed Raihan
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to