Class: Nl::Linux::Nftables::AttributeSets::RuleAttrs

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

Defined Under Namespace

Classes: Attribute, Chain, ChainId, Compat, Expressions, Handle, Id, Position, PositionId, Table, Userdata

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



1306
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1306

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



1312
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1312

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#chain ⇒ String

name of the chain containing the rule

Returns:

  • (String)

See Also:



1259
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1259

def chain; self[:"chain"]&.value; end

#chain_id ⇒ Integer

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

Returns:

  • (Integer)

See Also:



1299
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1299

def chain_id; self[:"chain_id"]&.value; end

#compat ⇒ AttributeSets::RuleCompatAttrs

compatibility specifications of the rule

Returns:

See Also:



1274
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1274

def compat; self[:"compat"]&.value; end

#expressions ⇒ AttributeSets::ExprListAttrs

list of expressions



1269
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1269

def expressions; self[:"expressions"]&.value; end

#handle ⇒ Integer

numeric handle of the rule

Returns:

  • (Integer)

See Also:



1264
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1264

def handle; self[:"handle"]&.value; end

#id ⇒ Integer

uniquely identifies a rule in a transaction

Returns:

  • (Integer)

See Also:



1289
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1289

def id; self[:"id"]&.value; end

#position ⇒ Integer

numeric handle of the previous rule

Returns:

  • (Integer)

See Also:



1279
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1279

def position; self[:"position"]&.value; end

#position_id ⇒ Integer

transaction unique identifier of the previous rule

Returns:

  • (Integer)

See Also:



1294
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1294

def position_id; self[:"position_id"]&.value; end

#table ⇒ String

name of the table containing the rule

Returns:

  • (String)

See Also:



1254
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1254

def table; self[:"table"]&.value; end

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



1284
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1284

def userdata; self[:"userdata"]&.value; end