dlinknctu/OpenADM

Ryu Adapter OpenFlow 1.0 FlowMod Exception

Opened this issue · 0 comments

When I tried to add a flow entry, I got the following error which displayed on the console of Ryu controller:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 481, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/ryu/app/wsgi.py", line 201, in __call__
    return super(wsgify_hack, self).__call__(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ryu/app/wsgi.py", line 263, in __call__
    return controller(req)
  File "/usr/local/lib/python2.7/dist-packages/ryu/app/wsgi.py", line 125, in __call__
    return getattr(self, action)(req, **kwargs)
  File "/home/vagrant/OpenADM/adapter/ryu/omniui/omniui.py", line 680, in mod_flow_entry
    ryuFlow = self.ryuFlow_v1_0(dp, omniFlow)
  File "/home/vagrant/OpenADM/adapter/ryu/omniui/omniui.py", line 716, in ryuFlow_v1_0
    'nw_src': flows.get('srcIP').split('/')[0],
AttributeError: 'NoneType' object has no attribute 'split'

The flow entry I added through web UI is listed below for the purpose of reproducing the error:

switch: "00:00:00:00:00:00:00:01"
priority: "99"
ingressPort: "3"
OUTPUT: "3"

P.S. OpenFlow 1.0