Class: Nl::Linux::Team::AttributeSets::Team

Inherits:
AttributeSet show all
Defined in:
nl-linux/generated/nl/linux/team.rb

Overview

The team nested layout of get/set msg looks like
[TEAM_ATTR_LIST_OPTION]
    [TEAM_ATTR_ITEM_OPTION]
        [TEAM_ATTR_OPTION_*], ...
    [TEAM_ATTR_ITEM_OPTION]
        [TEAM_ATTR_OPTION_*], ...
    ...
[TEAM_ATTR_LIST_PORT]
    [TEAM_ATTR_ITEM_PORT]
        [TEAM_ATTR_PORT_*], ...
    [TEAM_ATTR_ITEM_PORT]
        [TEAM_ATTR_PORT_*], ...
    ...

Defined Under Namespace

Classes: Attribute, ListOption, ListPort, TeamIfindex

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:



98
# File 'nl-linux/generated/nl/linux/team.rb', line 98

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



104
# File 'nl-linux/generated/nl/linux/team.rb', line 104

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

Instance Method Details

#list_option ⇒ AttributeSets::ItemOption

Returns:

See Also:



87
# File 'nl-linux/generated/nl/linux/team.rb', line 87

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

#list_port ⇒ AttributeSets::ItemPort

Returns:

See Also:



91
# File 'nl-linux/generated/nl/linux/team.rb', line 91

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

#team_ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



83
# File 'nl-linux/generated/nl/linux/team.rb', line 83

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