Skip to content

Commit

Permalink
Merge pull request #2080 from ramkishor-ch/issue_2043
Browse files Browse the repository at this point in the history
Added example in slcli loadbal health, slcli loadbal l7policies, slcli loadbal l7pool-add
  • Loading branch information
allmightyspiff authored Aug 31, 2023
2 parents c3938a2 + 14e08e8 commit ce5cd07
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 7 additions & 1 deletion SoftLayer/CLI/loadbal/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
@click.option('--url', '-u', help="Url path for HTTP/HTTPS checks.")
@environment.pass_env
def cli(env, identifier, uuid, interval, retry, timeout, url):
"""Manage LBaaS health checks."""
"""Manage LBaaS health checks.
Example::
slcli loadbal health-edit (--lb-id LOADBAL_ID) (--health-uuid HEALTH_CHECK_UUID) [-i, --interval INTERVAL]
[-r, --retry RETRY] [-t, --timeout TIMEOUT] [-u, --url URL]
"""

if not any([interval, retry, timeout, url]):
raise exceptions.ArgumentError("Specify either interval, retry, timeout, url")
Expand Down
7 changes: 6 additions & 1 deletion SoftLayer/CLI/loadbal/layer7_policy_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
help="Front-end Protocol identifier")
@environment.pass_env
def policies(env, protocol_id):
"""List policies of the front-end protocol (listener)."""
"""List policies of the front-end protocol (listener).
Example::
slcli loadbal l7policies (--protocol-id PROTOCOL_ID)
"""
mgr = SoftLayer.LoadBalancerManager(env.client)

if protocol_id:
Expand Down
7 changes: 7 additions & 0 deletions SoftLayer/CLI/loadbal/pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ def l7pool_add(env, identifier, **args):
"""Adds a new l7 pool
-S is in colon deliminated format to make grouping IP:port:weight a bit easier.
Example::
slcli loadbal l7pool-add (--id LOADBAL_ID) (-n, --name NAME) [-m, --method METHOD]
[-s, --server BACKEND_IP:PORT] [-p, --protocol PROTOCOL] [--health-path PATH]
[--health-interval INTERVAL] [--health-retry RETRY]
[--health-timeout TIMEOUT] [--sticky cookie | source-ip]
"""

mgr = SoftLayer.LoadBalancerManager(env.client)
Expand Down

0 comments on commit ce5cd07

Please sign in to comment.