Hi Makrand,

You could also make an API call.

The below will deploy a new virtual machine using a set network. This is useful if you have deleted an instance that has a shared network (direct attached ip) and need to use the same IP address again.

note the ip address is 172.26.7.16, changed so does not deploy new instance every time you click on it.
http://172.26.7.116:8096/api?serviceofferingid=4edc9506-59e5-4556-b730-b18b7ff24000&zoneid=feb38d68-400f-4465-9e24-d785cd7db4c5&templateid=94bdff8a-ca47-4635-9d16-88eddf2c2ecd&iptonetworklist[1].networkid=2921db35-823d-40fe-9ea8-2e693496a13f&domainid=f1ecfa24-7086-4b4e-9da7-d1d0f646157a&response=json&hypervisor=Xenserver&name=p-CHUKYO-SV12-M15505098&iptonetworklist[0].networkid=2921db35-823d-40fe-9ea8-2e693496a13f&command=deployVirtualMachine&account=wilson&iptonetworklist[0].ip=103.244.236.100&displayname=daris-recovery-api


Regards,
Adrian Sender

Testlabs Australia PTY. LTD.
W: www.testlabs.com.au
E: asen...@testlabs.com.au

On 2019-01-28 20:20, Andrija Panic wrote:
​Hi,

you can either try adding multiple Public IPs (not the most elegant
solution, but sometimes work), until you eventually add the old IP you
want, then remove all other public IPs.

Or you can just edit the table "user_ip_address" - here, I suggest to
add one additional IP address, and check what different fields were
updated in the table for that specific row/IP address - then replicate
same  field changes for the old public IP address you want (later
release the unneeded public IP).

Best,
Andrija​

andrija.pa...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue




-----Original Message-----
From: Makrand <makrandsa...@gmail.com>
Sent: 28 January 2019 08:52
To: users@cloudstack.apache.org
Subject: Reassigning same public IP

Hello there,

Is there any way I can reassign accidentally released public IP to VM
(Static NAT)

If I have to edit DB - what tables - rows should I be updating?


--
Makrand

Reply via email to