Hi, corey
Sorry, I couldn't see the reconnection with your code, it seems to work.
Please confirm the followings:
* Using the latest version of Ryu(4.17)
* (If you use OVS,) Using the latest version of OVS(2.8.0)
If confirmed, would you send me the whole of your code?
Thanks,
Fujimoto
On 2017年09月25日 20:24, corey ross wrote:
Hello,
I am trying to send and parse table feature message. This is my code:
@set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)
def switch_features_handler(self, ev):
"""
Send miss-table flow entry to datapaths and send the
table feature request.
"""
datapath = ev.msg.datapath
ofproto = datapath.ofproto
parser = datapath.ofproto_parser
msg = ev.msg
self.logger.info <http://self.logger.info>("switch:%s connected",
datapath.id <http://datapath.id>)
# install table-miss flow entry
match = parser.OFPMatch()
actions = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER,
ofproto.OFPCML_NO_BUFFER)]
self.add_flow(datapath, 0, match, actions)
# send_table feature request
stats = parser.OFPTableFeaturesStatsRequest(datapath, 0, [])
datapath.send_msg(stats)
@set_ev_cls(ofp_event.EventOFPTableFeaturesStatsReply,
MAIN_DISPATCHER)
def _table_features_handler(self, ev):
"""
It get the max entries for a table and store it in
max_table_capacity.
"""
msg = ev.msg
datapath = msg.datapath
# print(msg.body)
for stat in msg.body:
if stat.table_id == 0:
self.table_body[datapath.id
<http://datapath.id>]['body'] = stat
self.logger.debug('table_body: %s', self.table_body[datapath.id
<http://datapath.id>])
but as you can see when I run the program it causes the switches to
reconnect:
switch:2 connected
switch:6 connected
switch:7 connected
switch:4 connected
switch:1 connected
switch:3 connected
switch:5 connected
switch:7 connected
switch:6 connected
switch:1 connected
switch:4 connected
switch:5 connected
switch:3 connected
switch:2 connected
What could be wrong? What is the correct way to request for table
features (during) handshake?
Thank you
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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