Book Image

OpenFlow Cookbook

Book Image

OpenFlow Cookbook

Overview of this book

Table of Contents (17 chapters)
16
Index

Deleting a group entry in a group table

When the controller wants to delete a group table entry, it should send a group table modification message (OFPT_GROUP_MOD) to the switch. This group table modification message contains the information required to delete the group table which includes the flow group identifier, bucket list, and so on.

Tip

The OFPT_GROUP_MOD message is used for all the group table entry operations such as adding a new group entry, deleting an existing group entry, and modifying a group entry in a group table.

How to do it...

The message format that should be used by the controller to send OFPT_GROUP_MOD is defined in Adding a new group entry in a group table recipe of this chapter. Here, to delete a group table entry, the command field should be set to OFPGC_DELETE.

The procedure to construct the group modification message for deleting a group entry is similar to that of the one explained in the previous recipe. However, while deleting an entry, the controller need not...