#    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 neutron.i18n import _

df_opts = [
    cfg.StrOpt('remote_db_ip',
               default='127.0.0.1',
               help=_('The remote db server ip address')),
    cfg.IntOpt('remote_db_port',
               default=4001,
               help=_('The remote db server port')),
    cfg.StrOpt('nb_db_class',
               default='dragonflow.db.drivers.etcd_db_driver.EtcdDbDriver',
               help=_('The driver class for the NB DB driver')),
    cfg.StrOpt('local_ip',
               default='127.0.0.1',
               help=_('Local host IP')),
    cfg.StrOpt('tunnel_type',
               default='geneve',
               help=_('The encapsulation type for the tunnel')),
    cfg.StrOpt('apps_list',
               default='l2_app.L2App,l3_app.L3App',
               help=_('List of openflow applications classes to load')),
]

#    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 neutron.i18n import _

df_opts = [
    cfg.StrOpt('remote_db_ip',
               default='127.0.0.1',
               help=_('The remote db server ip address')),
    cfg.PortOpt('remote_db_port',
                default=4001,
                help=_('The remote db server port')),
    cfg.StrOpt('nb_db_class',
               default='dragonflow.db.drivers.etcd_db_driver.EtcdDbDriver',
               help=_('The driver class for the NB DB driver')),
    cfg.StrOpt('local_ip',
               default='127.0.0.1',
               help=_('Local host IP')),
    cfg.StrOpt('tunnel_type',
               default='geneve',
               help=_('The encapsulation type for the tunnel')),
    cfg.StrOpt('apps_list',
               default='l2_app.L2App,l3_app.L3App',
               help=_('List of openflow applications classes to load')),
]

Use oslo_config new type PortOpt for port options
Use oslo_config new type PortOpt for port options

The oslo_config library provides new type PortOpt to validate the
range of port now.

Change-Id: Ifbfee642309fec668e363555c2abd103c1f8c4af
ref: https://github.com/openstack/oslo.config/blob/2.6.0/oslo_config/cfg.py#L1114
Depends-On: Ida294b05a85f5bef587b761fcd03c28c7a3474d8
