Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Closing a bundle

When the controller wants to finish recording the bundle messages, it sends an OFPT_BUNDLE_CONTROL message with the type field set as OFPT_BUNDLE_CLOSE_REQUEST.

Getting started

The controller should have created the bundle as described in the Creation of a bundle recipe, before sending the bundle close message to a switch.

The message field that will be used for bundle operations is described in the Introduction section of Chapter 7, Handling Bundle Messages (Part 2). This is an optional message and the controller does not need to send this message; instead, it can directly send the bundle commit message. For more information regarding the bundle commit message, refer to the recipe Committing or executing all the operations inside a bundle in this Chapter.

How to do it...

When the switch receives an OFPBCT_CLOSE_REQUEST message, the switch should fetch the bundle (which was created already by the OFPBCT_OPEN_REQUEST message) using the bundle_id and connection_id pair wherein...