Optimize IptablesManager._find_last_entry
Optimize IptablesManager._find_last_entry

As it turns out calling .strip() thousands of times can be expensive.
I'll defer to security groups and iptables experts to try and find ways
to call the method less often, cache the results, or any other clever
trick.

Moving strip to the return statement speeds up the method by more than
x2.

Change-Id: I7522c6db50c76274bef93e0f0ea6a78d508b7fbe
Related-Bug: #1455675

mandeepdhami/neutron,shahbazn/neutron,silenci/neutron,suneeth51/neutron,NeCTAR-RC/neutron,dhanunjaya/neutron,wenhuizhang/neutron,sasukeh/neutron,javaos74/neutron,huntxu/neutron,adelina-t/neutron,wenhuizhang/neutron,jerryz1982/neutron,javaos74/neutron,cisco-openstack/neutron,mahak/neutron,bgxavier/neutron,openstack/neutron,NeCTAR-RC/neutron,sebrandon1/neutron,mmnelemane/neutron,dhanunjaya/neutron,igor-toga/local-snat,mandeepdhami/neutron,adelina-t/neutron,paninetworks/neutron,asgard-lab/neutron,cloudbase/neutron,eonpatapon/neutron,jumpojoy/neutron,JioCloud/neutron,neoareslinux/neutron,sasukeh/neutron,shahbazn/neutron,barnsnake351/neutron,dims/neutron,barnsnake351/neutron,skyddv/neutron,noironetworks/neutron,eayunstack/neutron,apporc/neutron,wolverineav/neutron,jacknjzhou/neutron,swdream/neutron,watonyweng/neutron,dims/neutron,mahak/neutron,watonyweng/neutron,suneeth51/neutron,takeshineshiro/neutron,mahak/neutron,skyddv/neutron,jacknjzhou/neutron,cloudbase/neutron,bigswitch/neutron,klmitch/neutron,silenci/neutron,mattt416/neutron,SamYaple/neutron,klmitch/neutron,vivekanand1101/neutron,neoareslinux/neutron,mattt416/neutron,JianyuWang/neutron,mmnelemane/neutron,glove747/liberty-neutron,JioCloud/neutron,bigswitch/neutron,swdream/neutron,apporc/neutron,eayunstack/neutron,openstack/neutron,chitr/neutron,yanheven/neutron,sebrandon1/neutron,chitr/neutron,vivekanand1101/neutron,SamYaple/neutron,asgard-lab/neutron,eonpatapon/neutron,openstack/neutron,takeshineshiro/neutron,jumpojoy/neutron,huntxu/neutron,JianyuWang/neutron,igor-toga/local-snat,paninetworks/neutron,yanheven/neutron,cisco-openstack/neutron,bgxavier/neutron,noironetworks/neutron,MaximNevrov/neutron,glove747/liberty-neutron,MaximNevrov/neutron,wolverineav/neutron,jerryz1982/neutron