I have found out that you can't do this using the command line. However you can do this by manipulating the database.
What I did was log on using a mysql client to the ova_neutron database and then:
- Modified the record in ipallocationpools for my subnet, with the new range.
- Added records to ipavailabilityranges for the ranges extensions.
For example, suppose that the old range was 8.8.8.100 -> 8.8.8.200 and I wanted it to be 8.8.8.100 -> 8.8.9.255
First find out what the id for the allocation pool is:
select * from ipallocationpool;
suppose you find out that your pool has id e813be7a-b87d-4b74-b702-9b349199c2c7
update ipallocationpools set last_ip='8.8.9.255' where id = 'e813be7a-b87d-4b74-b702-9b349199c2c7';
insertinsert into ipavailabilityranges (allocation_pool_id,first_ip,last_ip)
values ('e813be7a-b87d-4b74-b702-9b349199c2c7','8.8.8.101','8.8.9.255');
On our stack this did the trick...