<div dir="ltr">Hi all, <div><br></div><div style>I want to add two actions to a packet when a new flow appears, the default one is output (to an indicated port but I want for example adding a second one like: </div><div style>
<br></div><div style><br></div><div style>msg.actions.append(of.ofp_action_dl_addr(dl_addr = "00:00:00:00:00:00"))</div><div style><br></div><div style><br></div><div style>But I am getting an error like: </div>
<div style><br></div><div style><div>ERROR:core:Exception while handling Connection!PacketIn...</div><div>Traceback (most recent call last):</div><div> File "/home/adria/Descargas/pox/pox/lib/revent/revent.py", line 234, in raiseEventNoErrors</div>
<div> return self.raiseEvent(event, *args, **kw)</div><div> File "/home/adria/Descargas/pox/pox/lib/revent/revent.py", line 281, in raiseEvent</div><div> rv = event._invoke(handler, *args, **kw)</div><div>
File "/home/adria/Descargas/pox/pox/lib/revent/revent.py", line 159, in _invoke</div><div> return handler(self, *args, **kw)</div><div> File "/home/adria/Descargas/pox/ext/my_component.py", line 207, in _handle_PacketIn</div>
<div> self.connection.send(msg)</div><div> File "/home/adria/Descargas/pox/pox/openflow/of_01.py", line 690, in send</div><div> data = data.pack()</div><div> File "/home/adria/Descargas/pox/pox/openflow/libopenflow_01.py", line 2275, in pack</div>
<div> packed += i.pack()</div><div> File "/home/adria/Descargas/pox/pox/openflow/libopenflow_01.py", line 1746, in pack</div><div> packed += struct.pack("!HH", self.type, len(self))</div><div>error: cannot convert argument to integer</div>
<div><br></div><div style>What I am doing wrong? I have seen that there is a self.dl_addr in class ofp_action_dl_addr (ofp_action_base): in libopenflow_01.py</div><div style><br></div><div style>But I don't understand how is the code executing, how to they pass the parameters? </div>
<div style><br></div><div style>Ty in advance</div></div></div>