"field" should be one of the NXM_ match types. -- Murphy
On Dec 13, 2013, at 12:16 AM, Jayanth Silesh <jayanthsileshs.for...@gmail.com> wrote: > 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 > >