]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Don't update floating IP status if no change
authorKevin Benton <blak111@gmail.com>
Fri, 17 Apr 2015 11:03:38 +0000 (04:03 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Tue, 2 Jun 2015 22:30:36 +0000 (22:30 +0000)
commitcf7647502093aa8a1a04462ef52261e1f2c5f465
treefd1ef9b1331e015c0e08daa6e7f8e2be30a7912e
parenta27a1892f6fa7382000bf87ca5408afdbb263996
Don't update floating IP status if no change

The floating IP status was going through all of the
status update code every time the L3 agent sent in
an update, even if the status didn't change.

This patch skips sending updates to the server if the
agent doesn't change the status.

Change-Id: Ic3736bed3dc3e4ccb91f4acfabbf033949e09ce0
Partial-Bug: #1445412
(cherry picked from commit c44506bfd60b2dd6036e113464f1ea682cfaeb6c)
neutron/agent/l3/agent.py
neutron/agent/l3/router_info.py
neutron/tests/unit/agent/l3/test_agent.py
neutron/tests/unit/agent/l3/test_router_info.py