Hi everyone.
I'm doing an load balancing app for IPv6 packets. For IPv4 packets I did
that actions be drop, I mean, actions = [ ].
Apparently it works but the ping with IPv6 works only when i first
applying ping with Ipv4. If I apllying first the ping IPv6, it doesnt work.
When the app is excuted, and after the ping IPv6 works, the app shows the
following information:
"Exception occurred during handler processing. Backtrace from offending
handler [_packet_in_handler] servicing event [EventOFPPacketIn] follows.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
line 290, in _event_loop
handler(ev)
File "/home/edgar/Descargas/balanceo_carga_6.py", line 231, in
_packet_in_handler
if eth_pkt.dst in self.mac_to_port[dpid]: # if dst MAC is in MAC table"
A part of the code (the IPv4 and IPv6 part):
.
.
.
if isinstance(ip_pkt, ipv4.ipv4):
actions = []
match = ofp_parser.OFPMatch(eth_type=ether.ETH_TYPE_IP)
self.add_flow(datapath, 0, 1, match, actions)
return
if isinstance(ip_pkt_6, ipv6.ipv6):
out_port = None
if eth_pkt.dst in self.mac_to_port[dpid]:
if dpid == 1 and in_port == 1:
if self.FLAGS is True:
self.send_group_mod(datapath)
self.logger.info("Group injected")
self.FLAGS = False
actions = [ofp_parser.OFPActionGroup(group_id=50)]
match = ofp_parser.OFPMatch(in_port=in_port,
eth_type=eth_pkt.ethertype,
ipv6_src=ip_pkt_6.src)
self.add_flow(datapath, 0, 3, match, actions)
self.send_packet_out(datapath, msg.buffer_id, in_port,
msg.data, out_port=2)
.
.
.
.
Any advice?
thank you,
Edgar
------------------------------------------------------------------------------
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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel