Class: Nl::Linux::Psp::Messages::DoDevDisassocRequest

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/psp.rb

Overview

Disassociate a network device from a PSP device.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
12
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Dev
ATTRIBUTES =
Ractor.make_shareable(%i[id ifindex nsid])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#id ⇒ Integer

PSP device ID.

Returns:

  • (Integer)

See Also:



1078
# File 'nl-linux/generated/nl/linux/psp.rb', line 1078

def id; attributes[:"id"]&.value; end

#ifindex ⇒ Integer

ifindex of the main netdevice linked to the PSP device, or the ifindex to associate with the PSP device.

Returns:

  • (Integer)

See Also:



1084
# File 'nl-linux/generated/nl/linux/psp.rb', line 1084

def ifindex; attributes[:"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.

Returns:

  • (Integer)

See Also:



1091
# File 'nl-linux/generated/nl/linux/psp.rb', line 1091

def nsid; attributes[:"nsid"]&.value; end