Skip to content

Commit 555dd70

Browse files
slcli hw documentation udpates
1 parent ba2ad90 commit 555dd70

20 files changed

+82
-11
lines changed

SoftLayer/CLI/hardware/edit.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@
1212
@click.command()
1313
@click.argument('identifier')
1414
@click.option('--domain', '-D', help="Domain portion of the FQDN")
15-
@click.option('--userfile', '-F', type=click.Path(exists=True, readable=True, resolve_path=True,
16-
help="Read userdata from file"))
15+
@click.option('--userfile', '-F', type=click.Path(exists=True, readable=True, resolve_path=True),
16+
help="Read userdata from file")
1717
@click.option('--tag', '-g', multiple=True,
1818
help="Tags to set or empty string to remove all")
1919
@click.option('--hostname', '-H', help="Host portion of the FQDN")
2020
@click.option('--userdata', '-u', help="User defined metadata string")
21-
@click.option('--public-speed', default=None,
22-
type=click.Choice(['0', '10', '100', '1000', '10000', '-1']
23-
help="Public port speed. -1 is best speed available"))
24-
@click.option('--private-speed', default=None,
25-
type=click.Choice(['0', '10', '100', '1000', '10000', '-1']
26-
help="Private port speed. -1 is best speed available"))
21+
@click.option('--public-speed', default=None, type=click.Choice(['0', '10', '100', '1000', '10000', '-1']),
22+
help="Public port speed. -1 is best speed available")
23+
@click.option('--private-speed', default=None, type=click.Choice(['0', '10', '100', '1000', '10000', '-1']),
24+
help="Private port speed. -1 is best speed available")
2725
@environment.pass_env
2826
def cli(env, identifier, domain, userfile, tag, hostname, userdata, public_speed, private_speed):
2927
"""Edit hardware details."""

docs/cli/hardware.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
.. click:: SoftLayer.CLI.hardware.list:cli
2-
:prog: slcli hw list
3-
:show-nested:
1+
.. _cli_hardware:
2+
3+
Interacting with Hardware
4+
==============================
5+
6+
7+
.. toctree::
8+
:maxdepth: 1
9+
:glob:
10+
11+
hardware/*
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. click:: SoftLayer.CLI.hardware.cancel_reasons:cli
2+
:prog: hw cancel-reasons
3+
:show-nested:

docs/cli/hardware/cancel.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. click:: SoftLayer.CLI.hardware.cancel:cli
2+
:prog: hw cancel
3+
:show-nested:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. click:: SoftLayer.CLI.hardware.create_options:cli
2+
:prog: hw create-options
3+
:show-nested:

docs/cli/hardware/create.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. click:: SoftLayer.CLI.hardware.create:cli
2+
:prog: hw create
3+
:show-nested:
4+
5+
6+
Provides some basic functionality to order a server. `slcli order` has a more full featured method of ordering servers. This command only supports the FAST_PROVISION type.

docs/cli/hardware/credentials.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. click:: SoftLayer.CLI.hardware.credentials:cli
2+
:prog: hw credentials
3+
:show-nested:

docs/cli/hardware/detail.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. click:: SoftLayer.CLI.hardware.detail:cli
2+
:prog: hw detail
3+
:show-nested:

docs/cli/hardware/edit.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. click:: SoftLayer.CLI.hardware.edit:cli
2+
:prog: hw edit
3+
:show-nested:
4+
5+
When setting port speed, use "-1" to indicate best possible configuration. Using 10/100/1000/10000 on a server with a redundant interface may result the interface entering a degraded state. See `setPublicNetworkInterfaceSpeed <http://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/setPublicNetworkInterfaceSpeed/>`_ for more information.

docs/cli/hardware/list.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. click:: SoftLayer.CLI.hardware.list:cli
2+
:prog: hw list
3+
:show-nested:

0 commit comments

Comments
 (0)