Hi Andrja,

We can mark the the IP addresses allocated state to some timestamp in 
user_ip_address table in cloud db if we want to remove.

-Sanjeev

-----Original Message-----
From: Andrija Panic [mailto:andrija.pa...@gmail.com] 
Sent: Wednesday, May 21, 2014 7:55 PM
To: users@cloudstack.apache.org; Prodosh Banerjee Anolim
Subject: update/shrink "guest" IP range

Hi.

I have an IP range that is i.e. 50 IPs total - "Guest" ip range with public 
IPs...

I would need to shrink it, in order to move uper 10 IPs to the "public" IP 
range...

From cloudmonkey, I can list Guest range, but I can't update it, and no support 
in API till 4.3 version...

cloudmonkey list vlanipranges
=============================================================
id = f0bec296-3ac8-483c-a23a-b36213fdf846
account = system
domain = ROOT
domainid = 650b26a5-7271-48f6-a6a1-4e234a465cfd
endip = x.y.z.201
forvirtualnetwork = False
gateway = z.x.y.1
netmask = 255.255.255.0
networkid = c8eaf8d8-758e-4e93-aa64-732728452ae6
physicalnetworkid = 92cdd79e-3355-4c3f-9f28-4ffe44a60b44
startip = x.y.z.131
vlan = 5xx
zoneid = 3d1dcf11-d482-4f28-a2dd-6afcb51545d2
================================================================

> update vlanipranges
Error: invalid update api arg'vlanipranges'

I can't really delete the range (some VMs with those IP addreses), but need to 
shrink it...

Since this is not possible, could I update DB records, like:

UPDATE `cloud`.`user_ip_address` SET `vlan_db_id`='1', 
`source_network_id`='200' WHERE `id`='140';

this means changing vlan and source netowrk, to match those of IP addresses in 
"Public range"

Thanks.
Andrja

-- 

Andrija Panić

Reply via email to