Class: Nl::Linux::Devlink::Messages::DoTrapPolicerSetRequest

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/devlink.rb

Overview

Get trap policer instances.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
70
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Devlink
ATTRIBUTES =
Ractor.make_shareable(%i[bus_name dev_name trap_policer_id trap_policer_rate trap_policer_burst index])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#bus_name ⇒ String

Returns:

  • (String)

See Also:



7345
# File 'nl-linux/generated/nl/linux/devlink.rb', line 7345

def bus_name; attributes[:"bus_name"]&.value; end

#dev_name ⇒ String

Returns:

  • (String)

See Also:



7349
# File 'nl-linux/generated/nl/linux/devlink.rb', line 7349

def dev_name; attributes[:"dev_name"]&.value; end

#index ⇒ Integer

Unique devlink instance index.

Returns:

  • (Integer)

See Also:



7366
# File 'nl-linux/generated/nl/linux/devlink.rb', line 7366

def index; attributes[:"index"]&.value; end

#trap_policer_burst ⇒ Integer

Returns:

  • (Integer)

See Also:



7361
# File 'nl-linux/generated/nl/linux/devlink.rb', line 7361

def trap_policer_burst; attributes[:"trap_policer_burst"]&.value; end

#trap_policer_id ⇒ Integer

Returns:

  • (Integer)

See Also:



7353
# File 'nl-linux/generated/nl/linux/devlink.rb', line 7353

def trap_policer_id; attributes[:"trap_policer_id"]&.value; end

#trap_policer_rate ⇒ Integer

Returns:

  • (Integer)

See Also:



7357
# File 'nl-linux/generated/nl/linux/devlink.rb', line 7357

def trap_policer_rate; attributes[:"trap_policer_rate"]&.value; end