46 lines
2.0 KiB
Python
46 lines
2.0 KiB
Python
# Copyright 2019 Red Hat
|
|
#
|
|
# 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 __future__ import absolute_import
|
|
|
|
from oslo_config import cfg
|
|
|
|
|
|
def register_tobiko_options(conf):
|
|
conf.register_opts(
|
|
group=cfg.OptGroup('neutron'),
|
|
opts=[cfg.StrOpt('floating_network',
|
|
help="Network for creating floating IPs"),
|
|
cfg.StrOpt('ipv4_cidr',
|
|
default='10.100.0.0/16',
|
|
help="The CIDR block to allocate IPv4 subnets from"),
|
|
cfg.IntOpt('ipv4_prefixlen',
|
|
default=24,
|
|
help="The mask bits for IPv4 subnets"),
|
|
cfg.StrOpt('ipv6_cidr',
|
|
default='2003::/48',
|
|
help="The CIDR block to allocate IPv6 subnets from"),
|
|
cfg.IntOpt('ipv6_prefixlen',
|
|
default=64,
|
|
help="The mask bits for IPv6 subnets"),
|
|
cfg.IntOpt('custom_mtu_size',
|
|
default=1400,
|
|
help=("Customized maximum transfer unit size\n"
|
|
"Notes:\n"
|
|
" - MTU values as small as 1000 has been seen "
|
|
"breaking networking binding due to an "
|
|
"unknown cause.\n"
|
|
" - Too big MTU values (like greater than 1400)"
|
|
" may be refused during network creation")),
|
|
])
|