Debian Codegraph @

os_vif/opts.py

raw symbols SCIP
1 # Copyright (c) 2021 OpenStack Foundation.
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 __all__ = [
16 'list_plugins_opts',
17 ]
18
19 from copy import deepcopy
20 import os_vif
21
22
23 os_vif.initialize()
24
25 _EXT_MANAGER = os_vif._EXT_MANAGER
26
27 plugins_list = [
28 (name, _EXT_MANAGER[name].obj)
29 for name in sorted(_EXT_MANAGER.names())
30 ]
31
32
33 def list_plugins_opts():
34 return [('os_vif_' + g, deepcopy(o.CONFIG_OPTS)) for g, o in plugins_list]