@@ -0,0 +1,997 @@
+%22%22%22%0AThis script deletes all the floatingips a user has that are not%0Aassociated with a port_id.%0A%22%22%22%0A%0Aimport os%0Aimport sys%0A%0Afrom neutronclient.v2_0 import client%0A%0A%0Adef main():%0A    try:%0A        username = os.environ%5B'OS_USERNAME'%5D%0A        tenant_name = os.environ%5B'OS_TENANT_NAME'%5D%0A        password = os.environ%5B'OS_PASSWORD'%5D%0A        auth_url = os.environ%5B'OS_AUTH_URL'%5D%0A    except KeyError:%0A        print(%22You need to source your openstack creds file first!%22)%0A        sys.exit(1)%0A%0A    neutron = client.Client(username=username,%0A                            tenant_name=tenant_name,%0A                            password=password,%0A                            auth_url=auth_url)%0A%0A    floatingips = neutron.list_floatingips()%0A    for floatingip in floatingips%5B'floatingips'%5D:%0A        if not floatingip%5B'port_id'%5D:%0A            print((%22Deleting floatingip %25s - %25s%22) %25%0A                  (floatingip%5B'id'%5D, floatingip%5B'floating_ip_address'%5D))%0A            neutron.delete_floatingip(floatingip%5B'id'%5D)%0A%0Amain()%0A

Add delete_orphan_floatingips script