When the controller wants to modify a meter entry, the controller should send a meter modification message (OFPT_METER_MOD
) with the command value set as OFPMC_MODIFY
to the switch. This meter modification message contains the information required to identify and modify the meter.
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 modify a meter entry, the command field should be set as OFPMC_MODIFY
.
The procedure to construct a group modification message for modifying a meter entry is similar to that of the one explained in the previous recipe.