| 1 |
# Copyright (c) 2018 Intel Corporation. |
| 2 |
# Copyright (c) 2018 Isaku Yamahata <isaku.yamahata at intel com> |
| 3 |
# <isaku.yamahata at gmail com> |
| 4 |
# All rights reserved. |
| 5 |
# |
| 6 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 7 |
# not use this file except in compliance with the License. You may obtain |
| 8 |
# a copy of the License at |
| 9 |
# |
| 10 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
# |
| 12 |
# Unless required by applicable law or agreed to in writing, software |
| 13 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 |
# License for the specific language governing permissions and limitations |
| 16 |
# under the License. |
| 17 |
|
| 18 |
|
| 19 |
# NOTE(yamahata):smallest one is called first. |
| 20 |
# we are using a big enough number for default that can |
| 21 |
# be manipulated to increase or decrease the priorities. |
| 22 |
# for all the callbacks, to reduce the priority division |
| 23 |
# can be used for reducing that number for higher priority. |
| 24 |
# each resources would want to define their own symbolic values for their use. |
| 25 |
|
| 26 |
PRIORITY_DEFAULT = 55550000 |
| 27 |
|
| 28 |
|
| 29 |
# For l3 plugin and flavor |
| 30 |
PRIORITY_ROUTER_EXTENDED_ATTRIBUTE = PRIORITY_DEFAULT - 100 |
| 31 |
# DEFAULT is reserved for third party which may not know priority yet |
| 32 |
PRIORITY_ROUTER_DEFAULT = PRIORITY_DEFAULT |
| 33 |
PRIORITY_ROUTER_CONTROLLER = PRIORITY_DEFAULT + 100 |
| 34 |
PRIORITY_ROUTER_DRIVER = PRIORITY_DEFAULT + 200 |