]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove is_ha property from the router
authorCarl Baldwin <carl.baldwin@hpe.com>
Wed, 30 Sep 2015 20:12:23 +0000 (20:12 +0000)
committerCarl Baldwin <carl.baldwin@hpe.com>
Wed, 30 Sep 2015 20:12:23 +0000 (20:12 +0000)
commite4f60fb098f26fac80f7d4154973bd927fa11f2f
tree597445d0c15b83726bf255103e4f5b6f22cdce78
parent10e141006847e4af4920187bdfcfea2ae3aee3ca
Remove is_ha property from the router

This was a todo left over from refactoring.  The one place where it
was used was in the metadata driver which can just as easily check
isinstance.

The is_ha property in the HA class only returned True if self.router
was True.  The agent sets this on creation and so it will always be
True.  Additionally, it didn't really make sense to me anyway given
the way this was being used in the metadata driver.

Change-Id: Idf91ee5f8b72ff9a1740dd60090327d07ee8e16e
neutron/agent/l3/ha_router.py
neutron/agent/l3/router_info.py
neutron/agent/metadata/driver.py