<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">Hello,</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">I am trying to run this part of code and its throwing the following error.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">Code:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">learn.spec.append(fms( field=nx.NXM_OF_ETH_TYPE, match=nx.NXM_OF_ETH_TYPE ))</div><div id="bloop_customfont" style="margin: 0px;">learn.spec.append(fms( field=nx.NXM_OF_IP_PROTO, match=nx.NXM_OF_IP_PROTO ))</div><div id="bloop_customfont" style="margin: 0px;">if( temp_state[ts][3] == "tp_dst"):</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">   </span>tp_dst = int(temp_state[ts][2])</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">       </span>if(int(temp_match_type['nw_proto']) == 17 ):</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">          </span>learn.spec.append(fms( field=tp_dst, match=nx.NXM_OF_UDP_DST ))</div><div id="bloop_customfont" style="margin: 0px;">        if(int(temp_match_type['nw_proto']) == 6):</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">           </span><b>learn.spec.append(fms( field=tp_dst, match=nx.NXM_OF_TCP_DST ))      # ERROR ON THIS LINE</b></div><div id="bloop_customfont" style="margin: 0px;">learn.spec.append(fms( field=int(temp_state[ts][1]), output=True ))</div><div id="bloop_customfont" style="margin: 0px;">msg3.actions.append(learn)</div></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">LOGS:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">ERROR:core:Exception while handling OpenFlowNexus!ConnectionUp...</div><div id="bloop_customfont" style="margin: 0px;">Traceback (most recent call last):</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/lib/revent/revent.py", line 231, in raiseEventNoErrors</div><div id="bloop_customfont" style="margin: 0px;">    return self.raiseEvent(event, *args, **kw)</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/lib/revent/revent.py", line 278, in raiseEvent</div><div id="bloop_customfont" style="margin: 0px;">    rv = event._invoke(handler, *args, **kw)</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/lib/revent/revent.py", line 156, in _invoke</div><div id="bloop_customfont" style="margin: 0px;">    return handler(self, *args, **kw)</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/misc/cust_hack.py", line 90, in _handle_ConnectionUp</div><div id="bloop_customfont" style="margin: 0px;">    learn.spec.append(fms( field=tp_dst, match=nx.NXM_OF_TCP_DST ))</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/openflow/nicira.py", line 1456, in new</div><div id="bloop_customfont" style="margin: 0px;">    src_inst = src(*srcarg,**srckw)</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/openflow/nicira.py", line 1227, in __init__</div><div id="bloop_customfont" style="margin: 0px;">    data = field().pack(omittable = False, header_only = True)</div><div id="bloop_customfont" style="margin: 0px;">TypeError: 'int' object is not callable</div></div><br><div class="" id="bloop_sign_1386922322189302016"><span style="font-family:helvetica,arial;font-size:13px"></span><pre style="line-height: normal;">Thanks,
Jayanth 
Graduate Student
USC</pre><pre style="line-height: normal;"><br></pre></div></body></html>