i am building load balancer application and the following error is displayed.
please, help me to fix this?

this is some of code:
        match = ofp_parser.OFPMatch(in_port=in_port,
                                    eth_type=eth.ethertype, eth_src=eth.src, 
eth_dst=eth.dst,
                                    ip_proto=iphdr.proto, ipv4_src=iphdr.src, 
ipv4_dst=iphdr.dst)
        actions = [ofp_parser.OFPActionSetField(eth_dst=selected_server_mac),
                       
ofp_parser.OFPActionSetField(ipv4_dst=selected_server_ip),
                       ofp_parser.OFPActionOutput(selected_server_outport) ]    
   
        inst = [ofp_parser.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS, 
actions)]

        mod = ofp_parser.OFPFlowMod(datapath=datapath, match=match,
                                    instructions=inst, buffer_id=msg.buffer_id)
        datapath.send_msg(mod)



File "/home/ubunto/ryu/ryu/base/app_manager.py", line 290, in _event_loop
    handler(ev)
  
File "/home/ubunto/ryu/ryu/app/sdnhub_apps/stateless_lb.py", line 196, in 
packet_in_handler
    datapath.send_msg(mod)
  
File "/home/ubunto/ryu/ryu/controller/controller.py", line 344, in send_msg
    msg.serialize()
 
 File "/home/ubunto/ryu/ryu/ofproto/ofproto_parser.py", line 220, in serialize
    self._serialize_body()
  
File "/home/ubunto/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 2695, in 
_serialize_body
    inst.serialize(self.buf, offset)
  
File "/home/ubunto/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 2884, in 
serialize
    a.serialize(buf, action_offset)
 
 File "/home/ubunto/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 2993, in 
serialize
    offset, self.type, self.len, self.port, self.max_len)
  
File "/home/ubunto/ryu/ryu/lib/pack_utils.py", line 25, in msg_pack_into
    struct.pack_into(fmt, buf, offset, *args)

error: cannot convert argument to integer


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to