MCPcopy Create free account
hub / github.com/apache/cloudstack / arpPing

Method arpPing

systemvm/debian/opt/cloud/bin/cs/CsAddress.py:934–939  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

932 return ip in list(self.address.values())
933
934 def arpPing(self):
935 cmd = "arping -c 1 -I %s -A -U -s %s %s" % (
936 self.dev, self.address['public_ip'], self.address['gateway'])
937 if not self.cl.is_redundant() and (not self.address['gateway'] or self.address['gateway'] == "None"):
938 cmd = "arping -c 1 -I %s -A -U %s" % (self.dev, self.address['public_ip'])
939 CsHelper.execute2(cmd, False)
940
941 # Delete any ips that are configured but not in the bag
942 def compare(self, bag):

Callers 1

post_configureMethod · 0.95

Calls 1

is_redundantMethod · 0.80

Tested by

no test coverage detected