conf: Fix indentation of network

This lets us keep actual content changes separately.

Change-Id: Ic57eccb2d48fe36618830468e1ffe6c866e0309c
This commit is contained in:
Stephen Finucane 2016-11-09 15:06:54 +00:00
parent c3ac2a3f55
commit 059872e281

View File

@ -28,7 +28,7 @@ NOVA_NET_API = 'nova.network.api.API'
network_opts = [ network_opts = [
cfg.StrOpt("flat_network_bridge", cfg.StrOpt("flat_network_bridge",
help=""" help="""
This option determines the bridge used for simple network interfaces when no This option determines the bridge used for simple network interfaces when no
bridge is specified in the VM creation request. bridge is specified in the VM creation request.
@ -44,8 +44,8 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.StrOpt("flat_network_dns", cfg.StrOpt("flat_network_dns",
default="8.8.4.4", default="8.8.4.4",
help=""" help="""
This is the address of the DNS server for a simple network. If this option is This is the address of the DNS server for a simple network. If this option is
not specified, the default of '8.8.4.4' is used. not specified, the default of '8.8.4.4' is used.
@ -61,15 +61,15 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.BoolOpt("flat_injected", cfg.BoolOpt("flat_injected",
default=False, default=False,
help=""" help="""
This option determines whether the network setup information is injected into This option determines whether the network setup information is injected into
the VM before it is booted. While it was originally designed to be used only by the VM before it is booted. While it was originally designed to be used only by
nova-network, it is also used by the vmware and xenapi virt drivers to control nova-network, it is also used by the vmware and xenapi virt drivers to control
whether network information is injected into a VM. whether network information is injected into a VM.
"""), """),
cfg.StrOpt("flat_interface", cfg.StrOpt("flat_interface",
help=""" help="""
This option is the name of the virtual interface of the VM on which the bridge This option is the name of the virtual interface of the VM on which the bridge
will be built. While it was originally designed to be used only by will be built. While it was originally designed to be used only by
nova-network, it is also used by libvirt for the bridge interface name. nova-network, it is also used by libvirt for the bridge interface name.
@ -79,10 +79,10 @@ Possible values:
Any valid virtual interface name, such as 'eth0' Any valid virtual interface name, such as 'eth0'
"""), """),
cfg.IntOpt("vlan_start", cfg.IntOpt("vlan_start",
default=100, default=100,
min=1, min=1,
max=4094, max=4094,
help=""" help="""
This is the VLAN number used for private networks. Note that the when creating This is the VLAN number used for private networks. Note that the when creating
the networks, if the specified number has already been assigned, nova-network the networks, if the specified number has already been assigned, nova-network
will increment this number until it finds an available VLAN. will increment this number until it finds an available VLAN.
@ -102,7 +102,7 @@ Related options:
``network_manager``, ``use_neutron`` ``network_manager``, ``use_neutron``
"""), """),
cfg.StrOpt("vlan_interface", cfg.StrOpt("vlan_interface",
help=""" help="""
This option is the name of the virtual interface of the VM on which the VLAN This option is the name of the virtual interface of the VM on which the VLAN
bridge will be built. While it was originally designed to be used only by bridge will be built. While it was originally designed to be used only by
nova-network, it is also used by libvirt and xenapi for the bridge interface nova-network, it is also used by libvirt and xenapi for the bridge interface
@ -117,9 +117,9 @@ Possible values:
Any valid virtual interface name, such as 'eth0' Any valid virtual interface name, such as 'eth0'
"""), """),
cfg.IntOpt("num_networks", cfg.IntOpt("num_networks",
default=1, default=1,
min=1, min=1,
help=""" help="""
This option represents the number of networks to create if not explicitly This option represents the number of networks to create if not explicitly
specified when the network is created. The only time this is used is if a CIDR specified when the network is created. The only time this is used is if a CIDR
is specified, but an explicit network_size is not. In that case, the subnets is specified, but an explicit network_size is not. In that case, the subnets
@ -142,8 +142,8 @@ Related options:
``use_neutron``, ``network_size`` ``use_neutron``, ``network_size``
"""), """),
cfg.StrOpt("vpn_ip", cfg.StrOpt("vpn_ip",
default="$my_ip", default="$my_ip",
help=""" help="""
This is the public IP address for the cloudpipe VPN servers. It defaults to the This is the public IP address for the cloudpipe VPN servers. It defaults to the
IP address of the host. IP address of the host.
@ -161,8 +161,8 @@ Related options:
``network_manager``, ``use_neutron``, ``vpn_start`` ``network_manager``, ``use_neutron``, ``vpn_start``
"""), """),
cfg.PortOpt("vpn_start", cfg.PortOpt("vpn_start",
default=1000, default=1000,
help=""" help="""
This is the port number to use as the first VPN port for private networks. This is the port number to use as the first VPN port for private networks.
Please note that this option is only used when using nova-network instead of Please note that this option is only used when using nova-network instead of
@ -180,9 +180,9 @@ Related options:
``use_neutron``, ``vpn_ip``, ``network_manager`` ``use_neutron``, ``vpn_ip``, ``network_manager``
"""), """),
cfg.IntOpt("network_size", cfg.IntOpt("network_size",
default=256, default=256,
min=1, min=1,
help=""" help="""
This option determines the number of addresses in each private subnet. This option determines the number of addresses in each private subnet.
Please note that this option is only used when using nova-network instead of Please note that this option is only used when using nova-network instead of
@ -199,8 +199,8 @@ Related options:
``use_neutron``, ``num_networks`` ``use_neutron``, ``num_networks``
"""), """),
cfg.StrOpt("fixed_range_v6", cfg.StrOpt("fixed_range_v6",
default="fd00::/48", default="fd00::/48",
help=""" help="""
This option determines the fixed IPv6 address block when creating a network. This option determines the fixed IPv6 address block when creating a network.
Please note that this option is only used when using nova-network instead of Please note that this option is only used when using nova-network instead of
@ -215,7 +215,7 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.StrOpt("gateway", cfg.StrOpt("gateway",
help=""" help="""
This is the default IPv4 gateway. It is used only in the testing suite. This is the default IPv4 gateway. It is used only in the testing suite.
Please note that this option is only used when using nova-network instead of Please note that this option is only used when using nova-network instead of
@ -230,7 +230,7 @@ Related options:
``use_neutron``, ``gateway_v6`` ``use_neutron``, ``gateway_v6``
"""), """),
cfg.StrOpt("gateway_v6", cfg.StrOpt("gateway_v6",
help=""" help="""
This is the default IPv6 gateway. It is used only in the testing suite. This is the default IPv6 gateway. It is used only in the testing suite.
Please note that this option is only used when using nova-network instead of Please note that this option is only used when using nova-network instead of
@ -245,9 +245,9 @@ Related options:
``use_neutron``, ``gateway`` ``use_neutron``, ``gateway``
"""), """),
cfg.IntOpt("cnt_vpn_clients", cfg.IntOpt("cnt_vpn_clients",
default=0, default=0,
min=0, min=0,
help=""" help="""
This option represents the number of IP addresses to reserve at the top of the This option represents the number of IP addresses to reserve at the top of the
address range for VPN clients. It also will be ignored if the configuration address range for VPN clients. It also will be ignored if the configuration
option for `network_manager` is not set to the default of option for `network_manager` is not set to the default of
@ -262,9 +262,9 @@ Related options:
``use_neutron``, ``network_manager`` ``use_neutron``, ``network_manager``
"""), """),
cfg.IntOpt("fixed_ip_disassociate_timeout", cfg.IntOpt("fixed_ip_disassociate_timeout",
default=600, default=600,
min=0, min=0,
help=""" help="""
This is the number of seconds to wait before disassociating a deallocated fixed This is the number of seconds to wait before disassociating a deallocated fixed
IP address. This is only used with the nova-network service, and has no effect IP address. This is only used with the nova-network service, and has no effect
when using neutron for networking. when using neutron for networking.
@ -278,9 +278,9 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.IntOpt("create_unique_mac_address_attempts", cfg.IntOpt("create_unique_mac_address_attempts",
default=5, default=5,
min=1, min=1,
help=""" help="""
This option determines how many times nova-network will attempt to create a This option determines how many times nova-network will attempt to create a
unique MAC address before giving up and raising a unique MAC address before giving up and raising a
`VirtualInterfaceMacAddressException` error. `VirtualInterfaceMacAddressException` error.
@ -294,8 +294,8 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.BoolOpt("teardown_unused_network_gateway", cfg.BoolOpt("teardown_unused_network_gateway",
default=False, default=False,
help=""" help="""
Determines whether unused gateway devices, both VLAN and bridge, are deleted if Determines whether unused gateway devices, both VLAN and bridge, are deleted if
the network is in nova-network VLAN mode and is multi-hosted. the network is in nova-network VLAN mode and is multi-hosted.
@ -304,8 +304,8 @@ Related options:
``use_neutron``, ``vpn_ip``, ``fake_network`` ``use_neutron``, ``vpn_ip``, ``fake_network``
"""), """),
cfg.BoolOpt("force_dhcp_release", cfg.BoolOpt("force_dhcp_release",
default=True, default=True,
help=""" help="""
When this option is True, a call is made to release the DHCP for the instance When this option is True, a call is made to release the DHCP for the instance
when that instance is terminated. when that instance is terminated.
@ -314,8 +314,8 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.BoolOpt("update_dns_entries", cfg.BoolOpt("update_dns_entries",
default=False, default=False,
help=""" help="""
When this option is True, whenever a DNS entry must be updated, a fanout cast When this option is True, whenever a DNS entry must be updated, a fanout cast
message is sent to all network hosts to update their DNS entries in multi-host message is sent to all network hosts to update their DNS entries in multi-host
mode. mode.
@ -325,9 +325,9 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.IntOpt("dns_update_periodic_interval", cfg.IntOpt("dns_update_periodic_interval",
default=-1, default=-1,
min=-1, min=-1,
help=""" help="""
This option determines the time, in seconds, to wait between refreshing DNS This option determines the time, in seconds, to wait between refreshing DNS
entries for the network. entries for the network.
@ -341,8 +341,8 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.StrOpt("dhcp_domain", cfg.StrOpt("dhcp_domain",
default="novalocal", default="novalocal",
help=""" help="""
This option allows you to specify the domain for the DHCP server. This option allows you to specify the domain for the DHCP server.
Possible values: Possible values:
@ -354,8 +354,8 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.StrOpt("l3_lib", cfg.StrOpt("l3_lib",
default="nova.network.l3.LinuxNetL3", default="nova.network.l3.LinuxNetL3",
help=""" help="""
This option allows you to specify the L3 management library to be used. This option allows you to specify the L3 management library to be used.
Possible values: Possible values:
@ -368,10 +368,10 @@ Related options:
``use_neutron`` ``use_neutron``
"""), """),
cfg.BoolOpt("share_dhcp_address", cfg.BoolOpt("share_dhcp_address",
default=False, default=False,
deprecated_for_removal=True, deprecated_for_removal=True,
deprecated_since='2014.2', deprecated_since='2014.2',
help=""" help="""
THIS VALUE SHOULD BE SET WHEN CREATING THE NETWORK. THIS VALUE SHOULD BE SET WHEN CREATING THE NETWORK.
If True in multi_host mode, all compute hosts share the same dhcp address. The If True in multi_host mode, all compute hosts share the same dhcp address. The
@ -384,16 +384,16 @@ an explicit value should be passed to 'create_networks()' as a keyword argument
with the name 'share_address'. with the name 'share_address'.
"""), """),
cfg.BoolOpt('use_neutron', cfg.BoolOpt('use_neutron',
default=False, default=False,
help="Whether to use Neutron or Nova Network as the back end " help="Whether to use Neutron or Nova Network as the back end "
"for networking. Defaults to False (indicating Nova " "for networking. Defaults to False (indicating Nova "
"network).Set to True to use neutron.") "network).Set to True to use neutron.")
] ]
linux_net_opts = [ linux_net_opts = [
cfg.MultiStrOpt('dhcpbridge_flagfile', cfg.MultiStrOpt('dhcpbridge_flagfile',
default=['/etc/nova/nova-dhcpbridge.conf'], default=['/etc/nova/nova-dhcpbridge.conf'],
help=""" help="""
This option is a list of full paths to one or more configuration files for This option is a list of full paths to one or more configuration files for
dhcpbridge. In most cases the default path of '/etc/nova/nova-dhcpbridge.conf' dhcpbridge. In most cases the default path of '/etc/nova/nova-dhcpbridge.conf'
should be sufficient, but if you have special needs for configuring dhcpbridge, should be sufficient, but if you have special needs for configuring dhcpbridge,
@ -405,8 +405,8 @@ Possible values
configuration file. configuration file.
"""), """),
cfg.StrOpt('networks_path', cfg.StrOpt('networks_path',
default=paths.state_path_def('networks'), default=paths.state_path_def('networks'),
help=""" help="""
The location where the network configuration files will be kept. The default is The location where the network configuration files will be kept. The default is
the 'networks' directory off of the location where nova's Python module is the 'networks' directory off of the location where nova's Python module is
installed. installed.
@ -416,8 +416,8 @@ Possible values
A string containing the full path to the desired configuration directory A string containing the full path to the desired configuration directory
"""), """),
cfg.StrOpt('public_interface', cfg.StrOpt('public_interface',
default='eth0', default='eth0',
help=""" help="""
This is the name of the network interface for public IP addresses. The default This is the name of the network interface for public IP addresses. The default
is 'eth0'. is 'eth0'.
@ -426,8 +426,8 @@ Possible values:
Any string representing a network interface name Any string representing a network interface name
"""), """),
cfg.StrOpt('dhcpbridge', cfg.StrOpt('dhcpbridge',
default=paths.bindir_def('nova-dhcpbridge'), default=paths.bindir_def('nova-dhcpbridge'),
help=""" help="""
The location of the binary nova-dhcpbridge. By default it is the binary named The location of the binary nova-dhcpbridge. By default it is the binary named
'nova-dhcpbridge' that is installed with all the other nova binaries. 'nova-dhcpbridge' that is installed with all the other nova binaries.
@ -436,8 +436,8 @@ Possible values:
Any string representing the full path to the binary for dhcpbridge Any string representing the full path to the binary for dhcpbridge
"""), """),
cfg.StrOpt('routing_source_ip', cfg.StrOpt('routing_source_ip',
default='$my_ip', default='$my_ip',
help=""" help="""
This is the public IP address of the network host. It is used when creating a This is the public IP address of the network host. It is used when creating a
SNAT rule. SNAT rule.
@ -450,9 +450,9 @@ Related options:
force_snat_range force_snat_range
"""), """),
cfg.IntOpt('dhcp_lease_time', cfg.IntOpt('dhcp_lease_time',
default=86400, default=86400,
min=1, min=1,
help=""" help="""
The lifetime of a DHCP lease, in seconds. The default is 86400 (one day). The lifetime of a DHCP lease, in seconds. The default is 86400 (one day).
Possible values: Possible values:
@ -478,8 +478,8 @@ Related options:
use_network_dns_servers use_network_dns_servers
"""), """),
cfg.BoolOpt("use_network_dns_servers", cfg.BoolOpt("use_network_dns_servers",
default=False, default=False,
help=""" help="""
When this option is set to True, the dns1 and dns2 servers for the network When this option is set to True, the dns1 and dns2 servers for the network
specified by the user on boot will be used for DNS, as well as any specified in specified by the user on boot will be used for DNS, as well as any specified in
the `dns_server` option. the `dns_server` option.
@ -489,8 +489,8 @@ Related options:
dns_server dns_server
"""), """),
cfg.ListOpt("dmz_cidr", cfg.ListOpt("dmz_cidr",
default=[], default=[],
help=""" help="""
This option is a list of zero or more IP address ranges in your network's DMZ This option is a list of zero or more IP address ranges in your network's DMZ
that should be accepted. that should be accepted.
@ -499,8 +499,8 @@ Possible values:
A list of strings, each of which should be a valid CIDR. A list of strings, each of which should be a valid CIDR.
"""), """),
cfg.MultiStrOpt("force_snat_range", cfg.MultiStrOpt("force_snat_range",
default=[], default=[],
help=""" help="""
This is a list of zero or more IP ranges that traffic from the This is a list of zero or more IP ranges that traffic from the
`routing_source_ip` will be SNATted to. If the list is empty, then no SNAT `routing_source_ip` will be SNATted to. If the list is empty, then no SNAT
rules are created. rules are created.
@ -514,8 +514,8 @@ Related options:
routing_source_ip routing_source_ip
"""), """),
cfg.StrOpt("dnsmasq_config_file", cfg.StrOpt("dnsmasq_config_file",
default="", default="",
help=""" help="""
The path to the custom dnsmasq configuration file, if any. The path to the custom dnsmasq configuration file, if any.
Possible values: Possible values:
@ -524,8 +524,8 @@ Possible values:
custom dnsmasq configuration file. custom dnsmasq configuration file.
"""), """),
cfg.StrOpt("linuxnet_interface_driver", cfg.StrOpt("linuxnet_interface_driver",
default="nova.network.linux_net.LinuxBridgeInterfaceDriver", default="nova.network.linux_net.LinuxBridgeInterfaceDriver",
help=""" help="""
This is the class used as the ethernet device driver for linuxnet bridge This is the class used as the ethernet device driver for linuxnet bridge
operations. The default value should be all you need for most cases, but if you operations. The default value should be all you need for most cases, but if you
wish to use a customized class, set this option to the full dot-separated wish to use a customized class, set this option to the full dot-separated
@ -536,8 +536,8 @@ Possible values:
Any string representing a dot-separated class path that Nova can import. Any string representing a dot-separated class path that Nova can import.
"""), """),
cfg.StrOpt("linuxnet_ovs_integration_bridge", cfg.StrOpt("linuxnet_ovs_integration_bridge",
default="br-int", default="br-int",
help=""" help="""
The name of the Open vSwitch bridge that is used with linuxnet when connecting The name of the Open vSwitch bridge that is used with linuxnet when connecting
with Open vSwitch." with Open vSwitch."
@ -546,8 +546,8 @@ Possible values:
Any string representing a valid bridge name. Any string representing a valid bridge name.
"""), """),
cfg.BoolOpt("send_arp_for_ha", cfg.BoolOpt("send_arp_for_ha",
default=False, default=False,
help=""" help="""
When True, when a device starts up, and upon binding floating IP addresses, arp When True, when a device starts up, and upon binding floating IP addresses, arp
messages will be sent to ensure that the arp caches on the compute hosts are messages will be sent to ensure that the arp caches on the compute hosts are
up-to-date. up-to-date.
@ -557,8 +557,8 @@ Related options:
send_arp_for_ha_count send_arp_for_ha_count
"""), """),
cfg.IntOpt("send_arp_for_ha_count", cfg.IntOpt("send_arp_for_ha_count",
default=3, default=3,
help=""" help="""
When arp messages are configured to be sent, they will be sent with the count When arp messages are configured to be sent, they will be sent with the count
set to the value of this option. Of course, if this is set to zero, no arp set to the value of this option. Of course, if this is set to zero, no arp
messages will be sent. messages will be sent.
@ -572,14 +572,14 @@ Related options:
send_arp_for_ha send_arp_for_ha
"""), """),
cfg.BoolOpt("use_single_default_gateway", cfg.BoolOpt("use_single_default_gateway",
default=False, default=False,
help=""" help="""
When set to True, only the firt nic of a VM will get its default gateway from When set to True, only the firt nic of a VM will get its default gateway from
the DHCP server. the DHCP server.
"""), """),
cfg.MultiStrOpt("forward_bridge_interface", cfg.MultiStrOpt("forward_bridge_interface",
default=["all"], default=["all"],
help=""" help="""
One or more interfaces that bridges can forward traffic to. If any of the items One or more interfaces that bridges can forward traffic to. If any of the items
in this list is the special keyword 'all', then all traffic will be forwarded. in this list is the special keyword 'all', then all traffic will be forwarded.
@ -588,8 +588,8 @@ Possible values:
A list of zero or more interface names, or the word 'all'. A list of zero or more interface names, or the word 'all'.
"""), """),
cfg.StrOpt("metadata_host", cfg.StrOpt("metadata_host",
default="$my_ip", default="$my_ip",
help=""" help="""
This option determines the IP address for the network metadata API server. This option determines the IP address for the network metadata API server.
Possible values: Possible values:
@ -601,8 +601,8 @@ Related options:
* metadata_port * metadata_port
"""), """),
cfg.PortOpt("metadata_port", cfg.PortOpt("metadata_port",
default=8775, default=8775,
help=""" help="""
This option determines the port used for the metadata API server. This option determines the port used for the metadata API server.
Related options: Related options:
@ -610,8 +610,8 @@ Related options:
* metadata_host * metadata_host
"""), """),
cfg.StrOpt("iptables_top_regex", cfg.StrOpt("iptables_top_regex",
default="", default="",
help=""" help="""
This expression, if defined, will select any matching iptables rules and place This expression, if defined, will select any matching iptables rules and place
them at the top when applying metadata changes to the rules. them at the top when applying metadata changes to the rules.
@ -624,8 +624,8 @@ Related options:
* iptables_bottom_regex * iptables_bottom_regex
"""), """),
cfg.StrOpt("iptables_bottom_regex", cfg.StrOpt("iptables_bottom_regex",
default="", default="",
help=""" help="""
This expression, if defined, will select any matching iptables rules and place This expression, if defined, will select any matching iptables rules and place
them at the bottom when applying metadata changes to the rules. them at the bottom when applying metadata changes to the rules.
@ -638,8 +638,8 @@ Related options:
* iptables_top_regex * iptables_top_regex
"""), """),
cfg.StrOpt("iptables_drop_action", cfg.StrOpt("iptables_drop_action",
default="DROP", default="DROP",
help=""" help="""
By default, packets that do not pass the firewall are DROPped. In many cases, By default, packets that do not pass the firewall are DROPped. In many cases,
though, an operator may find it more useful to change this from DROP to REJECT, though, an operator may find it more useful to change this from DROP to REJECT,
so that the user issuing those packets may have a better idea as to what's so that the user issuing those packets may have a better idea as to what's
@ -650,9 +650,9 @@ Possible values:
* A string representing an iptables chain. The default is DROP. * A string representing an iptables chain. The default is DROP.
"""), """),
cfg.IntOpt("ovs_vsctl_timeout", cfg.IntOpt("ovs_vsctl_timeout",
default=120, default=120,
min=0, min=0,
help=""" help="""
This option represents the period of time, in seconds, that the ovs_vsctl calls This option represents the period of time, in seconds, that the ovs_vsctl calls
will wait for a response from the database before timing out. A setting of 0 will wait for a response from the database before timing out. A setting of 0
means that the utility should wait forever for a response. means that the utility should wait forever for a response.
@ -663,15 +663,15 @@ Possible values:
calls should wait forever for a response. calls should wait forever for a response.
"""), """),
cfg.BoolOpt("fake_network", cfg.BoolOpt("fake_network",
default=False, default=False,
help=""" help="""
This option is used mainly in testing to avoid calls to the underlying network This option is used mainly in testing to avoid calls to the underlying network
utilities. utilities.
"""), """),
cfg.IntOpt("ebtables_exec_attempts", cfg.IntOpt("ebtables_exec_attempts",
default=3, default=3,
min=1, min=1,
help=""" help="""
This option determines the number of times to retry ebtables commands before This option determines the number of times to retry ebtables commands before
giving up. The minimum number of retries is 1. giving up. The minimum number of retries is 1.
@ -684,8 +684,8 @@ Related options:
* ebtables_retry_interval * ebtables_retry_interval
"""), """),
cfg.FloatOpt("ebtables_retry_interval", cfg.FloatOpt("ebtables_retry_interval",
default=1.0, default=1.0,
help=""" help="""
This option determines the time, in seconds, that the system will sleep in This option determines the time, in seconds, that the system will sleep in
between ebtables retries. Note that each successive retry waits a multiple of between ebtables retries. Note that each successive retry waits a multiple of
this value, so for example, if this is set to the default of 1.0 seconds, and this value, so for example, if this is set to the default of 1.0 seconds, and
@ -707,63 +707,63 @@ Related options:
ldap_dns_opts = [ ldap_dns_opts = [
cfg.StrOpt('ldap_dns_url', cfg.StrOpt('ldap_dns_url',
default='ldap://ldap.example.com:389', default='ldap://ldap.example.com:389',
help='URL for LDAP server which will store DNS entries'), help='URL for LDAP server which will store DNS entries'),
cfg.StrOpt('ldap_dns_user', cfg.StrOpt('ldap_dns_user',
default='uid=admin,ou=people,dc=example,dc=org', default='uid=admin,ou=people,dc=example,dc=org',
help='User for LDAP DNS'), help='User for LDAP DNS'),
cfg.StrOpt('ldap_dns_password', cfg.StrOpt('ldap_dns_password',
default='password', default='password',
help='Password for LDAP DNS', help='Password for LDAP DNS',
secret=True), secret=True),
cfg.StrOpt('ldap_dns_soa_hostmaster', cfg.StrOpt('ldap_dns_soa_hostmaster',
default='hostmaster@example.org', default='hostmaster@example.org',
help='Hostmaster for LDAP DNS driver Statement of Authority'), help='Hostmaster for LDAP DNS driver Statement of Authority'),
cfg.MultiStrOpt('ldap_dns_servers', cfg.MultiStrOpt('ldap_dns_servers',
default=['dns.example.org'], default=['dns.example.org'],
help='DNS Servers for LDAP DNS driver'), help='DNS Servers for LDAP DNS driver'),
cfg.StrOpt('ldap_dns_base_dn', cfg.StrOpt('ldap_dns_base_dn',
default='ou=hosts,dc=example,dc=org', default='ou=hosts,dc=example,dc=org',
help='Base DN for DNS entries in LDAP'), help='Base DN for DNS entries in LDAP'),
cfg.IntOpt('ldap_dns_soa_refresh', cfg.IntOpt('ldap_dns_soa_refresh',
default=1800, default=1800,
help='Refresh interval (in seconds) for LDAP DNS driver ' help='Refresh interval (in seconds) for LDAP DNS driver '
'Statement of Authority'), 'Statement of Authority'),
cfg.IntOpt('ldap_dns_soa_retry', cfg.IntOpt('ldap_dns_soa_retry',
default=3600, default=3600,
help='Retry interval (in seconds) for LDAP DNS driver ' help='Retry interval (in seconds) for LDAP DNS driver '
'Statement of Authority'), 'Statement of Authority'),
cfg.IntOpt('ldap_dns_soa_expiry', cfg.IntOpt('ldap_dns_soa_expiry',
default=86400, default=86400,
help='Expiry interval (in seconds) for LDAP DNS driver ' help='Expiry interval (in seconds) for LDAP DNS driver '
'Statement of Authority'), 'Statement of Authority'),
cfg.IntOpt('ldap_dns_soa_minimum', cfg.IntOpt('ldap_dns_soa_minimum',
default=7200, default=7200,
help='Minimum interval (in seconds) for LDAP DNS driver ' help='Minimum interval (in seconds) for LDAP DNS driver '
'Statement of Authority'), 'Statement of Authority'),
] ]
driver_opts = [ driver_opts = [
cfg.StrOpt('network_driver', cfg.StrOpt('network_driver',
default='nova.network.linux_net', default='nova.network.linux_net',
help='Driver to use for network creation'), help='Driver to use for network creation'),
] ]
rpcapi_opts = [ rpcapi_opts = [
cfg.StrOpt('network_topic', cfg.StrOpt('network_topic',
default='network', default='network',
deprecated_for_removal=True, deprecated_for_removal=True,
deprecated_since='15.0.0', deprecated_since='15.0.0',
deprecated_reason=""" deprecated_reason="""
There is no need to let users choose the RPC topic for all services - there There is no need to let users choose the RPC topic for all services - there
is little gain from this. Furthermore, it makes it really easy to break Nova is little gain from this. Furthermore, it makes it really easy to break Nova
by using this option. by using this option.
""", """,
help='The topic network nodes listen on'), help='The topic network nodes listen on'),
cfg.BoolOpt('multi_host', cfg.BoolOpt('multi_host',
default=False, default=False,
help='Default value for multi_host in networks. Also, if set, ' help='Default value for multi_host in networks. Also, if set, '
'some rpc network calls will be sent directly to host.'), 'some rpc network calls will be sent directly to host.'),
] ]
ALL_DEFAULT_OPTS = (linux_net_opts + network_opts + ldap_dns_opts ALL_DEFAULT_OPTS = (linux_net_opts + network_opts + ldap_dns_opts