Class: Nl::Linux::Psp::AttributeSets::Dev
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Psp::AttributeSets::Dev
- Defined in:
- nl-linux/generated/nl/linux/psp.rb
Defined Under Namespace
Classes: AssocList, Attribute, ByAssociation, Id, Ifindex, Nsid, PspVersionsCap, PspVersionsEna
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
-
#assoc_list ⇒ Array<AttributeSets::AssocDevInfo>
List of associated virtual devices.
-
#by_association ⇒ Integer
Flag indicating the PSP device is an associated device from a different network namespace.
-
#id ⇒ Integer
PSP device ID.
-
#ifindex ⇒ Integer
ifindex of the main netdevice linked to the PSP device, or the ifindex to associate with the PSP device.
-
#nsid ⇒ Integer
Network namespace ID for the device to associate/disassociate.
-
#psp_versions_cap ⇒ Integer
Bitmask of PSP versions supported by the device.
-
#psp_versions_ena ⇒ Integer
Bitmask of currently enabled (accepted on Rx) PSP versions.
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.
233 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 233 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
239 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 239 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#assoc_list ⇒ Array<AttributeSets::AssocDevInfo>
List of associated virtual devices.
211 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 211 def assoc_list; self[:"assoc_list"].map(&:value); end |
#by_association ⇒ Integer
Flag indicating the PSP device is an associated device from a different network namespace. Present when in associated namespace, absent when in primary/host namespace.
226 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 226 def by_association; self[:"by_association"]&.value; end |
#id ⇒ Integer
PSP device ID.
186 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 186 def id; self[:"id"]&.value; end |
#ifindex ⇒ Integer
ifindex of the main netdevice linked to the PSP device, or the ifindex to associate with the PSP device.
192 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 192 def ifindex; self[:"ifindex"]&.value; end |
#nsid ⇒ Integer
Network namespace ID for the device to associate/disassociate. Optional for dev-assoc and dev-disassoc; if not present, the device is looked up in the caller's network namespace.
218 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 218 def nsid; self[:"nsid"]&.value; end |
#psp_versions_cap ⇒ Integer
Bitmask of PSP versions supported by the device.
Known flags are defined in Flags::Version.
199 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 199 def psp_versions_cap; self[:"psp_versions_cap"]&.value; end |
#psp_versions_ena ⇒ Integer
Bitmask of currently enabled (accepted on Rx) PSP versions.
Known flags are defined in Flags::Version.
206 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 206 def psp_versions_ena; self[:"psp_versions_ena"]&.value; end |