Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Sending a port-status message to the controller

Port-status messages (OFPT_PORT_STATUS) are sent from the switch to the controller when there is any change in the port status or when a new port is added, removed, or modified in the switch's data path. The switch should send this message only to the controller channel that the controller requested the switch to send it. The controller can express its interest to receive this event by sending an asynchronous configuration message to the switch. Refer to the Configuring the switch to send a list of asynchronous events the controller channel is interested in recipe in Chapter 2, Symmetric Messages and Asynchronous Messages (Part 2), for the procedure to configure the switch to send a port-status message to the controller.

Tip

By default, the port-status message should be sent to all configured controllers in the switch, including the controller in the slave role (OFPCR_ROLE_SLAVE).

How to do it...

The switch should construct an OFPT_PORT_STATUS...