mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-04 00:02:37 +01:00
CLOUDSTACK-9097 Make public ip work immediately
We need to send an Unsolicited ARP to the gateway, instead of our own address. We now encounter problems when people deploy/destroy/deploy and get the same public ip.
This commit is contained in:
parent
5b7d935ab0
commit
90e01c95a2
@ -588,7 +588,7 @@ class CsIP:
|
|||||||
|
|
||||||
def arpPing(self):
|
def arpPing(self):
|
||||||
cmd = "arping -c 1 -I %s -A -U -s %s %s" % (
|
cmd = "arping -c 1 -I %s -A -U -s %s %s" % (
|
||||||
self.dev, self.address['public_ip'], self.address['public_ip'])
|
self.dev, self.address['public_ip'], self.address['gateway'])
|
||||||
CsHelper.execute(cmd)
|
CsHelper.execute(cmd)
|
||||||
|
|
||||||
# Delete any ips that are configured but not in the bag
|
# Delete any ips that are configured but not in the bag
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user