Skip to content

Commit 8908371

Browse files
Romain Dartiguesromain-dartigues
authored andcommitted
systemvm: do not arping None
If the gateway is None, don't bother arping it.
1 parent a96ab18 commit 8908371

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ def hasIP(self, ip):
584584
return ip in self.address.values()
585585

586586
def arpPing(self):
587+
if not self.address['gateway'] or self.address['gateway'] == 'None':
588+
return
587589
cmd = "arping -c 1 -I %s -A -U -s %s %s" % (
588590
self.dev, self.address['public_ip'], self.address['gateway'])
589591
CsHelper.execute(cmd)

0 commit comments

Comments
 (0)