Skip to content

Commit ce5cd07

Browse files
Merge pull request #2080 from ramkishor-ch/issue_2043
Added example in slcli loadbal health, slcli loadbal l7policies, slcli loadbal l7pool-add
2 parents c3938a2 + 14e08e8 commit ce5cd07

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

SoftLayer/CLI/loadbal/health.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
@click.option('--url', '-u', help="Url path for HTTP/HTTPS checks.")
1818
@environment.pass_env
1919
def cli(env, identifier, uuid, interval, retry, timeout, url):
20-
"""Manage LBaaS health checks."""
20+
"""Manage LBaaS health checks.
21+
22+
Example::
23+
24+
slcli loadbal health-edit (--lb-id LOADBAL_ID) (--health-uuid HEALTH_CHECK_UUID) [-i, --interval INTERVAL]
25+
[-r, --retry RETRY] [-t, --timeout TIMEOUT] [-u, --url URL]
26+
"""
2127

2228
if not any([interval, retry, timeout, url]):
2329
raise exceptions.ArgumentError("Specify either interval, retry, timeout, url")

SoftLayer/CLI/loadbal/layer7_policy_list.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
help="Front-end Protocol identifier")
1414
@environment.pass_env
1515
def policies(env, protocol_id):
16-
"""List policies of the front-end protocol (listener)."""
16+
"""List policies of the front-end protocol (listener).
17+
18+
Example::
19+
20+
slcli loadbal l7policies (--protocol-id PROTOCOL_ID)
21+
"""
1722
mgr = SoftLayer.LoadBalancerManager(env.client)
1823

1924
if protocol_id:

SoftLayer/CLI/loadbal/pools.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ def l7pool_add(env, identifier, **args):
169169
"""Adds a new l7 pool
170170
171171
-S is in colon deliminated format to make grouping IP:port:weight a bit easier.
172+
173+
Example::
174+
175+
slcli loadbal l7pool-add (--id LOADBAL_ID) (-n, --name NAME) [-m, --method METHOD]
176+
[-s, --server BACKEND_IP:PORT] [-p, --protocol PROTOCOL] [--health-path PATH]
177+
[--health-interval INTERVAL] [--health-retry RETRY]
178+
[--health-timeout TIMEOUT] [--sticky cookie | source-ip]
172179
"""
173180

174181
mgr = SoftLayer.LoadBalancerManager(env.client)

0 commit comments

Comments
 (0)