"Fossies" - the Fresh Open Source Software Archive

Member "zun-4.0.0/zun/conf/neutron_client.py" (16 Oct 2019, 1859 Bytes) of package /linux/misc/openstack/zun-4.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "neutron_client.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.0.0_vs_4.0.0.

    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 from oslo_config import cfg
   14 
   15 
   16 neutron_group = cfg.OptGroup(name='neutron_client',
   17                              title='Options for the Neutron client')
   18 
   19 common_security_opts = [
   20     cfg.StrOpt('ca_file',
   21                help='Optional CA cert file to use in SSL connections.'),
   22     cfg.StrOpt('cert_file',
   23                help='Optional PEM-formatted certificate chain file.'),
   24     cfg.StrOpt('key_file',
   25                help='Optional PEM-formatted file that contains the '
   26                     'private key.'),
   27     cfg.BoolOpt('insecure',
   28                 default=False,
   29                 help="If set, then the server's certificate will not "
   30                      "be verified.")]
   31 
   32 neutron_client_opts = [
   33     cfg.StrOpt('region_name',
   34                help='Region in Identity service catalog to use for '
   35                     'communication with the OpenStack service.'),
   36     cfg.StrOpt('endpoint_type',
   37                default='publicURL',
   38                help='Type of endpoint in Identity service catalog to use '
   39                     'for communication with the OpenStack service.')]
   40 
   41 
   42 ALL_OPTS = (neutron_client_opts + common_security_opts)
   43 
   44 
   45 def register_opts(conf):
   46     conf.register_group(neutron_group)
   47     conf.register_opts(ALL_OPTS, group=neutron_group)
   48 
   49 
   50 def list_opts():
   51     return {neutron_group: ALL_OPTS}