I am trying to change the IP source for a flow. For that I am doing the
following:

src_ip = '10.0.0.4'
actions = [[openflow.OFPAT_OUTPUT, [0,
prt[0]]],[openflow.OFPAT_SET_NW_SRC,src_ip]]

When I run the code, I get the following error. Any idea what might be
causing it?

00035|pyrt|ERR:unable to invoke a Python event handler:
Traceback (most recent call last):
  File "./nox/lib/util.py", line 116, in f
    event.total_len, buffer_id, packet)
  File "./nox/coreapps/examples/pyproject.py", line 166, in
packet_in_callback
    forward_l2_packet(dpid, inport, packet, packet.arr, bufid)
  File "./nox/coreapps/examples/pyproject.py", line 107, in
forward_l2_packet
    inport, buf)
  File "./nox/lib/core.py", line 378, in install_datapath_flow
    (idle_timeout, actions, buffer_id), hard_timeout)
  File "./nox/lib/core.py", line 257, in send_flow_command
    oactions = self.make_action_array(actions)
  File "./nox/lib/core.py", line 168, in make_action_array
    a = struct.pack("HHI", htons(action[0]), htons(8), iaddr.addr)
AttributeError: 'int' object has no attribute 'addr'


Regards,
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to