Class: Nl::Linux::Netdev::AttributeSets::Lease
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Netdev::AttributeSets::Lease
- Defined in:
- nl-linux/generated/nl/linux/netdev.rb
Defined Under Namespace
Classes: Attribute, Ifindex, NetnsId, Queue
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#ifindex ⇒ Integer
The netdev ifindex to lease the queue from.
-
#netns_id ⇒ Integer
The network namespace id of the netdev.
-
#queue ⇒ AttributeSets::QueueId
The netdev queue to lease from.
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.
1568 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1568 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
1574 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1574 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#ifindex ⇒ Integer
The netdev ifindex to lease the queue from.
1551 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1551 def ifindex; self[:"ifindex"]&.value; end |
#netns_id ⇒ Integer
The network namespace id of the netdev.
1561 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1561 def netns_id; self[:"netns_id"]&.value; end |
#queue ⇒ AttributeSets::QueueId
The netdev queue to lease from.
1556 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1556 def queue; self[:"queue"]&.value; end |