Class: Nl::Linux::Netdev::AttributeSets::Lease

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

Defined Under Namespace

Classes: Attribute, Ifindex, NetnsId, Queue

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:



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.

Parameters:

  • type (Integer)

Returns:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

See Also:



1556
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1556

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