When the controller wants to discard all the operation/messages in the bundle then it should send an OFPT_BUNDLE_CONTROL
message with the type
field set as OFPBCT_DISCARD_REQUEST
.
The controller should have created the bundle as described in the Creation of a bundle recipe in this chapter before sending the bundle add message to a switch.
The message format that should be used for bundle operations (OFPT_BUNDLE_CONTROL
) is described in the Introduction section of this chapter. The type
field should be filled with the value OFPBCT_DISCARD_REQUEST
.
Once the controller sends the OFPBCT_DISCARD_REQUEST
message to the switch, the controller should wait for the response message from the switch. The controller may either receive an OFPBCT_DISCARD_REPLY
message or ofp_error_msg
with the type as OFPET_BUNDLE_FAILED
.
The operations to be performed when the controller receives the error message are defined as follows:
- If the error code is
OFPBFC_BAD_ID
...