<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;">Hi Murphy,</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">when I insert this statement,</div><div id="bloop_customfont" style="margin: 0px;">learn.spec.append(fms( field=nx.NXM_NX_REG5, load=7 ))</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">The following error occurs. Is the Syntax ‘load’, I tried,match and output too.</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;"><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/cust2.py", line 59, in _handle_ConnectionUp</div><div id="bloop_customfont" style="margin: 0px;">    learn.spec.append(fms( field=nx.NXM_NX_REG5, load=7 ))</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/openflow/nicira.py", line 1462, in new</div><div id="bloop_customfont" style="margin: 0px;">    if dst is not None: dst_inst = dst(*dstarg,**dstkw)</div><div id="bloop_customfont" style="margin: 0px;">  File "/home/mininet/pox2/pox/openflow/nicira.py", line 1306, 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><div id="bloop_sign_1386557932116125952"><span style="font-family: helvetica, arial;"></span><pre>Thanks,
Jayanth 
Graduate Student
USC</pre><div><br></div></div></div> <br><p style="color:#A0A0A8;">On December 8, 2013 at 6:47:22 PM, Murphy McCauley (<a href="mailto://murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div>On Dec 8, 2013, at 6:18 PM, Jayanth Silesh <jayanthsileshs.forums@gmail.com> wrote:
<br>
<br>> Hi Murphy,
<br>>  
<br>> Question1:
<br>>      
<br>> The problem is that I need the resubmit command in the flow_entry.
<br>> Say that there is already an entry in table 2 as  
<br>>  in_port=7,….,action= resubmit(,3).
<br>>  
<br>> Is there a way that from table3, I can use the LEARN msg to ‘append’ an action in the table 2 so that it becomes,
<br>>        in_port=7,…..,action=( load(reg_5=7)  ,resubmit(,3))
<br>>  
<br>> Will the learn action, add an entry or can it modify the existing entry in the table?
<br>
<br>No.  However, consider making the entry in table 2:
<br>in_port==7 : resubmit(table=11), resubmit(table=3)
<br>
<br>By default, have table 11 (a table chosen at random for the example) empty.  You can use a learn action to learn an entry into it like...
<br>in_port==7 : load(field=reg5, value=7)
<br>
<br>.. and the result should be what you wanted.
<br>
<br>
<br>In the above case, the new table entry uses in_port to match against, but you could use a metafield instead if your match conditions are complicated.  Picking the values 14 and 42 at random, in table 2 you'd have:
<br>in_port==7 : load(field=reg14, value=42), resubmit(table=11), resubmit(table=3)
<br>
<br>In table 11:
<br>reg14==42 : load(field=reg5, value=7)
<br>
<br>> Question2:  
<br>> Is there a resubmit action on the Nicira extensions for NOX?
<br>
<br>No.  There couldn't be.  The problem isn't that POX doesn't support this.  Open vSwitch itself doesn't support this.  It's not part of the learn action by definition.
<br>
<br>(On top of that, no noxrepo version of NOX supports the learn action at all.)
<br>
<br>> Question3:
<br>>  
<br>> How do load the register with some value, it’s throwing errors on this. Is the naming convention for reg wrong?
<br>>      
<br>>  learn.spec.append(fms( field=nx.re51, load=7 ))
<br>
<br>As suggested in the last entry of the FAQ, you should post error messages.
<br>
<br>The registers are named like NXM_NX_REGx, and should also be accessible as NXM_NX_REG[x].  I think "x" is between 0 and 15 on most or all switches.  
<br>
<br>
<br>-- Murphy
<br>
<br>> Thanks,
<br>> Jayanth  
<br>> Graduate Student
<br>> USC
<br>>  
<br>>  
<br>>  
<br>> On December 8, 2013 at 3:48:51 PM, Murphy McCauley (murphy.mccauley@gmail.com) wrote:
<br>>  
<br>>> meta_register_1
<br>
<br></div></div></span></blockquote></body></html>