]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add availability_zone support for router
authorHirofumi Ichihara <ichihara.hirofumi@lab.ntt.co.jp>
Thu, 3 Dec 2015 05:12:19 +0000 (14:12 +0900)
committerHirofumi Ichihara <ichihara.hirofumi@lab.ntt.co.jp>
Fri, 4 Dec 2015 03:32:42 +0000 (12:32 +0900)
commitef2a5543cc7e15769031f81c921d4babb7e14d04
treec4bf21ad0c7773d4a52b30b85c6a2c4891fd316d
parent1b6cced0d47f4b577765bba3d69691acf3170fcc
Add availability_zone support for router

This patch adds the availability_zone support for router.

APIImpact
DocImpact: Make router scheduler availability zone aware. If multiple
availability zones are used, set router_scheduler_driver =
neutron.scheduler.l3_agent_scheduler.AZLeastRoutersScheduler. This scheduler
selects agent depends on LeastRoutersScheduler logic within an availability
zone so that considers the weight of agent.

Change-Id: Id26d9494b9a5b459767e93a850f47a3b014b11bb
Co-Authored-By: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Partially-implements: blueprint add-availability-zone
14 files changed:
neutron/db/availability_zone/router.py [new file with mode: 0644]
neutron/db/l3_agentschedulers_db.py
neutron/db/l3_attrs_db.py
neutron/db/l3_hamode_db.py
neutron/db/l3_hascheduler_db.py
neutron/db/migration/alembic_migrations/versions/EXPAND_HEAD
neutron/db/migration/alembic_migrations/versions/mitaka/expand/dce3ec7a25c9_router_az.py [new file with mode: 0644]
neutron/extensions/router_availability_zone.py [new file with mode: 0644]
neutron/scheduler/l3_agent_scheduler.py
neutron/services/l3_router/l3_router_plugin.py
neutron/tests/unit/extensions/test_l3.py
neutron/tests/unit/extensions/test_router_availability_zone.py [new file with mode: 0644]
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py
releasenotes/notes/add-availability-zone-4440cf00be7c54ba.yaml