Method: Trema::Controller#send_flow_mod_delete

Defined in:
ruby/trema/controller.c

- (Object) send_flow_mod_delete(datapath_id, options = {})

Sends a flow_mod_delete message to delete all matching flows. Both flow_mod delete and flow_mod delete strict commands would delete matched flows. The strict option adds the flow priority to the matched criteria. Accepts the same options as #send_flow_mod_add with the following additional option.

Options Hash (options):

  • :strict (Symbol)

    If set to true delete_strict command is invoked otherwise the delete command is invoked.



406
407
408
409
410
411
412
413
414
# File 'ruby/trema/controller.c', line 406

static VALUE
controller_send_flow_mod_delete( int argc, VALUE *argv, VALUE self ) {
  uint16_t command = OFPFC_DELETE;

  if ( get_strict( argc, argv ) == Qtrue ) {
    command = OFPFC_DELETE_STRICT;
  }
  return controller_send_flow_mod( command, argc, argv, self );
}

Comments