# Copyright (c) 2013 Intel, Inc.
# Copyright (c) 2013 OpenStack Foundation
# 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

availability_zone_opts = [
    cfg.StrOpt('internal_service_availability_zone',
        default='internal',
        help='The availability_zone to show internal services under'),
    cfg.StrOpt('default_availability_zone',
        default='nova',
        help='Default compute node availability_zone'),
]


def register_opts(conf):
    conf.register_opts(availability_zone_opts)


def list_opts():
    return {'DEFAULT': availability_zone_opts}

@@ -820,10 +820,47 @@
 elp=
-'T
+%22%22%22%0AThis option specifies the name of t
 he a
@@ -874,46 +874,382 @@
 lity
-_
+ 
 zone 
-to show internal services under'
+for the%0Ainternal services. Services like nova-scheduler, nova-network,%0Anova-conductor are internal services. These services will appear in%0Atheir own internal availability_zone.%0A%0APossible values:%0A%0A    * Any string representing an availability zone name%0A    * 'internal' is the default value%0A%0AServices that use this:%0A%0A    * %60%60nova-api%60%60%0A%0ARelated options:%0A%0A    * None%0A%22%22%22
 ),%0A 
@@ -1328,17 +1328,20 @@
    help=
-'
+%22%22%22%0A
 Default 
@@ -1374,11 +1374,406 @@
 zone
-'),
+.%0A%0AThis option determines the availability zone to be used when it is not%0Aspecified in the VM creation request. If this option is not set,%0Athe default availability zone 'nova' is used.%0A%0APossible values:%0A%0A    * Any string representing an availability zone name%0A    * 'nova' is the default value%0A%0AServices that use this:%0A%0A    * %60%60nova-api%60%60%0A    * %60%60nova-scheduler%60%60%0A%0ARelated options:%0A%0A    * None%0A%22%22%22)
 %0A%5D%0A%0A

Improve help text for availability zones options