Debian Codegraph @

neutron_vpnaas/opts.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License"); you may
2 # not use this file except in compliance with the License. You may obtain
3 # a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12
13 import neutron.conf.plugins.ml2.drivers.ovn.ovn_conf
14 import neutron.services.provider_configuration
15
16 from neutron_vpnaas.db.vpn import vpn_agentschedulers_db
17 import neutron_vpnaas.services.vpn.agent
18 import neutron_vpnaas.services.vpn.device_drivers.ipsec
19 import neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec
20 import neutron_vpnaas.services.vpn.ovn_agent
21
22
23 def list_agent_opts():
24 return [
25 ('vpnagent',
26 neutron_vpnaas.services.vpn.agent.vpn_agent_opts),
27 ('ipsec',
28 neutron_vpnaas.services.vpn.device_drivers.ipsec.ipsec_opts),
29 ('strongswan',
30 neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.
31 strongswan_opts),
32 ('pluto',
33 neutron_vpnaas.services.vpn.device_drivers.ipsec.pluto_opts)
34 ]
35
36
37 def list_ovn_agent_opts():
38 return [
39 ('vpnagent',
40 neutron_vpnaas.services.vpn.ovn_agent.VPN_AGENT_OPTS),
41 ('ovs',
42 neutron_vpnaas.services.vpn.ovn_agent.OVS_OPTS),
43 ('ovn',
44 neutron.conf.plugins.ml2.drivers.ovn.ovn_conf.ovn_opts),
45 ('ipsec',
46 neutron_vpnaas.services.vpn.device_drivers.ipsec.ipsec_opts),
47 ('strongswan',
48 neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.
49 strongswan_opts),
50 ('pluto',
51 neutron_vpnaas.services.vpn.device_drivers.ipsec.pluto_opts)
52 ]
53
54
55 def list_opts():
56 return [
57 ('service_providers',
58 neutron.services.provider_configuration.serviceprovider_opts),
59 ('',
60 vpn_agentschedulers_db.VPN_AGENTS_SCHEDULER_OPTS)
61 ]