Pick just the first route when looking for the host interface
Pick just the first route when looking for the host interface

The current code will fail miserably if multiple default routes are
present (perfectly normal if they have different metrics). Fixing
the code to pick the first/top entry

Fixes LP# 1084470

Change-Id: Ieda16b575685071ff831c92e6b2a29737d6f849b

noironetworks/devstack,sequenceiq/devstack,mc2014/devstack,neerja28/Devstack_GlusterFS,nuxeh/devstack,pacinete/devstack,flavio-fernandes/devstack,vsham20/devstack,pczerkas/devstack,richliu/devstack,virtualopensystems/devstack,mmasaki/devstack,ewindisch/raspi-devstack,j4/devstack,prithivm/branch01,Millnert/contrail-devstack,LoHChina/devstack,herrsechs/devstack,Yuriy-Leonov/devstack,nawawi/openstack,vishnugonela/devstack,bljgaurav/openstack-test,TwinkleChawla/devstack,prithivm/branch01,mmasaki/devstack,nuxeh/devstack,avvocatodemarchis/devstack,bswartz/devstack,pczerkas/devstack,pombredanne/devstack,sc68cal/devstack,sstrato/devstack,openstack-dev/devstack,dtroyer/devstack,tianweizhang/devstack,cloudbuilders/devstack,upadhyay-prashant/devstack,NaokiMiyata/devstack,vsham20/devstack,eharney/devstack,LoHChina/devstack,flavio-fernandes/devstack,ozamiatin/devstack,j4/devstack,parul24/devstack,mssumanth/devstack,pacinete/devstack,tianweizhang/devstack,williamthegrey/devstack,olivierlemasle/devstack,bigswitch/devstack,Mahito/devstack,CloudServer/devstack,bq-xiao/devstack,NaokiMiyata/devstack,samgoon/devstack,deepakselvaraj/devstack,atulpatil301/devstack,CloudServer/devstack,HPCHub/devstack,Juniper/devstack,dtroyer/devstack,innodee/openstackk,kplus/devstack-moonshot,liuquansheng47/devstack,srics/devstack,bljgaurav/openstack-test,parul24/devstack,BSJAIN92/OpenStack,herrsechs/devstack,wenhuizhang/devstack,neerja28/Devstack_GlusterFS,sequenceiq/devstack,bq-xiao/devstack,varunarya10/devstack,HPCHub/devstack,olivierlemasle/devstack,TwinkleChawla/devstack,noironetworks/devstack,openstack-dev/devstack,Mahito/devstack,bigswitch/devstack,vishnugonela/devstack,avvocatodemarchis/devstack,rushiagr/devstack,kplus/devstack-moonshot,thomasem/devstack,dirkmueller/devstack,andrewrothstein/devstack,atulpatil301/devstack,rushiagr/devstack,promptworks/devstack,wenhuizhang/devstack,mc2014/devstack,mssumanth/devstack,varunarya10/devstack,eharney/devstack,jamielennox/devstack,ewindisch/raspi-devstack,armando-migliaccio/devstack,pombredanne/devstack,promptworks/devstack,liuquansheng47/devstack,nawawi/openstack,ozamiatin/devstack,sc68cal/devstack,costingalan/devstack,thomasem/devstack,eshnil2000/devstack,group-policy/devstack,affo/devstack,cloudbuilders/devstack,group-policy/devstack,richliu/devstack,shootstar/devstacktest,BSJAIN92/OpenStack,samgoon/devstack,yamt/devstack,JioCloud/devstack,costingalan/devstack,upadhyay-prashant/devstack,affo/devstack,CiscoSystems/devstack,inkerra/devstack,bswartz/devstack,dirkmueller/devstack,andrewrothstein/devstack