]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow 'max_l3_agents_per_router' to be set to '0'
authorYoni Shafrir <yshafrir@redhat.com>
Mon, 26 Jan 2015 07:32:55 +0000 (09:32 +0200)
committerYoni Shafrir <yshafrir@redhat.com>
Wed, 28 Jan 2015 07:09:24 +0000 (09:09 +0200)
commit421b5cd43b52e1fcec0713a9ad29bf9c90b5f45b
treec0b4c4176c4f1584a474ad39f8d0186acf8e7ed0
parentf2f06faf893f2cbac282e324591312695cc23908
Allow 'max_l3_agents_per_router' to be set to '0'

Currently the field 'max_l3_agents_per_router' from
'neutron.conf' cannot be set to '0' even though the comments
and code indicate it is be supported. The value
means 'unlimited' agents per router is allowed on HA routers.

This issue is a regression that was caused by:
7da314434e445ce3a6f3642c784954ef61154b7f

This patch adds a special handling for this value when validating
the config. When a value of '0' is used, the further validation
of max value is skipped.

Change-Id: Iac85768b350ee16c34893218738974a2692202aa
Closes-Bug: #1414548
neutron/db/l3_hamode_db.py
neutron/tests/unit/db/test_l3_ha_db.py