Class: Nl::Linux::Nftables::AsyncOperations

Inherits:
Object
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/nftables.rb

Instance Method Summary collapse

Instance Method Details

#do_batch_begin(**args) ⇒ Nl::Async::Future<Messages::DoBatchBeginReply>

Start a batch of operations

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • genid (Integer) —

    generation ID for this changeset

Returns:

See Also:



7678
7679
7680
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7678

def do_batch_begin(**args)
  @exchange.call(:"do", Messages::DoBatchBeginRequest, Messages::DoBatchBeginReply, args)
end

#do_batch_end(**args) ⇒ Nl::Async::Future<void>

Finish a batch of operations

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • genid (Integer) —

    generation ID for this changeset

Returns:

See Also:



7690
7691
7692
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7690

def do_batch_end(**args)
  @exchange.call(:"do", Messages::DoBatchEndRequest, nil, args)
end

#do_delchain(**args) ⇒ Nl::Async::Future<void>

Delete an existing chain.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the chain

  • handle (Integer) —

    numeric handle of the chain

  • name (String) —

    name of the chain

  • hook (AttributeSets::NftHookAttrs, Hash<Symbol, Object>) —

    hook specification for basechains

Returns:

See Also:



7817
7818
7819
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7817

def do_delchain(**args)
  @exchange.call(:"do", Messages::DoDelchainRequest, nil, args)
end

#do_delflowtable(**args) ⇒ Nl::Async::Future<void>

Delete an existing flow table.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String)
  • name (String)
  • hook (AttributeSets::FlowtableHookAttrs, Hash<Symbol, Object>)
  • handle (Integer)

Returns:

See Also:



8272
8273
8274
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8272

def do_delflowtable(**args)
  @exchange.call(:"do", Messages::DoDelflowtableRequest, nil, args)
end

#do_delobj(**args) ⇒ Nl::Async::Future<void>

Delete an existing stateful object.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the expression

  • name (String) —

    name of this expression type

  • type (Integer) —

    stateful object type

    Known enum values are defined in Enums::ObjectType.

  • handle (Integer) —

    object handle

Returns:

See Also:



8201
8202
8203
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8201

def do_delobj(**args)
  @exchange.call(:"do", Messages::DoDelobjRequest, nil, args)
end

#do_delrule(**args) ⇒ Nl::Async::Future<void>

Delete an existing rule.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the rule

  • chain (String) —

    name of the chain containing the rule

  • handle (Integer) —

    numeric handle of the rule

  • id (Integer) —

    uniquely identifies a rule in a transaction

Returns:

See Also:



7923
7924
7925
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7923

def do_delrule(**args)
  @exchange.call(:"do", Messages::DoDelruleRequest, nil, args)
end

#do_delset(**args) ⇒ Nl::Async::Future<void>

Delete an existing set.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    table name

  • name (String) —

    set name

  • handle (Integer) —

    set handle

Returns:

See Also:



8004
8005
8006
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8004

def do_delset(**args)
  @exchange.call(:"do", Messages::DoDelsetRequest, nil, args)
end

#do_delsetelem(**args) ⇒ Nl::Async::Future<void>

Delete an existing set element.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



8099
8100
8101
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8099

def do_delsetelem(**args)
  @exchange.call(:"do", Messages::DoDelsetelemRequest, nil, args)
end

#do_deltable(**args) ⇒ Nl::Async::Future<void>

Delete an existing table.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • name (String) —

    name of the table

  • handle (Integer) —

    numeric handle of the table

Returns:

See Also:



7742
7743
7744
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7742

def do_deltable(**args)
  @exchange.call(:"do", Messages::DoDeltableRequest, nil, args)
end

#do_destroychain(**args) ⇒ Nl::Async::Future<void>

Delete an existing chain with destroy semantics (ignoring ENOENT errors).

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the chain

  • handle (Integer) —

    numeric handle of the chain

  • name (String) —

    name of the chain

  • hook (AttributeSets::NftHookAttrs, Hash<Symbol, Object>) —

    hook specification for basechains

Returns:

See Also:



7833
7834
7835
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7833

def do_destroychain(**args)
  @exchange.call(:"do", Messages::DoDestroychainRequest, nil, args)
end

#do_destroyflowtable(**args) ⇒ Nl::Async::Future<void>

Delete an existing flow table with destroy semantics.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String)
  • name (String)
  • hook (AttributeSets::FlowtableHookAttrs, Hash<Symbol, Object>)
  • handle (Integer)

Returns:

See Also:



8287
8288
8289
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8287

def do_destroyflowtable(**args)
  @exchange.call(:"do", Messages::DoDestroyflowtableRequest, nil, args)
end

#do_destroyobj(**args) ⇒ Nl::Async::Future<void>

Delete an existing stateful object with destroy semantics.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the expression

  • name (String) —

    name of this expression type

  • type (Integer) —

    stateful object type

    Known enum values are defined in Enums::ObjectType.

  • handle (Integer) —

    object handle

Returns:

See Also:



8218
8219
8220
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8218

def do_destroyobj(**args)
  @exchange.call(:"do", Messages::DoDestroyobjRequest, nil, args)
end

#do_destroyrule(**args) ⇒ Nl::Async::Future<void>

Delete an existing rule with destroy semantics (ignoring ENOENT errors).

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the rule

  • chain (String) —

    name of the chain containing the rule

  • handle (Integer) —

    numeric handle of the rule

  • id (Integer) —

    uniquely identifies a rule in a transaction

Returns:

See Also:



7938
7939
7940
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7938

def do_destroyrule(**args)
  @exchange.call(:"do", Messages::DoDestroyruleRequest, nil, args)
end

#do_destroyset(**args) ⇒ Nl::Async::Future<void>

Delete an existing set with destroy semantics (ignoring ENOENT errors).

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    table name

  • name (String) —

    set name

  • handle (Integer) —

    set handle

Returns:

See Also:



8018
8019
8020
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8018

def do_destroyset(**args)
  @exchange.call(:"do", Messages::DoDestroysetRequest, nil, args)
end

#do_destroysetelem(**args) ⇒ Nl::Async::Future<void>

Delete an existing set element with destroy semantics.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



8113
8114
8115
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8113

def do_destroysetelem(**args)
  @exchange.call(:"do", Messages::DoDestroysetelemRequest, nil, args)
end

#do_destroytable(**args) ⇒ Nl::Async::Future<void>

Delete an existing table with destroy semantics (ignoring ENOENT errors).

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • name (String) —

    name of the table

  • handle (Integer) —

    numeric handle of the table

Returns:

See Also:



7756
7757
7758
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7756

def do_destroytable(**args)
  @exchange.call(:"do", Messages::DoDestroytableRequest, nil, args)
end

#do_getchain(**args) ⇒ Nl::Async::Future<Messages::DoGetchainReply>

Get / dump chains.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the chain

  • name (String) —

    name of the chain

Returns:

See Also:



7791
7792
7793
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7791

def do_getchain(**args)
  @exchange.call(:"do", Messages::DoGetchainRequest, Messages::DoGetchainReply, args)
end

#do_getflowtable(**args) ⇒ Nl::Async::Future<Messages::DoGetflowtableReply>

Get / dump flow tables.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String)
  • name (String)

Returns:

See Also:



8246
8247
8248
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8246

def do_getflowtable(**args)
  @exchange.call(:"do", Messages::DoGetflowtableRequest, Messages::DoGetflowtableReply, args)
end

#do_getgen(**args) ⇒ Nl::Async::Future<Messages::DoGetgenReply>

Get / dump rule-set generation.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)

Returns:

See Also:



8124
8125
8126
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8124

def do_getgen(**args)
  @exchange.call(:"do", Messages::DoGetgenRequest, Messages::DoGetgenReply, args)
end

#do_getobj(**args) ⇒ Nl::Async::Future<Messages::DoGetobjReply>

Get / dump stateful objects.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the expression

  • name (String) —

    name of this expression type

  • type (Integer) —

    stateful object type

    Known enum values are defined in Enums::ObjectType.

Returns:

See Also:



8169
8170
8171
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8169

def do_getobj(**args)
  @exchange.call(:"do", Messages::DoGetobjRequest, Messages::DoGetobjReply, args)
end

#do_getrule(**args) ⇒ Nl::Async::Future<Messages::DoGetruleReply>

Get / dump rules.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the rule

  • chain (String) —

    name of the chain containing the rule

  • handle (Integer) —

    numeric handle of the rule

Returns:

See Also:



7867
7868
7869
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7867

def do_getrule(**args)
  @exchange.call(:"do", Messages::DoGetruleRequest, Messages::DoGetruleReply, args)
end

#do_getrule_reset(**args) ⇒ Nl::Async::Future<Messages::DoGetruleResetReply>

Get / dump rules and reset stateful expressions.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the rule

  • chain (String) —

    name of the chain containing the rule

  • handle (Integer) —

    numeric handle of the rule

Returns:

See Also:



7894
7895
7896
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7894

def do_getrule_reset(**args)
  @exchange.call(:"do", Messages::DoGetruleResetRequest, Messages::DoGetruleResetReply, args)
end

#do_getset(**args) ⇒ Nl::Async::Future<Messages::DoGetsetReply>

Get / dump sets.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    table name

  • name (String) —

    set name

Returns:

See Also:



7978
7979
7980
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7978

def do_getset(**args)
  @exchange.call(:"do", Messages::DoGetsetRequest, Messages::DoGetsetReply, args)
end

#do_getsetelem(**args) ⇒ Nl::Async::Future<Messages::DoGetsetelemReply>

Get / dump set elements.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



8047
8048
8049
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8047

def do_getsetelem(**args)
  @exchange.call(:"do", Messages::DoGetsetelemRequest, Messages::DoGetsetelemReply, args)
end

#do_getsetelem_reset(**args) ⇒ Nl::Async::Future<Messages::DoGetsetelemResetReply>

Get / dump set elements and reset stateful expressions.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



8072
8073
8074
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8072

def do_getsetelem_reset(**args)
  @exchange.call(:"do", Messages::DoGetsetelemResetRequest, Messages::DoGetsetelemResetReply, args)
end

#do_gettable(**args) ⇒ Nl::Async::Future<Messages::DoGettableReply>

Get / dump tables.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • name (String) —

    name of the table

Returns:

See Also:



7718
7719
7720
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7718

def do_gettable(**args)
  @exchange.call(:"do", Messages::DoGettableRequest, Messages::DoGettableReply, args)
end

#do_newchain(**args) ⇒ Nl::Async::Future<void>

Create a new chain.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the chain

  • handle (Integer) —

    numeric handle of the chain

  • name (String) —

    name of the chain

  • hook (AttributeSets::NftHookAttrs, Hash<Symbol, Object>) —

    hook specification for basechains

  • policy (Integer) —

    numeric policy of the chain

  • type (String) —

    type name of the chain

  • counters (AttributeSets::NftCounterAttrs, Hash<Symbol, Object>) —

    counter specification of the chain

  • flags (Integer) —

    chain flags

    Known flags are defined in Flags::ChainFlags.

  • userdata (String) —

    user data

Returns:

See Also:



7778
7779
7780
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7778

def do_newchain(**args)
  @exchange.call(:"do", Messages::DoNewchainRequest, nil, args)
end

#do_newflowtable(**args) ⇒ Nl::Async::Future<void>

Create a new flow table.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String)
  • name (String)
  • hook (AttributeSets::FlowtableHookAttrs, Hash<Symbol, Object>)
  • flags (Integer)

Returns:

See Also:



8233
8234
8235
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8233

def do_newflowtable(**args)
  @exchange.call(:"do", Messages::DoNewflowtableRequest, nil, args)
end

#do_newobj(**args) ⇒ Nl::Async::Future<void>

Create a new stateful object.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



8153
8154
8155
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8153

def do_newobj(**args)
  @exchange.call(:"do", Messages::DoNewobjRequest, nil, args)
end

#do_newrule(**args) ⇒ Nl::Async::Future<void>

Create a new rule.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the rule

  • chain (String) —

    name of the chain containing the rule

  • handle (Integer) —

    numeric handle of the rule

  • expressions (AttributeSets::ExprListAttrs, Hash<Symbol, Object>) —

    list of expressions

  • compat (AttributeSets::RuleCompatAttrs, Hash<Symbol, Object>) —

    compatibility specifications of the rule

  • position (Integer) —

    numeric handle of the previous rule

  • userdata (String) —

    user data

  • position_id (Integer) —

    transaction unique identifier of the previous rule

  • chain_id (Integer) —

    add the rule to chain by ID, alternative to chain name

Returns:

See Also:



7853
7854
7855
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7853

def do_newrule(**args)
  @exchange.call(:"do", Messages::DoNewruleRequest, nil, args)
end

#do_newset(**args) ⇒ Nl::Async::Future<void>

Create a new set.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    table name

  • name (String) —

    set name

  • flags (Integer) —

    bitmask of enum nft_set_flags

    Known flags are defined in Flags::SetFlags.

  • key_type (Integer) —

    key data type, informational purpose only

  • key_len (Integer) —

    key data length

  • data_type (Integer) —

    mapping data type

  • data_len (Integer) —

    mapping data length

  • policy (Integer) —

    selection policy

  • desc (AttributeSets::SetDescAttrs, Hash<Symbol, Object>) —

    set description

  • id (Integer) —

    uniquely identifies a set in a transaction

  • timeout (Integer) —

    default timeout value

  • gc_interval (Integer) —

    garbage collection interval

  • userdata (String) —

    user data

  • obj_type (Integer) —

    stateful object type

Returns:

See Also:



7965
7966
7967
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7965

def do_newset(**args)
  @exchange.call(:"do", Messages::DoNewsetRequest, nil, args)
end

#do_newsetelem(**args) ⇒ Nl::Async::Future<void>

Create a new set element.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



8033
8034
8035
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8033

def do_newsetelem(**args)
  @exchange.call(:"do", Messages::DoNewsetelemRequest, nil, args)
end

#do_newtable(**args) ⇒ Nl::Async::Future<void>

Create a new table.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • name (String) —

    name of the table

  • flags (Integer) —

    bitmask of flags

    Known flags are defined in Flags::TableFlags.

  • userdata (String) —

    user data

Returns:

See Also:



7706
7707
7708
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7706

def do_newtable(**args)
  @exchange.call(:"do", Messages::DoNewtableRequest, nil, args)
end

#dump_getchain(**args) ⇒ Nl::Async::Stream<Messages::DumpGetchainReply>

Get / dump chains.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)

Returns:

See Also:



7802
7803
7804
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7802

def dump_getchain(**args)
  @exchange.call(:"dump", Messages::DumpGetchainRequest, Messages::DumpGetchainReply, args)
end

#dump_getflowtable(**args) ⇒ Nl::Async::Stream<Messages::DumpGetflowtableReply>

Get / dump flow tables.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)

Returns:

See Also:



8257
8258
8259
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8257

def dump_getflowtable(**args)
  @exchange.call(:"dump", Messages::DumpGetflowtableRequest, Messages::DumpGetflowtableReply, args)
end

#dump_getgen(**args) ⇒ Nl::Async::Stream<Messages::DumpGetgenReply>

Get / dump rule-set generation.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)

Returns:

See Also:



8135
8136
8137
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8135

def dump_getgen(**args)
  @exchange.call(:"dump", Messages::DumpGetgenRequest, Messages::DumpGetgenReply, args)
end

#dump_getobj(**args) ⇒ Nl::Async::Stream<Messages::DumpGetobjReply>

Get / dump stateful objects.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the expression

  • type (Integer) —

    stateful object type

    Known enum values are defined in Enums::ObjectType.

Returns:

See Also:



8184
8185
8186
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8184

def dump_getobj(**args)
  @exchange.call(:"dump", Messages::DumpGetobjRequest, Messages::DumpGetobjReply, args)
end

#dump_getrule(**args) ⇒ Nl::Async::Stream<Messages::DumpGetruleReply>

Get / dump rules.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the rule

  • chain (String) —

    name of the chain containing the rule

Returns:

See Also:



7880
7881
7882
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7880

def dump_getrule(**args)
  @exchange.call(:"dump", Messages::DumpGetruleRequest, Messages::DumpGetruleReply, args)
end

#dump_getrule_reset(**args) ⇒ Nl::Async::Stream<Messages::DumpGetruleResetReply>

Get / dump rules and reset stateful expressions.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    name of the table containing the rule

  • chain (String) —

    name of the chain containing the rule

  • handle (Integer) —

    numeric handle of the rule

Returns:

See Also:



7908
7909
7910
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7908

def dump_getrule_reset(**args)
  @exchange.call(:"dump", Messages::DumpGetruleResetRequest, Messages::DumpGetruleResetReply, args)
end

#dump_getset(**args) ⇒ Nl::Async::Stream<Messages::DumpGetsetReply>

Get / dump sets.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String) —

    table name

Returns:

See Also:



7990
7991
7992
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7990

def dump_getset(**args)
  @exchange.call(:"dump", Messages::DumpGetsetRequest, Messages::DumpGetsetReply, args)
end

#dump_getsetelem(**args) ⇒ Nl::Async::Stream<Messages::DumpGetsetelemReply>

Get / dump set elements.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String)
  • set (String)

Returns:

See Also:



8060
8061
8062
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8060

def dump_getsetelem(**args)
  @exchange.call(:"dump", Messages::DumpGetsetelemRequest, Messages::DumpGetsetelemReply, args)
end

#dump_getsetelem_reset(**args) ⇒ Nl::Async::Stream<Messages::DumpGetsetelemResetReply>

Get / dump set elements and reset stateful expressions.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)
  • table (String)
  • set (String)

Returns:

See Also:



8085
8086
8087
# File 'nl-linux/generated/nl/linux/nftables.rb', line 8085

def dump_getsetelem_reset(**args)
  @exchange.call(:"dump", Messages::DumpGetsetelemResetRequest, Messages::DumpGetsetelemResetReply, args)
end

#dump_gettable(**args) ⇒ Nl::Async::Stream<Messages::DumpGettableReply>

Get / dump tables.

Parameters:

  • args (Hash)

Options Hash (**args):

  • nfgen_family (Integer)
  • version (Integer)
  • res_id (Integer)

Returns:

See Also:



7729
7730
7731
# File 'nl-linux/generated/nl/linux/nftables.rb', line 7729

def dump_gettable(**args)
  @exchange.call(:"dump", Messages::DumpGettableRequest, Messages::DumpGettableReply, args)
end