Thanks for the reply this is the output from the debug.
0000:05:41:39.69 OPFL eOFNetTask:TX to tcp:192.168.1.253:6633: 0 : OFPT_HELLO
(OF 0x04) (xid=0x7):
0000:05:41:39.80 OPFL eOFNetTask:RX from tcp:192.168.1.253:6633: 0: OFPT_HELLO
(OF 0x04) (xid=0x59d25b4c):
0000:05:41:39.92 OPFL eOFNetTask:aggregate<->tcp:192.168.1.253:6633:0 connected
0000:05:41:40.00 OPFL eOFNetTask:RX from tcp:192.168.1.253:6633: 0:
OFPT_FEATURES_REQUEST (OF 0x04) (xid=0x59d25b4d):
0000:05:41:40.13 OPFL eOFNetTask:TX to tcp:192.168.1.253:6633: 0 :
OFPT_FEATURES_REPLY (OF 0x04) (xid=0x59d25b4d):
dpid:000170106f91ab80
n_tables:3, n_buffers:0
capabilities: FLOW_STATS
TABLE_STATS PORT_STATS PORT_BLOCKED
actions:
0000:05:41:40.39 OPFL eOFNetTask:RX from tcp:192.168.1.253:6633: 0:
OFPT_STATS_REQUEST (OF 0x04) (xid=0x59d25b4e):
0000:05:41:40.52 OPFL eOFNetTask:TX to tcp:192.168.1.253:6633: 0 :
OFPT_STATS_REPLY (OF 0x04) (xid=0x59d25b4e):
0000:05:41:40.64 OPFL eOFNetTask:RX from tcp:192.168.1.253:6633: 0:
OFPT_FLOW_MOD (OF 0x04) (xid=0x59d25b4f):
0000:05:41:40.76 OPFL eOFNetTask:RX from tcp:192.168.1.253:6633: 0: ***decode
error: OFPBIC_UNSUP_INST***
ADD priority=0 buf:0x0 insts=[drop]
0000:05:41:40.92 OPFL eOFNetTask:TX to tcp:192.168.1.253:6633: 0 : OFPT_ERROR
(OF 0x04) (xid=0x59d25b4f): OFPBIC_UNSUP_INST
(***truncated to 64 bytes from
80***)
00000000 04 0e 00 50 59 d2 5b 4f-00 00 00 00 00 00 00 00
|...PY.[O.
0000:05:41:41.18 OPFL eOFNetTask:Instance aggregate: Exiting fail secure mode.
0000:05:41:49.68 OPFL eOFNetTask:TX to tcp:192.168.1.253:6633: 0 :
OFPT_ECHO_REQUEST (OF 0x04) (xid=0x0): 0 bytes of payload
0000:05:41:49.82 OPFL eOFNetTask:RX from tcp:192.168.1.253:6633: 0:
OFPT_ECHO_REPLY (OF 0x04) (xid=0x0): 0 bytes of payload
0000:05:41:59.69 OPFL eOFNetTask:TX to tcp:192.168.1.253:6633: 0 :
OFPT_ECHO_REQUEST (OF 0x04) (xid=0x0): 0 bytes of payload
0000:05:41:59.82 OPFL eOFNetTask:RX from tcp:192.168.1.253:6633: 0:
OFPT_ECHO_REPLY (OF 0x04) (xid=0x0): 0 bytes of payload
0000:05:42:09.69 OPFL eOFNetTask:TX to tcp:192.168.1.253:6633: 0 :
OFPT_ECHO_REQUEST (OF 0x04) (xid=0x0): 0 bytes of payload
This is part of the ryu simple_switch_13.py code i cannot see what the problem with the instruction is
class SimpleSwitch13(app_manager.RyuApp):
OFP_VERSIONS = [ofproto_v1_3.OFP_VERSION]
def __init__(self, *args, **kwargs):
super(SimpleSwitch13, self).__init__(*args, **kwargs)
self.mac_to_port = {}
@SET_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)
def switch_features_handler(self, ev):
datapath = ev.msg.datapath
ofproto = datapath.ofproto
parser = datapath.ofproto_parser
# install table-miss flow entry
#
# We specify NO BUFFER to max_len of the output action due to
# OVS bug. At this moment, if we specify a lesser number, e.g.,
# 128, OVS will send Packet-In with invalid buffer_id and
# truncated packet data. In that case, we cannot output packets
# correctly. The bug has been fixed in OVS v2.1.0.
match = parser.OFPMatch()
actions = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER,
ofproto.OFPCML_NO_BUFFER)]
self.add_flow(datapath, 0, match, actions)
def add_flow(self, datapath, priority, match, actions, buffer_id=None):
ofproto = datapath.ofproto
parser = datapath.ofproto_parser
inst = [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,
actions)]
if buffer_id:
mod = parser.OFPFlowMod(datapath=datapath, buffer_id=buffer_id,
priority=priority, match=match,
instructions=inst)
else:
mod = parser.OFPFlowMod(datapath=datapath, priority=priority,
match=match, instructions=inst)
datapath.send_msg(mod)