| 1 |
# All Rights Reserved. |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 |
# not use this file except in compliance with the License. You may obtain |
| 5 |
# a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
# License for the specific language governing permissions and limitations |
| 13 |
# under the License. |
| 14 |
|
| 15 |
|
| 16 |
from oslo_config import cfg |
| 17 |
|
| 18 |
from neutron_taas._i18n import _ |
| 19 |
|
| 20 |
|
| 21 |
taas_quota_opts = [ |
| 22 |
cfg.IntOpt('quota_tap_service', |
| 23 |
default=1, |
| 24 |
help=_('Number of Tap Service instances allowed per tenant')), |
| 25 |
cfg.IntOpt('quota_tap_flow', |
| 26 |
default=10, |
| 27 |
help=_('Number of Tap flows allowed per tenant')) |
| 28 |
] |
| 29 |
|
| 30 |
|
| 31 |
taas_opts = [ |
| 32 |
cfg.IntOpt( |
| 33 |
'vlan_range_start', |
| 34 |
default=3900, |
| 35 |
help=_("Starting range of TAAS VLAN IDs")), |
| 36 |
cfg.IntOpt( |
| 37 |
'vlan_range_end', |
| 38 |
default=4000, |
| 39 |
help=_("End range of TAAS VLAN IDs")), |
| 40 |
] |
| 41 |
|
| 42 |
|
| 43 |
def register(): |
| 44 |
cfg.CONF.register_opts(taas_quota_opts, 'QUOTAS') |
| 45 |
cfg.CONF.register_opts(taas_opts, 'taas') |