Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to know whether the orphan ip address which neutron.delete_floatingip can be allocated again in another project?

after created project and instance and associate floating ip and then delete project,

then run a script to delete orphan floating ip , but in another project allocated ip address are N+1 new ip address

how to know whether the orphan ip address which neutron.delete_floatingip can be allocated again in another project?

 except:
   print(("Deleting floatingip %s - %s") % (floatingip['id'], floatingip['floating_ip_address']))
   neutron_client.delete_floatingip(floatingip['id'])

i have thought to manually associate the deleted orphan floating ip address with another project,

but i do not know port_id, what is port_id? and is it possible to associate it manually in this case and how to do?

floating ip 
28b2fba4-f6d3-4265-9969-e71f58288dcc

check with net-list and find existing network called network2b

neutron net-list
export public_id=db9791fb-f06e-496f-9168-5c2cd0ab1292

export floatingip_id=28b2fba4-f6d3-4265-9969-e71f58288dcc

neutron floatingip-associate $floatingip_id $port_id