When the controller wants to delete a meter entry, it should send a meter modification message (OFPT_METER_MOD
) to the switch. This meter modification message contains the information required to delete the meter which includes the meter identifier, bands and so on.
The message format that should be used by the controller to send OFPT_METER_MOD
is defined in Adding a new group entry in a group table recipe of this chapter. Here, to delete a meter entry, the command field should be set OFPMC_DELETE
.
The procedure to construct a meter modification message for deleting a meter entry is similar to that of the one explained in the previous recipe. However, while deleting an entry, the controller need not set the bands in a modification message.