Class: Nl::Linux::Fou::AsyncOperations

Inherits:
Object
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/fou.rb

Instance Method Summary collapse

Instance Method Details

#do_add(**args) ⇒ Nl::Async::Future<void>

Add port.

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • port (Integer)
  • ipproto (Integer)
  • type (Integer)
  • remcsum_nopartial (Integer)
  • local_v4 (Integer)
  • local_v6 (String)
  • peer_v4 (Integer)
  • peer_v6 (String)
  • peer_port (Integer)
  • ifindex (Integer)

Returns:

See Also:



525
526
527
# File 'nl-linux/generated/nl/linux/fou.rb', line 525

def do_add(**args)
  @exchange.call(:"do", Messages::DoAddRequest, nil, args)
end

#do_del(**args) ⇒ Nl::Async::Future<void>

Delete port.

Requires CAP_NET_ADMIN in the initial user namespace.

Parameters:

  • args (Hash)

Options Hash (**args):

  • port (Integer)
  • af (Integer)
  • local_v4 (Integer)
  • local_v6 (String)
  • peer_v4 (Integer)
  • peer_v6 (String)
  • peer_port (Integer)
  • ifindex (Integer)

Returns:

See Also:



543
544
545
# File 'nl-linux/generated/nl/linux/fou.rb', line 543

def do_del(**args)
  @exchange.call(:"do", Messages::DoDelRequest, nil, args)
end

#do_get(**args) ⇒ Nl::Async::Future<Messages::DoGetReply>

Get tunnel info.

Parameters:

  • args (Hash)

Options Hash (**args):

  • port (Integer)
  • af (Integer)
  • local_v4 (Integer)
  • local_v6 (String)
  • peer_v4 (Integer)
  • peer_v6 (String)
  • peer_port (Integer)
  • ifindex (Integer)

Returns:

See Also:



559
560
561
# File 'nl-linux/generated/nl/linux/fou.rb', line 559

def do_get(**args)
  @exchange.call(:"do", Messages::DoGetRequest, Messages::DoGetReply, args)
end

#dump_get(**args) ⇒ Nl::Async::Stream<Messages::DumpGetReply>

Get tunnel info.

Parameters:

  • args (Hash)

Returns:

See Also:



567
568
569
# File 'nl-linux/generated/nl/linux/fou.rb', line 567

def dump_get(**args)
  @exchange.call(:"dump", Messages::DumpGetRequest, Messages::DumpGetReply, args)
end