Class: Nl::Linux::RtNeigh::AsyncOperations

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

Instance Method Summary collapse

Instance Method Details

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

Remove an existing neighbour entry

Parameters:

  • args (Hash)

Options Hash (**args):

  • ndm_family (Integer)
  • ndm_ifindex (Integer)
  • ndm_state (Integer)
  • ndm_flags (Integer)
  • ndm_type (Integer)
  • dst (String)
  • ifindex (Integer)

Returns:

See Also:



1589
1590
1591
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1589

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

#do_getneigh(**args) ⇒ Nl::Async::Future<Messages::DoGetneighReply>

Get or dump neighbour entries

Parameters:

  • args (Hash)

Options Hash (**args):

  • ndm_family (Integer)
  • ndm_ifindex (Integer)
  • ndm_state (Integer)
  • ndm_flags (Integer)
  • ndm_type (Integer)
  • dst (String)

Returns:

See Also:



1603
1604
1605
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1603

def do_getneigh(**args)
  @exchange.call(:"do", Messages::DoGetneighRequest, Messages::DoGetneighReply, args)
end

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

Add new neighbour entry

Parameters:

  • args (Hash)

Options Hash (**args):

  • ndm_family (Integer)
  • ndm_ifindex (Integer)
  • ndm_state (Integer)
  • ndm_flags (Integer)
  • ndm_type (Integer)
  • dst (String)
  • lladdr (String)
  • probes (Integer)
  • vlan (Integer)
  • port (Integer)
  • vni (Integer)
  • ifindex (Integer)
  • master (Integer)
  • protocol (Integer)
  • nh_id (Integer)
  • fdb_ext_attrs (String)
  • flags_ext (Integer) —

    Known flags are defined in Flags::NtfExtFlags.

Returns:

See Also:



1574
1575
1576
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1574

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

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

Set neighbour tables

Parameters:

  • args (Hash)

Options Hash (**args):

  • family (Integer)
  • name (String)
  • thresh1 (Integer)
  • thresh2 (Integer)
  • thresh3 (Integer)
  • parms (AttributeSets::NdtpaAttrs, Hash<Symbol, Object>)
  • gc_interval (Integer)

Returns:

See Also:



1642
1643
1644
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1642

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

#dump_getneigh(**args) ⇒ Nl::Async::Stream<Messages::DumpGetneighReply>

Get or dump neighbour entries

Parameters:

  • args (Hash)

Options Hash (**args):

  • ndm_family (Integer)
  • ndm_ifindex (Integer)
  • ndm_state (Integer)
  • ndm_flags (Integer)
  • ndm_type (Integer)
  • ifindex (Integer)
  • master (Integer)

Returns:

See Also:



1618
1619
1620
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1618

def dump_getneigh(**args)
  @exchange.call(:"dump", Messages::DumpGetneighRequest, Messages::DumpGetneighReply, args)
end

#dump_getneightbl(**args) ⇒ Nl::Async::Stream<Messages::DumpGetneightblReply>

Get or dump neighbour tables

Parameters:

  • args (Hash)

Options Hash (**args):

  • family (Integer)

Returns:

See Also:



1627
1628
1629
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1627

def dump_getneightbl(**args)
  @exchange.call(:"dump", Messages::DumpGetneightblRequest, Messages::DumpGetneightblReply, args)
end