pyhpecw7.features.ping module¶
Ping another device from HPCOM7 devices.
-
class
pyhpecw7.features.ping.
Ping
(device, host, vrf='', v6=False, detail=False)[source]¶ Bases:
object
Ping another device from an HPCOM7 device.
Parameters: - device (HPCOM7) – connected instance of a
pyhpecw7.comware.HPCOM7
object. - host (str) – IP address or name to ping from the switch
- vrf (vrf) – source VRF on the switch the ping will come from
- v6 (bool) – set to true if dest is v6 target
- detail (bool) – set to true if you want to see per ping (ICMP echo request) response details
Note
If an IPv6 address is provided for
host
, there is no need to setv6
toTrue
, but it doesn’t hurt either way.If a name is used for
host
and that resolves to a v6 address, thenv6
must be set toTrue
.-
host
¶ IP address or name to ping from the switch
Type: str
-
vrf
¶ source VRF on the switch the ping will come from
Type: vrf
-
v6
¶ set to true if dest is v6 target
Type: bool
-
detail
¶ set to true if you want to see per ping (ICMP echo request) response details
Type: bool
-
response
¶ see
_ping
Type: dict
- device (HPCOM7) – connected instance of a