Speed up creating floating ips.
Speed up creating floating ips.

Previously, we would make two separate DB calls for each floating ip
we created in floating_ip_bulk_create. This was just a little slow
(several hours to create a /16). This patch speeds up floating ip
creation just a little:

$ time bin/nova-manage floating create --ip_range=10.250.0.0/16

real	0m48.766s
user	0m34.342s
sys	0m1.984s

Resolves bug 1023560.

Change-Id: Ie3663440d414b102111178899db0c571769edba8

alaski/nova,jianghuaw/nova,ntt-sic/nova,jeffrey4l/nova,j-carpentier/nova,rrader/nova-docker-plugin,zaina/nova,paulmathews/nova,edulramirez/nova,viggates/nova,DirectXMan12/nova-hacking,NeCTAR-RC/nova,yosshy/nova,angdraug/nova,isyippee/nova,noironetworks/nova,iuliat/nova,houshengbo/nova_vmware_compute_driver,Stavitsky/nova,belmiromoreira/nova,eayunstack/nova,gooddata/openstack-nova,Triv90/Nova,alvarolopez/nova,BeyondTheClouds/nova,shahar-stratoscale/nova,ruslanloman/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,raildo/nova,sebrandon1/nova,MountainWei/nova,Yuriy-Leonov/nova,dims/nova,gspilio/nova,jeffrey4l/nova,joker946/nova,tianweizhang/nova,maoy/zknova,LoHChina/nova,Francis-Liu/animated-broccoli,JianyuWang/nova,sebrandon1/nova,paulmathews/nova,zhimin711/nova,dstroppa/openstack-smartos-nova-grizzly,maheshp/novatest,rajalokan/nova,mandeepdhami/nova,rahulunair/nova,petrutlucian94/nova_dev,yatinkumbhare/openstack-nova,shail2810/nova,mikalstill/nova,angdraug/nova,maheshp/novatest,Yuriy-Leonov/nova,akash1808/nova,NewpTone/stacklab-nova,JioCloud/nova_test_latest,bgxavier/nova,leilihh/novaha,aristanetworks/arista-ovs-nova,rahulunair/nova,nikesh-mahalka/nova,imsplitbit/nova,spring-week-topos/nova-week,OpenAcademy-OpenStack/nova-scheduler,adelina-t/nova,redhat-openstack/nova,Yusuke1987/openstack_template,devoid/nova,cernops/nova,fnordahl/nova,gooddata/openstack-nova,SUSE-Cloud/nova,alvarolopez/nova,devendermishrajio/nova,yrobla/nova,rickerc/nova_audit,LoHChina/nova,cloudbase/nova-virtualbox,klmitch/nova,akash1808/nova,orbitfp7/nova,bclau/nova,takeshineshiro/nova,Juniper/nova,hanlind/nova,tanglei528/nova,maelnor/nova,Juniper/nova,redhat-openstack/nova,whitepages/nova,cernops/nova,paulmathews/nova,watonyweng/nova,sridevikoushik31/nova,blueboxgroup/nova,barnsnake351/nova,yrobla/nova,eayunstack/nova,devendermishrajio/nova_test_latest,TwinkleChawla/nova,akash1808/nova_test_latest,zhimin711/nova,dstroppa/openstack-smartos-nova-grizzly,noironetworks/nova,CiscoSystems/nova,JioCloud/nova,blueboxgroup/nova,CiscoSystems/nova,thomasem/nova,leilihh/novaha,alexandrucoman/vbox-nova-driver,kimjaejoong/nova,belmiromoreira/nova,CloudServer/nova,vladikr/nova_drafts,ruslanloman/nova,thomasem/nova,virtualopensystems/nova,j-carpentier/nova,mmnelemane/nova,jianghuaw/nova,OpenAcademy-OpenStack/nova-scheduler,dawnpower/nova,Tehsmash/nova,fnordahl/nova,kimjaejoong/nova,jianghuaw/nova,shahar-stratoscale/nova,NewpTone/stacklab-nova,DirectXMan12/nova-hacking,projectcalico/calico-nova,gooddata/openstack-nova,fajoy/nova,jianghuaw/nova,affo/nova,tangfeixiong/nova,NewpTone/stacklab-nova,sridevikoushik31/openstack,savi-dev/nova,imsplitbit/nova,double12gzh/nova,houshengbo/nova_vmware_compute_driver,ntt-sic/nova,qwefi/nova,bgxavier/nova,dims/nova,maelnor/nova,cloudbase/nova-virtualbox,shootstar/novatest,mikalstill/nova,usc-isi/nova,tealover/nova,openstack/nova,Tehsmash/nova,JioCloud/nova,zzicewind/nova,openstack/nova,silenceli/nova,maoy/zknova,tanglei528/nova,plumgrid/plumgrid-nova,cyx1231st/nova,Francis-Liu/animated-broccoli,petrutlucian94/nova,klmitch/nova,saleemjaveds/https-github.com-openstack-nova,citrix-openstack-build/nova,Metaswitch/calico-nova,rajalokan/nova,cernops/nova,luogangyi/bcec-nova,tangfeixiong/nova,Yusuke1987/openstack_template,whitepages/nova,maoy/zknova,maheshp/novatest,silenceli/nova,tealover/nova,zaina/nova,Triv90/Nova,Juniper/nova,houshengbo/nova_vmware_compute_driver,Triv90/Nova,MountainWei/nova,JioCloud/nova_test_latest,isyippee/nova,BeyondTheClouds/nova,ted-gould/nova,eonpatapon/nova,cloudbau/nova,CEG-FYP-OpenStack/scheduler,takeshineshiro/nova,dawnpower/nova,edulramirez/nova,vmturbo/nova,varunarya10/nova_test_latest,apporc/nova,JianyuWang/nova,klmitch/nova,sebrandon1/nova,savi-dev/nova,rickerc/nova_audit,rajalokan/nova,felixma/nova,mahak/nova,sridevikoushik31/nova,phenoxim/nova,gooddata/openstack-nova,mikalstill/nova,DirectXMan12/nova-hacking,sacharya/nova,shootstar/novatest,fajoy/nova,usc-isi/nova,mandeepdhami/nova,TwinkleChawla/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,dstroppa/openstack-smartos-nova-grizzly,badock/nova,Metaswitch/calico-nova,scripnichenko/nova,cloudbau/nova,hanlind/nova,sridevikoushik31/nova,yrobla/nova,watonyweng/nova,vmturbo/nova,shail2810/nova,berrange/nova,ted-gould/nova,TieWei/nova,barnsnake351/nova,qwefi/nova,bigswitch/nova,ewindisch/nova,nikesh-mahalka/nova,adelina-t/nova,CEG-FYP-OpenStack/scheduler,scripnichenko/nova,leilihh/nova,zzicewind/nova,Stavitsky/nova,berrange/nova,tudorvio/nova,CCI-MOC/nova,klmitch/nova,usc-isi/nova,varunarya10/nova_test_latest,mahak/nova,felixma/nova,phenoxim/nova,affo/nova,leilihh/nova,BeyondTheClouds/nova,sridevikoushik31/nova,rajalokan/nova,petrutlucian94/nova_dev,vladikr/nova_drafts,gspilio/nova,virtualopensystems/nova,yosshy/nova,aristanetworks/arista-ovs-nova,spring-week-topos/nova-week,CCI-MOC/nova,eonpatapon/nova,raildo/nova,fajoy/nova,devoid/nova,rahulunair/nova,devendermishrajio/nova,cloudbase/nova,luogangyi/bcec-nova,plumgrid/plumgrid-nova,mgagne/nova,iuliat/nova,cloudbase/nova,CloudServer/nova,Juniper/nova,rrader/nova-docker-plugin,NeCTAR-RC/nova,citrix-openstack-build/nova,joker946/nova,akash1808/nova_test_latest,sacharya/nova,double12gzh/nova,sridevikoushik31/openstack,projectcalico/calico-nova,sridevikoushik31/openstack,saleemjaveds/https-github.com-openstack-nova,gspilio/nova,tianweizhang/nova,vmturbo/nova,savi-dev/nova,badock/nova,bigswitch/nova,ewindisch/nova,devendermishrajio/nova_test_latest,openstack/nova,apporc/nova,tudorvio/nova,alexandrucoman/vbox-nova-driver,eharney/nova,petrutlucian94/nova,bclau/nova,cloudbase/nova,orbitfp7/nova,hanlind/nova,mahak/nova,yatinkumbhare/openstack-nova,SUSE-Cloud/nova,mgagne/nova,TieWei/nova,alaski/nova,aristanetworks/arista-ovs-nova,vmturbo/nova,eharney/nova,mmnelemane/nova,viggates/nova,cyx1231st/nova