[pox-dev] nx.NXM_OF_TCP_DST not getting assigned

Jayanth Silesh jayanthsileshs.forums at gmail.com
Fri Dec 13 00:16:44 PST 2013


Hello,

I am trying to run this part of code and its throwing the following error.

Code:

learn.spec.append(fms( field=nx.NXM_OF_ETH_TYPE, match=nx.NXM_OF_ETH_TYPE ))
learn.spec.append(fms( field=nx.NXM_OF_IP_PROTO, match=nx.NXM_OF_IP_PROTO ))
if( temp_state[ts][3] == "tp_dst"):
	tp_dst = int(temp_state[ts][2])
	if(int(temp_match_type['nw_proto']) == 17 ):
		learn.spec.append(fms( field=tp_dst, match=nx.NXM_OF_UDP_DST ))
        if(int(temp_match_type['nw_proto']) == 6):
		learn.spec.append(fms( field=tp_dst, match=nx.NXM_OF_TCP_DST ))      # ERROR ON THIS LINE
learn.spec.append(fms( field=int(temp_state[ts][1]), output=True ))
msg3.actions.append(learn)



LOGS:

ERROR:core:Exception while handling OpenFlowNexus!ConnectionUp...
Traceback (most recent call last):
  File "/home/mininet/pox2/pox/lib/revent/revent.py", line 231, in raiseEventNoErrors
    return self.raiseEvent(event, *args, **kw)
  File "/home/mininet/pox2/pox/lib/revent/revent.py", line 278, in raiseEvent
    rv = event._invoke(handler, *args, **kw)
  File "/home/mininet/pox2/pox/lib/revent/revent.py", line 156, in _invoke
    return handler(self, *args, **kw)
  File "/home/mininet/pox2/pox/misc/cust_hack.py", line 90, in _handle_ConnectionUp
    learn.spec.append(fms( field=tp_dst, match=nx.NXM_OF_TCP_DST ))
  File "/home/mininet/pox2/pox/openflow/nicira.py", line 1456, in new
    src_inst = src(*srcarg,**srckw)
  File "/home/mininet/pox2/pox/openflow/nicira.py", line 1227, in __init__
    data = field().pack(omittable = False, header_only = True)
TypeError: 'int' object is not callable

Thanks,
Jayanth 
Graduate Student
USC

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131213/ab5ba804/attachment.htm>


More information about the pox-dev mailing list