Skip to content

Commit

Permalink
Merge pull request #35 from solidfire/release/1.7
Browse files Browse the repository at this point in the history
SolidFire CLI: 1.7 Release
  • Loading branch information
siva-vaddipati committed Dec 14, 2020
2 parents b5b945b + b732c36 commit 7717339
Show file tree
Hide file tree
Showing 49 changed files with 15,334 additions and 3,578 deletions.
36 changes: 0 additions & 36 deletions Dockerfile

This file was deleted.

5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include LICENSE README.md
recursive-include solidfire *
recursive-exclude solidfire *.pyc
include MANIFEST.in
include cli_version.json
Binary file not shown.
Binary file added NetAppElementCLIToolsUserGuide1_7.pdf
Binary file not shown.
Binary file removed NetApp_SolidFire_CLI_User_Guide.pdf
Binary file not shown.
70 changes: 29 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,13 @@ To install from pypi using pip, execute the following command:
pip install solidfire-cli

-- or --

Before you begin, must have solidfire-sdk-python installed in your environment.
To install from source using easy_install, navigate to solidfirecli*.tar.gz file (where the * stands for the version), and run

easy_install solidfirecli*.tar.gz

___

**SolidFire CLI Tools as Docker Container**

To **start** a new container from our published image, use the following:

>: docker run -it netapp/solidfire-cli bin/bash

You can **run** commands in the newly started container using standard sfcli commands from within it with the `bash-4.3#` prompt.

-- or --

To **run** sfcli commands from the host on a running container, use the following:

>: docker exec [container_name] [sfcli command]

Replace `[sfcli command]` with whichever cli command you are wanting to run.

Supported Operating Systems
-----------------------------------
* Windows 7, 8, and 10
Expand All @@ -65,9 +49,9 @@ Supported Operating Systems

## Documentation

[User Guide](https://solidfire.github.io/solidfire-cli/NetApp_SolidFire_CLI_User_Guide.pdf) This readme in .pdf form.
[User Guide](NetAppElementCLIToolsUserGuide1_7.pdf)

[Release Notes](https://solidfire.github.io/solidfire-cli/NetApp_SolidFire_CLI_Release_Notes.pdf) v1.5
[Release Notes](NetAppElementCLIToolsReleaseNotes1_7.pdf)

Accessing Inline Help
---------------------
Expand Down Expand Up @@ -447,30 +431,34 @@ Command Options
---------------
You can use the following options in the tool:

-m, --mvip TEXT
SolidFire MVIP
-l, --login TEXT
SolidFire Cluster login
-p, --password TEXT
SolidFire Cluster password
-q, --port INTEGER
The port number on which you wish to connect
-n, --name TEXT
The name of the connection you wish to use in connections.csv. You can use this if you have previously stored away a connection.
-c, --connectionIndex INTEGER
The index of the connection you wish to use in connections.csv. You can use this if you have previously stored away a connection.
-j, --json
To print the full output in json format, use this flag
-k, --pickle
-m, --mvip TEXT
SolidFire MVIP.
-u, --username TEXT
SolidFire Cluster username.
-p, --password TEXT
SolidFire cluster password.
-v, --version TEXT
The version you would like to connect on.
-q, --port INTEGER
The port number on which you wish to connect.
-n, --name TEXT
The name of the connection you wish to use in connections.csv. You can use this if you have previously stored away a connection with ‘sfcli connection push’.
-c, --connectionIndex INTEGER
The index of the connection you wish to use in connections.csv. You can use this if you have previously stored away a connection with ‘sfcli connection push’.
-s, --verifyssl
Enable this to check ssl connection for errors especially when using a hostname. It is invalid to set this to true when using an IP address in the target.
-t, --timeout INTEGER
The request timeout in seconds.
-j, --json
To print the full output in json format, use this flag.
-k, --pickle
To print the full output in a pickled json format, use this flag.
-d, --depth INTEGER
To print the output as a tree and specify the depth, use this option.
-f, --filter_tree TEXT
To filter the fields that will be displayed in a tree, use this parameter. Supply fields in a comma separated list of keypaths. For example, to filter accounts list, if I wanted only the username and status, I could supply 'accounts.username,accounts.status'.
--debug [0|1|2|3]
--debug [0|1|2|3]
Set the debug level
--help
Show this help and exit.
--nocache
If you do not wish to cache the connection, supply this flag.
--help
Show this message and exit.

Known Issues
---------------
Expand Down
6 changes: 3 additions & 3 deletions cli_version.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"major": 1,
"version": "1.5.0.29",
"build": 29,
"minor": 5,
"version": "1.7.0.0",
"build": 0,
"minor": 7,
"patch": 0
}
22 changes: 12 additions & 10 deletions element/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ def make_parser(self, ctx):
param.add_to_parser(parser, ctx)
return parser

"""
SDK1.6 Note:
since print_tree output is not supported in SDK 1.6
depth and filter_tree params are removed from --help as they shold not be used.
"""
@click.command(cls=SolidFireCLI, context_settings=CONTEXT_SETTINGS, help=HELP_STRING)
@click.option('--mvip', '-m',
default=None,
Expand Down Expand Up @@ -258,14 +263,6 @@ def make_parser(self, ctx):
is_flag=True,
required=False,
help="To print the full output in a pickled json format, use this flag.")
@click.option('--depth', '-d',
type=int,
required=False,
help="To print the output as a tree and specify the depth, use this option.")
@click.option('--filter_tree', '-f',
required=False,
type=click.STRING,
help="To filter the fields that will be displayed in a tree, use this parameter. Supply fields in a comma separated list of keypaths. For example, to filter accounts list, if I wanted only the username and status, I could supply 'accounts.username,accounts.status'.")
@click.option('--debug',
required=False,
default="1",
Expand Down Expand Up @@ -319,8 +316,13 @@ def cli(ctx,
ctx.mvip = mvip
ctx.json = json
ctx.pickle = pickle
ctx.depth = depth
ctx.filter_tree = filter_tree
"""
SDK1.6 Note:
since print_tree output is not supported in SDK 1.6
changing these two fields to None as they shold not be used.
"""
ctx.depth = None
ctx.filter_tree = None
ctx.verifyssl = verifyssl
ctx.timeout = timeout
ctx.version = version
Expand Down

0 comments on commit 7717339

Please sign in to comment.