NM.TeamLinkWatcher

Fields

None

Methods

class

new_arp_ping (init_wait, interval, missed_max, target_host, source_host, flags)

class

new_arp_ping2 (init_wait, interval, missed_max, vlanid, target_host, source_host, flags)

class

new_ethtool (delay_up, delay_down)

class

new_nsna_ping (init_wait, interval, missed_max, target_host)

dup ()

equal (other)

get_delay_down ()

get_delay_up ()

get_flags ()

get_init_wait ()

get_interval ()

get_missed_max ()

get_name ()

get_source_host ()

get_target_host ()

get_vlanid ()

ref ()

unref ()

Details

class NM.TeamLinkWatcher
classmethod new_arp_ping(init_wait, interval, missed_max, target_host, source_host, flags)
Parameters:
  • init_wait (int) – init_wait value

  • interval (int) – interval value

  • missed_max (int) – missed_max value

  • target_host (str) – the host name or the ip address that will be used as destination address in the arp request

  • source_host (str) – the host name or the ip address that will be used as source address in the arp request

  • flags (NM.TeamLinkWatcherArpPingFlags) – the watcher NM.TeamLinkWatcherArpPingFlags

Raises:

GLib.Error

Returns:

the new NM.TeamLinkWatcher object, or None on error

Return type:

NM.TeamLinkWatcher

Creates a new arp_ping NM.TeamLinkWatcher object

New in version 1.12.

classmethod new_arp_ping2(init_wait, interval, missed_max, vlanid, target_host, source_host, flags)
Parameters:
  • init_wait (int) – init_wait value

  • interval (int) – interval value

  • missed_max (int) – missed_max value

  • vlanid (int) – vlanid value

  • target_host (str) – the host name or the ip address that will be used as destination address in the arp request

  • source_host (str) – the host name or the ip address that will be used as source address in the arp request

  • flags (NM.TeamLinkWatcherArpPingFlags) – the watcher NM.TeamLinkWatcherArpPingFlags

Raises:

GLib.Error

Returns:

the new NM.TeamLinkWatcher object, or None on error

Return type:

NM.TeamLinkWatcher

Creates a new arp_ping NM.TeamLinkWatcher object

New in version 1.16.

classmethod new_ethtool(delay_up, delay_down)
Parameters:
  • delay_up (int) – delay_up value

  • delay_down (int) – delay_down value

Raises:

GLib.Error

Returns:

the new NM.TeamLinkWatcher object

Return type:

NM.TeamLinkWatcher

Creates a new ethtool NM.TeamLinkWatcher object

New in version 1.12.

classmethod new_nsna_ping(init_wait, interval, missed_max, target_host)
Parameters:
  • init_wait (int) – init_wait value

  • interval (int) – interval value

  • missed_max (int) – missed_max value

  • target_host (str) – the host name or the ipv6 address that will be used as target address in the NS packet

Raises:

GLib.Error

Returns:

the new NM.TeamLinkWatcher object, or None on error

Return type:

NM.TeamLinkWatcher

Creates a new nsna_ping NM.TeamLinkWatcher object

New in version 1.12.

dup()
Returns:

a copy of self

Return type:

NM.TeamLinkWatcher

Creates a copy of self

New in version 1.12.

equal(other)
Parameters:

other (NM.TeamLinkWatcher) – the NM.TeamLinkWatcher to compare self to.

Returns:

True if the objects contain the same values, False if they do not.

Return type:

bool

Determines if two NM.TeamLinkWatcher objects contain the same values in all the properties.

New in version 1.12.

get_delay_down()
Return type:

int

Gets the delay_down interval (in milliseconds) that elapses between the link going down and the runner being notified about it.

New in version 1.12.

get_delay_up()
Return type:

int

Gets the delay_up interval (in milliseconds) that elapses between the link coming up and the runner being notified about it.

New in version 1.12.

get_flags()
Return type:

NM.TeamLinkWatcherArpPingFlags

Gets the arp ping watcher flags.

New in version 1.12.

get_init_wait()
Return type:

int

Gets the init_wait interval (in milliseconds) that the team slave should wait before sending the first packet to the target host.

New in version 1.12.

get_interval()
Return type:

int

Gets the interval (in milliseconds) that the team slave should wait between sending two check packets to the target host.

New in version 1.12.

get_missed_max()
Return type:

int

Gets the number of missed replies after which the link is considered down.

New in version 1.12.

get_name()
Return type:

str

Gets the name of the link watcher to be used.

New in version 1.12.

get_source_host()
Return type:

str

Gets the ip address to be used as source for the link probing packets.

New in version 1.12.

get_target_host()
Return type:

str

Gets the host name/ip address to be used as destination for the link probing packets.

New in version 1.12.

get_vlanid()
Return type:

int

Gets the VLAN tag ID to be used to outgoing link probes

New in version 1.16.

ref()

Increases the reference count of the object.

Since 1.20, ref-counting of NM.TeamLinkWatcher is thread-safe.

New in version 1.12.

unref()

Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.

Since 1.20, ref-counting of NM.TeamLinkWatcher is thread-safe.

New in version 1.12.