summaryrefslogtreecommitdiff
path: root/neutronclient/shell.py
Commit message (Collapse)AuthorAgeFilesLines
* fix: can't get authentication with os-token and os-urlJaspinder2016-03-021-4/+17
| | | | | | | | | | Currently, there is no way to authenticate a user through Neutron CLI by just using endpoint and token authentication. This simple fix will at least allow for that to be permitted. Change-Id: Ia7d285af224ef225aa20f83d7d4c87b81aac58ed Closes-Bug: 1450414
* Add tags supportHirofumi Ichihara2016-03-021-0/+4
| | | | | | | | This patch adds the tag support for CLI. Change-Id: Ia84b873e3916e7b9668181fe14c1448ef608bf1d Partial-Implements: blueprint add-tags-to-core-resources Related-Bug: #1489291
* Merge "Add commands for Network IP Availability"Jenkins2016-03-021-0/+3
|\
| * Add commands for Network IP AvailabilityManjeet Singh Bhatia2016-03-021-0/+3
| | | | | | | | | | | | | | | | | | This patch adds commandline for getting details about networks IP availability. Change-Id: Ie02c01ed8c4e291f91ed4cfd8781f4ec6a612cc7 Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com> Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
* | Merge "Support cleanup of tenant resources with a single API call"Jenkins2016-03-021-0/+2
|\ \
| * | Support cleanup of tenant resources with a single API callJohn Davidge2016-02-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The addition of the 'neutron purge' command allows cloud admins to conveniently delete multiple neutron resources associated with a given tenant. The command will delete all supported resources provided that they can be deleted (not in use, etc) and feedback the amount of each resource deleted to the user. A completion percentage is also given to keep the user informed of progress. Currently supports deletion of: Networks Subnets (implicitly) Routers Ports (including router interfaces) Floating IPs Security Groups This feature can be easily extended to support more resource types in the future. DocImpact: Update API documentation to describe neutron-purge usage Change-Id: I5a366d3537191045eb53f9cccd8cd0f7ce54a63b Closes-Bug: 1511574 Partially-Implements: blueprint tenant-delete
* | | Reflecting L7 content rules capability in LBaaSEvgeny Fedoruk2016-02-291-0/+12
| |/ |/| | | | | | | | | | | | | | | Adds CLI commands for L7 policies and rules Change-Id: I3617c7ecd2a3ac0cae555893235e34d6c2135b81 Implements: blueprint lbaas-l7-rules Co-Authored-By: Evgeny Fedoruk <evgenyf@radware.com> Co-Authored-By: Stephen Balukoff <stephen@balukoff.com>
* | BGP Dynamic Routing: neutronclient changesvikram.choudhary2016-02-251-0/+32
|/ | | | | | | | | | | | This patch adds neutronclient support for BGP routing functionality. Partially-Implements: blueprint bgp-dynamic-routing Co-Authored-By: Ryan Tidwell <rktidwell85@gmail.com> Co-Authored-By: Numan Siddique <nusiddiq@redhat.com> Co-Authored-By: Jaume Devesa <devvesa@gmail.com> Change-Id: I5b20bcbf6c837495d81c395f600498d2c8f3495c
* Client bindings for Get-me-a-networkHenry Gessau2016-02-051-0/+3
| | | | | | | | | | | Add client bindings for auto-allocated-topology. Add the 'auto-allocated-topology-show' CLI. Partially-implements: blueprint get-me-a-network Depends-On: Ia35e8a946bf0ac0bb085cde46b675d17b0bb2f51 Change-Id: I67a30ce552fd0310e051ac39dda0a763ee29ef6e
* Merge "Add code for load balancer status tree"Jenkins2016-01-221-0/+1
|\
| * Add code for load balancer status treeminwang2016-01-191-0/+1
| | | | | | | | | | | | | | | | | | | | So far the feature of retrieving a specific Load Balancer's Status Tree is not implemented in the neutronclient code, we need to add feature code and related tests. DocImpact Add loadbalancer-status-tree feature in CLI Change-Id: Ia7804ab6baac674830c6834f67cfd411ebf4d14f
* | refactor: Remove usage of useless command.command.OpenStackCommandAkihiro Motoki2016-01-181-6/+9
|/ | | | | | | | | | It seems OpenStackCommand was introduced to make neutronclient comamnds usable in OpenStack client, but at now OpenStack client directly implements cliff Command and does not require this kind of wrapper. To simplify the code, this commit drops the useless class. Partial-Bug: #1532258 Change-Id: Iaa5ce9f4b98d5c85ee6ba0303067e65a829fc78e
* Merge "Add method to retrieve loadbalancer stats"Jenkins2016-01-041-0/+1
|\
| * Add method to retrieve loadbalancer statsLIU Yulong2015-12-231-0/+1
| | | | | | | | | | | | | | | | | | | | In order to let user can retrieve some usage information of neutron loadbalancer v2, this patch add lbaas v2 statistics method to python-neutronclient. Command: neutron lbaas-loadbalancer-stats lbaas_id Change-Id: I7ef1e93debae9e3332a20cb60d5995d39e8b4719 Implements: blueprint lbaas-v2-loadbalancer-stats
* | Use _i18n instead of i18nAkihiro Motoki2015-12-241-1/+1
|/ | | | | | | | | | | | It is suggested to use _i18n.py per oslo.i18n document. http://docs.openstack.org/developer/oslo.i18n/usage.html neutronclient.i18n is now a wrapper module which emits the derecation warning. It is because might be used in implementation of the client extensions in other repositories. Closes-Bug: #1519493 Change-Id: I44969daeedc9a66dd9ad5bf80617516faf245ecc
* Merge "Remove nuage plugin from client"Jenkins2015-12-151-5/+0
|\
| * Remove nuage plugin from clientManjeet Singh Bhatia2015-12-111-5/+0
| | | | | | | | | | | | | | This remove the nuage code from client Change-Id: I7a3bdbedc429015258e76506da950226cacb07e8 Closes-Bug: #1518643
* | Fix H405 violationsshu-mutou2015-12-131-2/+6
|/ | | | | | | | There are a lot of H405 violation codes. We need to fix the code for avoiding more violations. Change-Id: Iaa83626b81a3d8369b16e2b4f394e2bc4628998a Closes-Bug: #1521899
* Add availability_zone CLIHirofumi Ichihara2015-12-081-0/+2
| | | | | | | | This patch adds the availability_zone support for CLI. Change-Id: I13faf6d90e84f401f07376c517c643ba9eda2295 Co-Authored-By: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Partially-implements: blueprint add-availability-zone
* Merge "Revert "Revert "Remove Cisco-specific neutron client commands"""Jenkins2015-11-121-15/+0
|\
| * Revert "Revert "Remove Cisco-specific neutron client commands""Saksham Varma2015-11-111-15/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit 716eb017d35829c18745c4c0279b895784c297f1. The original commit 8292cb85f8830e65284736ea1f9bae2f344c084a had to be reverted since it needed a client version bump to 4.x. This commit reverts that revert. Change-Id: Ib936b9ee4ac16089153209e60c05ed477731fd77
* | Merge "Add Neutron flavor framework CLI"Jenkins2015-11-111-0/+14
|\ \ | |/ |/|
| * Add Neutron flavor framework CLIJames Arendt2015-11-061-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide command line control of Neutron flavor framework resources, adding the following: flavor-create flavor-delete flavor-list flavor-show flavor-update flavor-profile-create flavor-profile-delete flavor-profile-list flavor-profile-show flavor-profile-update as well as ability to manipulate flavor to profile associations: flavor-associate flavor-disassociate Change to the '--enabled {True,False}' syntax. Bump up unit test coverage. ApiImpact DocImpact Implements: blueprint neutron-flavor-framework Change-Id: I0d73c8de223659071eb305d8bd1c699aefaeeb89
* | Improve neutron-client error message outputReedip Banerjee2015-11-101-0/+4
| | | | | | | | | | | | | | | | | | | | In case a user provides incorrect input, the NOVA CLIs provide information regarding usage of the NOVA help CLI. This is useful for new users. Similar information has been updated in the neutron CLIs as well. Change-Id: I1be2ba5a2c937b58900221a9ec7625c461ac17d9 Closes-Bug: #1495742
* | Use os-client-config and keystoneauth1 in shellMonty Taylor2015-10-281-190/+31
|/ | | | | | | | | | | | | | | | | | | | keystoneauth1 is the new auth-only library for getting keystone Sessions, which is lighter-weight and does not require the entire keystoneclient library. It also handles all of the keystone version discover and plugin selection so that code doesn't have to live in neutronclient. Additionally, use os-client-config to process options and get the Session from keystoneauth1. This adds support for reading clouds.yaml files and supporting the OS_CLOUD env var for selecting named clouds from a list of them. This is a step towards bug#1503428 but is not the whole picture. Remove the auth tests - since they are covered inside of ksa. Closes-Bug: #1507384 Change-Id: Ic4f9fd8f231c33513fd74da58ab1b4a3fb00d9f4
* Merge "CRUD for VPN endpoint group API"Jenkins2015-09-301-0/+6
|\
| * CRUD for VPN endpoint group APIPaul Michali2015-09-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This contains the create, delete, update, show, and list client APIs for the new VPN endpoint group API. The API syntax is: vpn-endpoint-group-create [--name name] [--description desc] \ --type {subnet|cidr|vlan} --value <value1> [--value <value2>...] vpn-endpoint-group-delete <name-or-uuid> vpn-endpoint-group-show <name-or-uuid> vpn-endpoint-group-update <name-or-uuid> [--name name] [--description desc] vpn-endpoint-group-list Notes: Using prefix "vpn-" on commands, so that there is no conflict with other neutron commands. Note: Using --type and --value, instead of --endpoint_type and --endpoint, which are already used (and must be globally unique). For example, if latter re used, see error "Must specify new values to update endpoint_group". The --value may be repeated multiple times, as a list of endpoints can be added to a group. There must be at least one. For --type=subnet, the user may enter the name or UUID of subnet, which must already exist. Client will translate names to UUIDs. As shown, the endpoints cannot be modified. A new endpoint group must be formed, and then can be used by VPN (once support is in place). When updating, either name or description must be provided (otherwise there is nothing to update). Added unit tests for the new API. DocImpact Change-Id: Ic696674d97474f8bbf3f895aa21b1585a04dc2fe Partial-Bug: 1459423 Depends-On: Ia729bd0c6967fa2b8c698495aa360f340b42d98a Depends-On: I6e10590a988312eafca076a14be38b19e2d44a87
* | Merge "Revert "Remove Cisco-specific neutron client commands""Jenkins2015-09-211-0/+15
|\ \ | |/ |/|
| * Revert "Remove Cisco-specific neutron client commands"Henry Gessau2015-09-211-0/+15
| | | | | | | | | | | | | | | | | | This reverts commit 8292cb85f8830e65284736ea1f9bae2f344c084a. This cannot go in 3.x since it requires a version bump. Will repropose for Mitaka (4.x client). Change-Id: Ia89d3e3c9c4a27ffbe3089354b4eaeca527de8ae
* | Merge "Remove Cisco-specific neutron client commands"Jenkins2015-09-041-15/+0
|\ \ | |/
| * Remove Cisco-specific neutron client commandsSourabh Patwardhan2015-09-041-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Removed Cisco-specific neutron client commands and ported code to networking-cisco as part of phase 2 of core vendor decompostion. Corresponding vendor repo change: Ia93134bfc7379781e56b0494087e3eca3fd9b232 Partial-Bug: #1490768 Partial-implements: blueprint core-vendor-decomposition Change-Id: I97d1370e2a3333fbcf87107f4624590d43d2940d
* | Remove NEC plugin specific commands3.0.0Akihiro Motoki2015-09-041-6/+0
|/ | | | | | Related blueprint core-vendor-decomposition Related-Bug: #1487929 Change-Id: I05107361106f73212274c7e1506dfde2e26032a4
* Support CLI changes for QoS (2/2).Ramanjaneya2015-08-261-0/+18
| | | | | | | | | | | | | This patch adds the command line support for QoS rules. DocImpact APIImpact Partially-Implements: blueprint quantum-qos-api Change-Id: Iea4dfa742f8005057f6caee8ab734649c0262d75 Co-Authored-By: vikram.choudhary <vikram.choudhary@huawei.com> Co-Authored-By: John Schwarz <jschwarz@redhat.com>
* Support QoS neutron-client (1/2).Ramanjaneya2015-08-261-0/+6
| | | | | | | | | | | | | | | | | | | This patch adds the command line support for 1. QoS policy 2. QoS policy association with the neutron network 3. QoS policy association with the neutron port Note: Neutronclient support for QoS rule-types will be addressed via a separate patch (https://review.openstack.org/#/c/198277/) DocImpact APIImpact Partially-Implements: blueprint quantum-qos-api Co-Authored-By: Ramanjaneya Reddy Palleti <ramanjieee@gmail.com> Co-Authored-By: John Schwarz <jschwarz@redhat.com> Co-Authored-By: vikram.choudhary <vikram.choudhary@huawei.com> Change-Id: If7460516a3b3e3ccb91f2e7becfe7335ff809bda
* Add extension name to extension's command help text linegong yong sheng2015-08-201-2/+5
| | | | | | | | | Currently, the cliff does not support to group commands. A good way to differentiate the commands from extension modules is to prefix the commands with extension name. Change-Id: Ib16404c6098340ca90e9548134d4115f5abbf5f6 Closes-Bug:#1486829
* Support Command line changes for Address Scopevikram.choudhary2015-08-191-0/+6
| | | | | | | | | | This patch adds the command line support for address scope functionality. Co-Authored-By: Ryan Tidwell <rktidwell85@gmail.com> Co-Authored-By: Numan Siddique <nusiddiq@redhat.com> Partially-implements: blueprint address-scopes Change-Id: I2a0e0e797b1864a104b3851e7dcdc7691ff9c9a1
* Support RBAC neutron-client changes.Ramanjaneya2015-08-101-0/+6
| | | | | | | | | | | This patch adds the command line support for RBAC work. DocImpact APIImpact Partially-Implements: blueprint rbac-networks Co-Authored-By: dongfeng <albert.dongfeng@huawei.com> Change-Id: I00c6b84b3f7d810f137ce05c0cd936dc194d9708
* Drop use of 'oslo' namespace packageDoug Hellmann2015-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | The Oslo libraries have moved all of their code out of the 'oslo' namespace package into per-library packages. The namespace package was retained during kilo for backwards compatibility, but will be removed by the liberty-2 milestone. This change removes the use of the namespace package, replacing it with the new package names. The patches in the libraries will be put on hold until application patches have landed, or L2, whichever comes first. At that point, new versions of the libraries without namespace packages will be released as a major version update. Please merge this patch, or an equivalent, before L2 to avoid problems with those library releases. Blueprint: remove-namespace-packages https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages Change-Id: I474dcd9de166b00d02b3586858a28797e97a3231
* Fix Python client library for Neutronzengfagao2015-04-211-0/+15
| | | | | | | | | | | | | To create a subnet, we used to require positional cidr value. With subnetpool, cidr is now optional value. With optional positional cidr, the cidr value cannot be parsed into known_args if it is separated from network value. To fix the problem, we need to find cidr value from value_specs, and use it if we find it. Cidr is optional, may not exist. Change-Id: Ic4bccf4e7384cc891cef71fb7ce3b52fbf997345 Closes-Bug:#1442771
* Add Neutron subnetpool APIzengfagao2015-04-091-0/+6
| | | | | | | | | | | | | Add Neutron subnetpool listing, creating, updating, showing and deleting Client API. neutron subnetpool-list neutron subnetpool-create neutron subnetpool-update neutron subnetpool-show neutron subnetpool-delete Change-Id: I19a6782d33609609f43353df8293864e60ead817 Partially-Implements: blueprint subnet-allocation
* Merge "Add commands from extensions to available commands"Jenkins2015-03-181-0/+1
|\
| * Add commands from extensions to available commandsmathieu-rohon2015-03-131-0/+1
| | | | | | | | | | | | | | | | | | | | Any project can extend available commands in neutronclient thanks to change : I5b2fe530c90b5ce1243fc10341d6d434a1ecea7a However, commands submitted by external modules are not correctly added to available commands in the client. Change-Id: I53783f18e7811deee9ae7e1f48fc429afcba8936 Closes-bug: #1430825
* | Merge "Added client calls for the lbaas v2 agent scheduler"Jenkins2015-03-181-0/+4
|\ \ | |/ |/|
| * Added client calls for the lbaas v2 agent schedulerBrandon Logan2015-02-251-0/+4
| | | | | | | | | | | | | | | | | | The lbaas v2 agent requires separate REST calls from the v1 agent so it is necessary to also add these commands to the client. Change-Id: I2fa88e64094f74e198925f2fec397bf6f2f941d5 Depends-On: Ifc09e922e9afbdfa31d2edf022c28d56446a9403 Partially-implements: blueprint lbaas-refactor-haproxy-namespace-driver-to-new-driver-interface
* | Merge "Client command extension support"Jenkins2015-02-251-0/+24
|\ \ | |/ |/|
| * Client command extension supportJustin Hammond2015-02-241-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds extension support with emphasis on ease of extension creation. Extensions strongly conform to preexisting neutron commands (/neutron/v2_0/*). A sample extension has been included (/neutron/v2_0/contrib/_fox_sockets.py). As it is assumed that the sample extension will be packaged with the client, small changes were required to include it with the unit tests. It is also possible to install a module with a 'neutronclient.extension' entry- point defined. More information on this can be found in the stevedore docs under the section "Loading the Plugins". Extension discovery is modeled after nova's module discovery but deviates strongly beyond that. A conforming module, at a minimum: * Will have a class that subclasses NeutronClientExtension to provide the requisite version support, paths, and variable names for the client. Example: neutronclient.neutron.v2_0.contrib._fox_sockets.FoxInSocket * Will have at least one class that subclasses from the ClientExtension* classes to provide the new functionality to the client Example: neutronclient.neutron.v2_0.contrib._fox_sockets.FoxInSocketsList * ClientExtension* subclasses must have a shell_command class variable if the command is to be available to the CLI (shell.py) Example: neutronclient.neutron.v2_0.contrib._fox_sockets.FoxInSocketsList Provides client command extensions through new classes: NeutronClientExtension, and ClientExtension<Action>. The precedence of command loading are as follows: * hard coded commands are loaded first * contribued commands (those in /contrib) * external commands (installed in the environment) are loaded last Commands that have the same name will be overwritten by commands that are loaded later. To greatly change the execution of a command for your particular extension you only need to override the execute method. Currently this extension support is limited to top-level resources. Parent/ child relationships may be added if desired. Change-Id: I5b2fe530c90b5ce1243fc10341d6d434a1ecea7a Implements: blueprint extensible-neutronclient
* | Make some auth error messages more verboseK Jonathan Harker2015-02-191-2/+4
|/ | | | | | | | | When specifying OS_URL but not OS_TOKEN the user is given an error about needing to specify OS_TOKEN with no explanation why. Expand the error messages to explain that the two values must co-exist. Change-Id: Ib3208a097997bceece4f2a881b5e4e3285852265
* Fix for incorrect parameter in user-id error message in shell.pyPhilippeJ2015-02-071-1/+1
| | | | Change-Id: I3f260377b8675675f631862e28101fa51bf2aad9
* Implement LBaaS object model v2Craig Tracey2015-02-041-0/+30
| | | | | | | | | | | | | | | | | | | | This change implements the LBaaS v2 object model changes necessary for python-neutronclient. It includes new objects loadbalancer and listener, as well as new implementations for pool, member, and healthmonitor. While many constructs are the same as in v1, many are not, and have therefore been namespaced under lb/v2. This client now supports both the v1 and v2 implementations simultaneously. v1 commands retain their original form: neutron lb-<object>-<command> and v2 commands take the form: neutron lbaas-<object>-<command> Co-Authored-By: Michael Johnson <johnsom@hp.com> Change-Id: I970b1de39d0dd8872459a584dd1f5c9110796ac9 Partially-implements: blueprint lbaas-api-and-objmodel-improvement DocImpact
* Merge "Namespace of arguments is incorrectly used"Jenkins2015-01-141-2/+2
|\