Class: Nl::Linux::Team

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

Overview

Network team device driver.

Defined Under Namespace

Modules: AttributeSets, Constants, Messages, Notifications, Structs Classes: AsyncOperations

Constant Summary collapse

NAME =
"team"
VERSION =
1

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Genl::Family

version

Class Method Details

.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ Team .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object

Overloads:

  • .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ Team

    Parameters:

    • resolver (#call) (defaults to: ::Nl::Linux::DEFAULT_RESOLVER)
    • executor (Symbol, nil) (defaults to: nil)
    • notification_capacity (Integer, nil) (defaults to: DEFAULT_NOTIFICATION_CAPACITY)

    Returns:

  • .open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object

    Returns the result of the block.

    Parameters:

    • resolver (#call) (defaults to: ::Nl::Linux::DEFAULT_RESOLVER)
    • executor (Symbol, nil) (defaults to: nil)
    • notification_capacity (Integer, nil) (defaults to: DEFAULT_NOTIFICATION_CAPACITY)

    Yield Parameters:

    Returns:

    • (Object) —

      the result of the block



26
27
28
# File 'nl-linux/generated/nl/linux/team.rb', line 26

def self.open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
  super
end

Instance Method Details

#async(stream_capacity: nil) ⇒ AsyncOperations

Returns the asynchronous operation facade for this family.

Parameters:

  • stream_capacity (::Integer, nil) (defaults to: nil)

Returns:



600
601
602
603
# File 'nl-linux/generated/nl/linux/team.rb', line 600

def async(stream_capacity: nil)
  return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil?
  build_async_facade(AsyncOperations, stream_capacity:)
end

#do_noop(**args) ⇒ Messages::DoNoopReply

No operation

Parameters:

  • args (Hash)

Returns:

See Also:



511
512
513
# File 'nl-linux/generated/nl/linux/team.rb', line 511

def do_noop(**args)
  exchange_message(:"do", Messages::DoNoopRequest, Messages::DoNoopReply, args)
end

#do_options_get(**args) ⇒ Messages::DoOptionsGetReply

Get team options info

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • team_ifindex (Integer)

Returns:

See Also:



534
535
536
# File 'nl-linux/generated/nl/linux/team.rb', line 534

def do_options_get(**args)
  exchange_message(:"do", Messages::DoOptionsGetRequest, Messages::DoOptionsGetReply, args)
end

#do_options_set(**args) ⇒ Messages::DoOptionsSetReply

Set team options

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

Returns:

See Also:



523
524
525
# File 'nl-linux/generated/nl/linux/team.rb', line 523

def do_options_set(**args)
  exchange_message(:"do", Messages::DoOptionsSetRequest, Messages::DoOptionsSetReply, args)
end

#do_port_list_get(**args) ⇒ Messages::DoPortListGetReply

Get team ports info

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • team_ifindex (Integer)

Returns:

See Also:



545
546
547
# File 'nl-linux/generated/nl/linux/team.rb', line 545

def do_port_list_get(**args)
  exchange_message(:"do", Messages::DoPortListGetRequest, Messages::DoPortListGetReply, args)
end