<reponame>nuagenetworks/nuage-tempest-plugin<gh_stars>1-10
# Copyright 2015
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.

from oslo_config import cfg

from nuage_tempest_plugin.lib.utils import constants


nuage_vsd_group = cfg.OptGroup(name='nuage',
                               title='Nuage VSD config options')

NuageVsdGroup = [
    cfg.StrOpt('nuage_vsd_server',
               default="localhost:8443",
               help="Nuage vsd server"),
    cfg.StrOpt('nuage_default_netpartition',
               default="OpenStackDefaultNetPartition",
               help="default nuage netpartition name"),
    cfg.StrOpt('nuage_auth_resource',
               default="/me",
               help="api path to authenticate for nuage vsd"),
    cfg.StrOpt('nuage_base_uri',
               default="/nuage/api/v5_0",
               help="base nuage vsd api url"),
    cfg.StrOpt('nuage_vsd_user',
               default='csproot',
               help="nuage vsd user"),
    cfg.StrOpt('nuage_vsd_password',
               default='<PASSWORD>',
               help='nuage vsd user password'),
    cfg.StrOpt('nuage_vsd_org',
               default='csp',
               help='nuage vsd organization name'),
    cfg.StrOpt('nuage_cms_id', default=None,
               help=('ID of a Cloud Management System on the VSD which '
                     'identifies this OpenStack instance'))
]

nuage_sut_group = cfg.OptGroup(name='nuage_sut',
                               title='Nuage SUT config options')

NuageSutGroup = [
    cfg.StrOpt('openstack_version',
               default='newton',
               choices=['kilo', 'liberty', 'mitaka', 'newton', 'ocata', 'pike',
                        'queens', 'rocky', 'stein', 'master'],
               help="The mode for controlling services on controller node."),
    cfg.StrOpt('nuage_baremetal_driver',
               default=constants.BAREMETAL_DRIVER_BRIDGE,
               choices=[constants.BAREMETAL_DRIVER_BRIDGE,
                        constants.BAREMETAL_DRIVER_HOST],
               help="The driver being used by the baremetal mechanism "
                    "driver."),
    cfg.IntOpt('nuage_baremetal_segmentation_id',
               default=4095,
               help="The segmentation ID which the baremetal mechanism "
                    "driver will use."),
    cfg.StrOpt('release',
               default='5.2',
               help="The release of the sut. "
                    "Valid examples: 3.2R1, 4.0, 4.0r2"),
    cfg.BoolOpt('console_access_to_vm',
                default=False,
                help='Whether console access to vm is enabled in topology.'),
    cfg.IntOpt('api_workers',
               default=1,
               help='Number of neutron api workers deployed.'),
    cfg.StrOpt('nuage_pat_legacy',
               default='disabled',
               choices=['enabled', 'disabled'],
               help="Nuage_pat legacy mode enabled or disabled."),
    cfg.BoolOpt('image_is_advanced',
                default=False,
                help='Whether image supports advanced features like 8021q'),
    cfg.BoolOpt('nuage_sriov_allow_existing_flat_vlan',
                default=False,
                help='Set to true to enable driver to complete port '
                     'binding on a flat network, when corresponding'
                     'GW port has vlan 0 provisioned by external entity'),
]

# Copyright 2015
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.

from oslo_config import cfg

from nuage_tempest_plugin.lib.utils import constants


nuage_vsd_group = cfg.OptGroup(name='nuage',
                               title='Nuage VSD config options')

NuageVsdGroup = [
    cfg.StrOpt('nuage_vsd_server',
               default="localhost:8443",
               help="Nuage vsd server"),
    cfg.StrOpt('nuage_default_netpartition',
               default="OpenStackDefaultNetPartition",
               help="default nuage netpartition name"),
    cfg.StrOpt('nuage_auth_resource',
               default="/me",
               help="api path to authenticate for nuage vsd"),
    cfg.StrOpt('nuage_base_uri',
               default="/nuage/api/v5_0",
               help="base nuage vsd api url"),
    cfg.StrOpt('nuage_vsd_user',
               default='csproot',
               help="nuage vsd user"),
    cfg.StrOpt('nuage_vsd_password',
               default='<PASSWORD>',
               help='nuage vsd user password'),
    cfg.StrOpt('nuage_vsd_org',
               default='csp',
               help='nuage vsd organization name'),
    cfg.StrOpt('nuage_cms_id', default=None,
               help=('ID of a Cloud Management System on the VSD which '
                     'identifies this OpenStack instance'))
]

nuage_sut_group = cfg.OptGroup(name='nuage_sut',
                               title='Nuage SUT config options')

NuageSutGroup = [
    cfg.StrOpt('openstack_version',
               default='newton',
               choices=['kilo', 'liberty', 'mitaka', 'newton', 'ocata', 'pike',
                        'queens', 'rocky', 'stein', 'master'],
               help="The mode for controlling services on controller node."),
    cfg.StrOpt('nuage_baremetal_driver',
               default=constants.BAREMETAL_DRIVER_BRIDGE,
               choices=[constants.BAREMETAL_DRIVER_BRIDGE,
                        constants.BAREMETAL_DRIVER_HOST],
               help="The driver being used by the baremetal mechanism "
                    "driver."),
    cfg.IntOpt('nuage_baremetal_segmentation_id',
               default=4095,
               help="The segmentation ID which the baremetal mechanism "
                    "driver will use."),
    cfg.StrOpt('release',
               default='5.2',
               help="The release of the sut. "
                    "Valid examples: 3.2R1, 4.0, 4.0r2"),
    cfg.BoolOpt('console_access_to_vm',
                default=False,
                help='Whether console access to vm is enabled in topology.'),
    cfg.IntOpt('api_workers',
               default=1,
               help='Number of neutron api workers deployed.'),
    cfg.StrOpt('nuage_pat_legacy',
               default='disabled',
               choices=['enabled', 'disabled'],
               help="Nuage_pat legacy mode enabled or disabled."),
    cfg.BoolOpt('image_is_advanced',
                default=False,
                help='Whether image supports advanced features like 8021q'),
    cfg.BoolOpt('nuage_sriov_allow_existing_flat_vlan',
                default=False,
                help='Set to true to enable driver to complete port '
                     'binding on a flat network, when corresponding'
                     'GW port has vlan 0 provisioned by external entity'),
]
# Copyright 2015 # All Rights Reserved. # #    Licensed under the Apache License, Version 2.0 (the "License"); you may #    not use this file except in compliance with the License. You may obtain #    a copy of the License at # #         http://www.apache.org/licenses/LICENSE-2.0 # #    Unless required by applicable law or agreed to in writing, software #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #    License for the specific language governing permissions and limitations #    under the License.