Class: Nl::Linux::Devlink::AttributeSets::DlPortFunction
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Devlink::AttributeSets::DlPortFunction
- Defined in:
- nl-linux/generated/nl/linux/devlink.rb
Defined Under Namespace
Classes: Attribute, Caps, HwAddr, Opstate, State
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
-
#caps ⇒ Nl::Bitfield32
Known flags are defined in Flags::PortFnAttrCap.
- #hw_addr ⇒ String
-
#opstate ⇒ Integer
Known enum values are defined in Enums::PortFnOpstate.
-
#state ⇒ Integer
Known enum values are defined in Enums::PortFnState.
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.
2679 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2679 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
2685 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2685 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#caps ⇒ Nl::Bitfield32
Known flags are defined in Flags::PortFnAttrCap.
2672 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2672 def caps; self[:"caps"]&.value; end |
#hw_addr ⇒ String
2657 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2657 def hw_addr; self[:"hw_addr"]&.value; end |
#opstate ⇒ Integer
Known enum values are defined in Enums::PortFnOpstate.
2667 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2667 def opstate; self[:"opstate"]&.value; end |
#state ⇒ Integer
Known enum values are defined in Enums::PortFnState.
2662 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2662 def state; self[:"state"]&.value; end |