NM.TeamLinkWatcher¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class NM.TeamLinkWatcher¶
- classmethod new_arp_ping(init_wait, interval, missed_max, target_host, source_host, flags)¶
- Parameters:
init_wait (
int
) – init_wait valueinterval (
int
) – interval valuemissed_max (
int
) – missed_max valuetarget_host (
str
) – the host name or the ip address that will be used as destination address in the arp requestsource_host (
str
) – the host name or the ip address that will be used as source address in the arp requestflags (
NM.TeamLinkWatcherArpPingFlags
) – the watcherNM.TeamLinkWatcherArpPingFlags
- Raises:
- Returns:
the new
NM.TeamLinkWatcher
object, orNone
on error- Return type:
Creates a new arp_ping
NM.TeamLinkWatcher
objectNew 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 valueinterval (
int
) – interval valuemissed_max (
int
) – missed_max valuevlanid (
int
) – vlanid valuetarget_host (
str
) – the host name or the ip address that will be used as destination address in the arp requestsource_host (
str
) – the host name or the ip address that will be used as source address in the arp requestflags (
NM.TeamLinkWatcherArpPingFlags
) – the watcherNM.TeamLinkWatcherArpPingFlags
- Raises:
- Returns:
the new
NM.TeamLinkWatcher
object, orNone
on error- Return type:
Creates a new arp_ping
NM.TeamLinkWatcher
objectNew in version 1.16.
- classmethod new_ethtool(delay_up, delay_down)¶
- Parameters:
- Raises:
- Returns:
the new
NM.TeamLinkWatcher
object- Return type:
Creates a new ethtool
NM.TeamLinkWatcher
objectNew in version 1.12.
- classmethod new_nsna_ping(init_wait, interval, missed_max, target_host)¶
- Parameters:
- Raises:
- Returns:
the new
NM.TeamLinkWatcher
object, orNone
on error- Return type:
Creates a new nsna_ping
NM.TeamLinkWatcher
objectNew in version 1.12.
- dup()¶
- Returns:
a copy of self
- Return type:
Creates a copy of self
New in version 1.12.
- equal(other)¶
- Parameters:
other (
NM.TeamLinkWatcher
) – theNM.TeamLinkWatcher
to compare self to.- Returns:
True
if the objects contain the same values,False
if they do not.- Return type:
Determines if two
NM.TeamLinkWatcher
objects contain the same values in all the properties.New in version 1.12.
- get_delay_down()¶
- Return type:
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:
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:
Gets the arp ping watcher flags.
New in version 1.12.
- get_init_wait()¶
- Return type:
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:
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:
Gets the number of missed replies after which the link is considered down.
New in version 1.12.
- get_source_host()¶
- Return type:
Gets the ip address to be used as source for the link probing packets.
New in version 1.12.
- get_target_host()¶
- Return type:
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:
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.