Merge "Start using 'cliff.sphinxext'"
This commit is contained in:
commit
e0d7119c6d
File diff suppressed because it is too large
Load Diff
@ -34,6 +34,7 @@ extensions = ['sphinx.ext.autodoc',
|
|||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'openstackdocstheme',
|
'openstackdocstheme',
|
||||||
'stevedore.sphinxext',
|
'stevedore.sphinxext',
|
||||||
|
'cliff.sphinxext',
|
||||||
]
|
]
|
||||||
|
|
||||||
# openstackdocstheme options
|
# openstackdocstheme options
|
||||||
@ -269,3 +270,12 @@ texinfo_documents = [
|
|||||||
|
|
||||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||||
#texinfo_show_urls = 'footnote'
|
#texinfo_show_urls = 'footnote'
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for cliff.sphinxext plugin ---------------------------------------
|
||||||
|
|
||||||
|
autoprogram_cliff_application = 'openstack'
|
||||||
|
|
||||||
|
autoprogram_cliff_ignored = [
|
||||||
|
'--help', '--format', '--column', '--max-width', '--fit-width',
|
||||||
|
'--print-empty', '--prefix', '--noindent']
|
||||||
|
@ -394,10 +394,13 @@ class CreateServer(command.ShowOne):
|
|||||||
disk_group.add_argument(
|
disk_group.add_argument(
|
||||||
'--volume',
|
'--volume',
|
||||||
metavar='<volume>',
|
metavar='<volume>',
|
||||||
help=_(
|
help=_('Create server using this volume as the boot disk (name '
|
||||||
'Create server using this volume as the boot disk '
|
'or ID).\n'
|
||||||
'(name or ID)'
|
'This option automatically creates a block device mapping '
|
||||||
),
|
'with a boot index of 0. On many hypervisors (libvirt/kvm '
|
||||||
|
'for example) this will be device vda. Do not create a '
|
||||||
|
'duplicate mapping using --block-device-mapping for this '
|
||||||
|
'volume.'),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--flavor',
|
'--flavor',
|
||||||
@ -489,8 +492,11 @@ class CreateServer(command.ShowOne):
|
|||||||
type=_prefix_checked_value('net-id='),
|
type=_prefix_checked_value('net-id='),
|
||||||
help=_("Create a NIC on the server and connect it to network. "
|
help=_("Create a NIC on the server and connect it to network. "
|
||||||
"Specify option multiple times to create multiple NICs. "
|
"Specify option multiple times to create multiple NICs. "
|
||||||
"For more options on NICs see --nic parameter. "
|
"This is a wrapper for the '--nic net-id=<network>' "
|
||||||
"network: attach NIC to this network "),
|
"parameter that provides simple syntax for the standard "
|
||||||
|
"use case of connecting a new server to a given network. "
|
||||||
|
"For more advanced use cases, refer to the '--nic' "
|
||||||
|
"parameter."),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--port',
|
'--port',
|
||||||
@ -500,8 +506,10 @@ class CreateServer(command.ShowOne):
|
|||||||
type=_prefix_checked_value('port-id='),
|
type=_prefix_checked_value('port-id='),
|
||||||
help=_("Create a NIC on the server and connect it to port. "
|
help=_("Create a NIC on the server and connect it to port. "
|
||||||
"Specify option multiple times to create multiple NICs. "
|
"Specify option multiple times to create multiple NICs. "
|
||||||
"For more options on NICs see --nic parameter. "
|
"This is a wrapper for the '--nic port-id=<pord>' "
|
||||||
"port: attach NIC this port "),
|
"parameter that provides simple syntax for the standard "
|
||||||
|
"use case of connecting a new server to a given port. For "
|
||||||
|
"more advanced use cases, refer to the '--nic' parameter."),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--hint',
|
'--hint',
|
||||||
@ -1591,7 +1599,13 @@ class RescueServer(command.ShowOne):
|
|||||||
|
|
||||||
|
|
||||||
class ResizeServer(command.Command):
|
class ResizeServer(command.Command):
|
||||||
_description = _("Scale server to a new flavor")
|
_description = _("""Scale server to a new flavor.
|
||||||
|
|
||||||
|
A resize operation is implemented by creating a new server and copying the
|
||||||
|
contents of the original disk into a new one. It is also a two-step process for
|
||||||
|
the user: the first is to perform the resize, the second is to either confirm
|
||||||
|
(verify) success and release the old server, or to declare a revert to release
|
||||||
|
the new server and restart the old one.""")
|
||||||
|
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super(ResizeServer, self).get_parser(prog_name)
|
parser = super(ResizeServer, self).get_parser(prog_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user