When the controller wants to delete a meter entry, it sends 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 used by the controller to send the OFPT_METER_MOD
is defined in Adding a new meter in a meter table recipe in Chapter 4, Group Table and Meter Table modification Messages (Part 2). Here, to delete a meter entry, the command field is set as OFPMC_DELETE
.
The procedure to construct the meter modification message for deleting a meter entry is similar to that of one explained in the previous recipe. However, deleting an entry controller need not set the bands in a modification message.
While processing the meter delete message, if there is...