Hi, We don't store guest ip range (advanced networking) in DB. So I don't think we can shrink the guest ip range.
-Sanjeev -----Original Message----- From: Andrija Panic [mailto:andrija.pa...@gmail.com] Sent: Friday, May 23, 2014 3:14 PM To: users@cloudstack.apache.org Cc: Prodosh Banerjee Anolim Subject: Re: update/shrink "guest" IP range So Sanjeev, any thoughts for my proposed solution ? Thanks On 22 May 2014 11:58, Andrija Panic <andrija.pa...@gmail.com> wrote: > Hi Sanjeev - sorry for missunderstanding - but good point :) I could > have used it some time ago :) > > I'm using Advanced networking - and (accidentally) I have subet > x.y.z.0/24 whose IP range is divided i.t. 2/3 of IPs to Guest network > (eth1) and 1/3 of IPs for Public (also eth1). And it happened I need > to move few more IPs from Guest to Public vlan, but can't shrink Guest range > from GUI/API... > > Thanks, > > > On 22 May 2014 11:21, Sanjeev Neelarapu <sanjeev.neelar...@citrix.com>wrote: > >> Hi, >> >> I thought you wanted to use some IP addresses from the range outside CS. >> So I asked you to mark few ip addresses as allocated so CS would not >> pick those IP addresses. >> >> What type of networking you are using? If it is Advnaced shared/Basic >> networking then public and guest network uses the same IP range. >> >> Thanks, >> Sanjeev >> >> -----Original Message----- >> From: Andrija Panic [mailto:andrija.pa...@gmail.com] >> Sent: Thursday, May 22, 2014 1:35 PM >> To: users@cloudstack.apache.org >> Cc: Prodosh Banerjee Anolim >> Subject: Re: update/shrink "guest" IP range >> >> Hi Sanjeev, >> >> thx, but I don't just want to remove IP from table - I want to define >> it to belong to "Public" network, instead of "Guest" network (it is >> basicaly 1 subnet with some IPs dedicated to Guest, and some IPs >> dedicated to Public) Also, correct me if I understood you incorrectly >> - you ment to change "State" field value from "Allocated" to "Free" >> in order to mark IP as free (and also set "allocated" field to NULL, >> and also nullofy some other fields >> probably...) >> >> I guess changing table as I proposed would work for moving IP from >> Guest to Public network...? >> >> I could not find any other table with IP addresses, or IP ranges >> (since we define IP range inside CS GUI), except that... ? >> >> Thanks >> >> >> On 22 May 2014 05:50, Sanjeev Neelarapu <sanjeev.neelar...@citrix.com >> >wrote: >> >> > 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ć >> > >> >> >> >> -- >> >> Andrija Panić >> -------------------------------------- >> http://admintweets.com >> -------------------------------------- >> > > > > -- > > Andrija Panić > -------------------------------------- > http://admintweets.com > -------------------------------------- > -- Andrija Panić -------------------------------------- http://admintweets.com --------------------------------------