]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Optimize if statement in dvr_local_router.py
authorRyan Moats <rmoats@us.ibm.com>
Tue, 25 Aug 2015 10:57:03 +0000 (05:57 -0500)
committerRyan Moats <rmoats@us.ibm.com>
Thu, 17 Sep 2015 16:55:56 +0000 (11:55 -0500)
commitb07fb262921c615015c099643c470bf9fe9c7977
tree7d16ae47d81a7b0e98019dca86451498bd24bbcf
parent693db7cf7cac4c0fc4aeaffd113b9d833a950a52
Optimize if statement in dvr_local_router.py

The if statement for calling create_rtr_2_fip_link and kicking
the FW agent includes a check on floating_ips, that has already
been performed by the previous if block.  Pull this block into
the previous block for code clarity.

Change-Id: I8661aa3998bda9341f558d0ecbc8e2663cd95aca
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Co-Authored-By: Brian Haley <brian.haley@hpe.com>
neutron/agent/l3/dvr_local_router.py
neutron/tests/unit/agent/l3/test_agent.py