{ "info": { "author": "Christophe Serafin", "author_email": "christophe.serafin@nuagenetworks.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Topic :: Utilities" ], "description": "# VSD Command line tool\n\nCLI for VSD Nuage\n\n\n## Setting up your Python environment\n\nInstall your virtualenv\n\n $ virtualenv vsd-env\n\n__Note__: If you are using a specific version of python, you can specify it using option `-p /usr/bin/python2.6` for instance.\n\nActivate your environment\n\n $ cd vsd-env\n $ source bin/activate # Activate your environment here...\n (vsd-env) $ ...\n\n\n## Installation\n\nNOTE: If it is not the case, please activate your Python environment first!\n\n 1) Install CLI dependencies\n\n (vsd-env) $ pip install -r requirements.txt\n\n 2) Make sure your `vsd` command is executable\n\n (vsd-env) $ chmod +x vsd\n\n## Usage\n\nFollow the CLI help menu:\n\n (vsd-env) $ ./vsd -h\n\nYou can define following environments variables:\n\n* `vsd_USERNAME` user name\n* `vsd_PASSWORD` user password\n* `vsd_API_URL` API URL\n* `vsd_ENTERPRISE` Enterprise name\n\nExamples:\n\n (vsd-env) $ vsd list enterprises --api https://vsd:8443 --username csproot --password csproot --enterprise csp --version 3.2\n\n (vsd-env) $ export VSD_PASSWORD=csproot\n (vsd-env) $ export VSD_USERNAME=csproot\n (vsd-env) $ export VSD_ENTERPRISE=csp\n (vsd-env) $ export VSD_API_VERSION=3.2\n (vsd-env) $ export VSD_API_URL=https://vsd:8443\n\n (vsd-env) $ vsd list enterprises\n (vsd-env) $ vsd list enterprises -f \"name == 'My Company'\"\n (vsd-env) $ vsd list enterprises -x ID name # List name and ID only\n (vsd-env) $ vsd list enterprises -x ALL # List all fields\n (vsd-env) $ vsd list vports --in subnet a3db271b-b4ab-45a2-995e-971bf9e761bb\n (vsd-env) $ vsd show domain --id 04850601-bebb-4b9b-acac-a31b455595a4\n\n (vsd-env) $ vsd count vports --in subnet 67add3a4-5bd5-42a5-8231-b6710dac3546 -x name\n\n (vsd-env) $ vsd create zone --in domain dd960a1f-b555-4e6c-9bf5-f88832679b5e -p name='Test Zone' IPType=IPV4 numberOfHostsInSubnets=4 maintenanceMode=DISABLED\n (vsd-env) $ vsd create enterprise -p name='My Company'\n\n (vsd-env) $ vsd update enterprise -i 26f67b33-3601-4cdf-8ed0-fba7116d0200 -p name='Example'\n (vsd-env) $ vsd update zone -i c4e96631-cfbc-4dcd-a4c3-b2937e5eab13 -p name='Danger Zone'\n\n\n (vsd-env) $ vsd assign users --ids f30061e8-56dc-47cc-ab9e-cf0d30fe1563 e838617f-658d-41a2-af46-bc54da0055fe --to group 74fb343a-093b-4738-bd59-135dc9e1aa78\n (vsd-env) $ vsd unassign users --ids f30061e8-56dc-47cc-ab9e-cf0d30fe1563 e838617f-658d-41a2-af46-bc54da0055fe --from group 74fb343a-093b-4738-bd59-135dc9e1aa78\n (vsd-env) $ vsd reassign users --ids d7162530-6960-43bb-a400-db0dbdeea06e --to group 74fb343a-093b-4738-bd59-135dc9e1aa78\n (vsd-env) $ vsd reassign users --to group 74fb343a-093b-4738-bd59-135dc9e1aa78 # Remove all users assigned to the specified group\n\n (vsd-env) $ vsd objects # List all objects\n (vsd-env) $ vsd objects -f nsg # List all objects that contains word nsg\n (vsd-env) $ vsd objects -p enterprise # List all objects that have an enterprise as parent\n (vsd-env) $ vsd objects -c domain # List all objects that have a domain as child\n (vsd-env) $ vsd objects -p enterprise -c domain # List all objects that have an enterprise as parent and a domain as child\n\n\n### Available commands\n\nHere are a list of available commands:\n* `list`\n* `count`\n* `show`\n* `create`\n* `update`\n* `delete`\n* `assign` : to add one or multiple assignations to existing ones\n* `unassign`: to remove one or multiple assignations to existing ones\n* `reassign`: to reset all assignation.\n* `objects` will enable you to traverse VSD objects hierarchy\n\n\n## License\n\nCopyright (c) 2015, Alcatel-Lucent Inc\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n * Neither the name of the copyright holder nor the names of its contributors\n may be used to endorse or promote products derived from this software without\n specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nuagenetworks", "keywords": null, "license": "BSD-3", "maintainer": null, "maintainer_email": null, "name": "vsdcli", "package_url": "https://pypi.org/project/vsdcli/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vsdcli/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nuagenetworks" }, "release_url": "https://pypi.org/project/vsdcli/3.2.4.134/", "requires_dist": null, "requires_python": null, "summary": "VSD Command Line Interface", "version": "3.2.4.134" }, "last_serial": 3140743, "releases": { "1.0.0.1": [ { "comment_text": "", "digests": { "md5": "949e43ca2f9598974446f711b60cef26", "sha256": "cbcf5e7c0c946f2b42e6589e3dc9562c35036d376c99189f8fac30460409034c" }, "downloads": -1, "filename": "vsdcli-1.0.0.1.tar.gz", "has_sig": false, "md5_digest": "949e43ca2f9598974446f711b60cef26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12838, "upload_time": "2015-08-17T22:46:26", "url": "https://files.pythonhosted.org/packages/b0/a2/099acb92322b3c2a298fd94326eb2e9ebf89877bcbbbb4619343734ac5a4/vsdcli-1.0.0.1.tar.gz" } ], "3.2.4.134": [ { "comment_text": "", "digests": { "md5": "8e7a18483312a75260d50431b847da51", "sha256": "d6ca8c3ab1413f285d8f654c33dfe62eca7211f2d164eb58bd0dda60b383613e" }, "downloads": -1, "filename": "vsdcli-3.2.4.134.tar.gz", "has_sig": false, "md5_digest": "8e7a18483312a75260d50431b847da51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12795, "upload_time": "2015-10-07T22:07:46", "url": "https://files.pythonhosted.org/packages/96/d0/60a701bd7d145eced421dba44eccc9e69e9f9e36105115d339938419f1de/vsdcli-3.2.4.134.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e7a18483312a75260d50431b847da51", "sha256": "d6ca8c3ab1413f285d8f654c33dfe62eca7211f2d164eb58bd0dda60b383613e" }, "downloads": -1, "filename": "vsdcli-3.2.4.134.tar.gz", "has_sig": false, "md5_digest": "8e7a18483312a75260d50431b847da51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12795, "upload_time": "2015-10-07T22:07:46", "url": "https://files.pythonhosted.org/packages/96/d0/60a701bd7d145eced421dba44eccc9e69e9f9e36105115d339938419f1de/vsdcli-3.2.4.134.tar.gz" } ] }