Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Getting the table feature using multipart messages

The table feature multipart messages are used by the controller for the following:

  • To query the capabilities of the existing tables in the switch
  • To reconfigure the tables in the switch

How to do it...

To get information about the table features or to reconfigure the flow tables, the controller should send a multipart request message with the type field set as OFPMP_TABLE_FEATURES. The message format that should be used by the controller to form the multipart request message is defined in the Introduction section in Chapter 5, Handling Multipart Statistics Messages (Part 2).

If the controller wants to get only the features of the tables in the switch, then they should send the multipart request message with the body field left empty.

If the controller wants to reconfigure the tables, then they should add array of one or more ofp_table_features structures, one for each flow table, in the following structure format:

/* Body for ofp_multipart_request...