]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
L3 Metering label as shared
authorSylvain Afchain <sylvain.afchain@enovance.com>
Thu, 30 Jan 2014 10:42:08 +0000 (11:42 +0100)
committerCarl Baldwin <carl.baldwin@hp.com>
Fri, 12 Sep 2014 19:19:29 +0000 (19:19 +0000)
commit22c1a5e7d33856c3f50925ddbc930ee97a84476d
tree21979267f71c6d09bd04a6d27b6471206753a830
parent36816dfeae07287f303716fe283b040de120d4f5
L3 Metering label as shared

With this patch metering labels can be set
as shared so that the rules associated with
this label will be applied to all routers for
all tenants.

Also changed all attributes on metering labels
to not allow updates ('allow_put': False),
since there are no update methods.

Partially implements
blueprint l3-metering-mgnt-ext

DocImpact

Change-Id: Ice405585fc50786d52eecc35c01605ac0e9550ac
neutron/db/metering/metering_db.py
neutron/db/migration/alembic_migrations/versions/3c346828361e_metering_label_shared.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/extensions/metering.py
neutron/tests/unit/db/metering/test_db_metering.py
neutron/tests/unit/services/metering/test_metering_plugin.py