summaryrefslogtreecommitdiff
path: root/openstackclient/network
Commit message (Collapse)AuthorAgeFilesLines
...
* Migrate "network create" command to use SDK.Tang Chen2015-12-091-8/+7
| | | | | | | | | | | | | | | This patch makes "network create" command use sdk. Since we have to keep the other commands runnable with the old network client, we use a temporary method to create sdk network client. And as a result, the tests need to patch a method to fake the temporary method, which will be removed at last. Change-Id: I06559c675be1188747257f72f18d6b4d420d0285 Implements: blueprint neutron-client Co-Authored-By: Terry Howe <terrylhowe@gmail.com> Co-Authored-By: Tang Chen <tangchen@cn.fujitsu.com>
* Migrate "network list" command to new version using SDK.Tang Chen2015-12-081-18/+28
| | | | | | | | | | | | | | | This patch makes "network list" command use sdk. Since we have to keep the other commands runnable with the old network client, we use a temporary method to create sdk network client. And as a result, the tests need to patch a method to fake the temporary method, which will be removed at last. Change-Id: I0882501cd7bb2c17917e10a6da4298f1452c9765 Implements: blueprint neutron-client Co-Authored-By: Terry Howe <terrylhowe@gmail.com> Co-Authored-By: Tang Chen <tangchen@cn.fujitsu.com>
* SDK integration: Add a temporary method to create network client using sdk.Tang Chen2015-12-071-1/+23
| | | | | | | | | | | | | | | | | | | | | | This patch adds a temporary method to create a network client using sdk. This method will help to migrate network commands from neutronclient to sdk one by one. The command which is being migrated will use this temporary method to create the sdk client, and the rest ones will use the old client. The temporary method will finally be removed and implement the same thing in make_client(). This patch will also add sdk to requirements file. And adds some formatter helper functions, which will be used in class CreateNetwork, ListNetwork and ShowNetwork. This patch is splited from TerryHowe <terrylhowe@gmail.com> 's original patch. Change-Id: Ie9b35747680afeb66cf6922e2c654fbca7e03569 Implements: blueprint neutron-client Co-Authored-By: TerryHowe <terrylhowe@gmail.com> Co-Authored-By: Tang Chen <tangchen@cn.fujitsu.com>
* Trivial: Fix typo in find() in network.Tang Chen2015-11-271-2/+4
| | | | Change-Id: Ic54fbb9160adefe3d025d537125e125128f75ee6
* Set default network api to 2.0 instead of 2Monty Taylor2015-11-091-1/+3
| | | | | | | | | | | | neutronclient expects 2.0 as the version if you go through the discovery constructor. For that reason, 2.0 is the 'correct' version to set in config files or environment variables for if you're using things that are not OSC. However, if you do that, OSC prints a warning that 2.0 is not in the supported network version list. Let's support both so that users don't get a confuse. Change-Id: I7412519693f75fcd29f5621ce9e5a2df2da92684
* Do not set default versions in parsed argsTerryHowe2015-07-181-5/+3
| | | | | | | | | | | Setting default versions in parsed args makes it so OCC cannot tell if the argument was parsed, an environment variable was set or it is just defaulted. In order to set api versions from OCC, it will have to be defaulted after processing OCC. Closes-Bug: #1453229 Change-Id: I4d065919397b783f3bdd4022c986c0234a7a16e6
* Merge "Rename endpoint type to interface"Jenkins2015-07-171-3/+2
|\
| * Rename endpoint type to interfaceTerryHowe2015-07-151-3/+2
| | | | | | | | | | Change-Id: I4e21d09bc747e8210f4f79a1d6c4c7ccf2f25d1c Closes-Bug: #1454392
* | Remove the --dhcp option to network listTerryHowe2015-07-081-37/+27
|/ | | | | | | | | | The --dhcp option lists agents, not networks. This does not make a lot of sense. Another command should be created to list agents. BackwardsIncompatibleImpact Closes-Bug: #1472613 Change-Id: I5ecfe3fc046a07eb64a4dabd41dbd99de7c2215f
* Merge "Add --os-endpoint-type cli optional argument"Jenkins2015-07-031-0/+6
|\
| * Add --os-endpoint-type cli optional argumentRoxana Gherle2015-07-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | User should be able to specify the endpoint type through a CLI optional argument/ENV variable setting. We will name this new optional argument: --os-endpoint-type (Env: OS_ENDPOINT_TYPE) and based on the value given, the service API will use that specific endpoint type. Possible values: public, admin, internal. DocImpact Closes-Bug: #1454392 Change-Id: Ife3d4e46b44c0ddcd712b1130e27e362545a9a29
* | fix confused domain argument for network create v2Guojian Shao2015-06-261-13/+6
|/ | | | | | | | | | | we have used domain scope arguments --project-domain, --user-domain and --group-domain in identity commands, for example, role add v3, to prevent resources conflict from same resource name existence. To keep with the style of identity commands, it's better to rename --domain to --project-domain. Closes-Bug: #1468988 Change-Id: Ic6ccb895cf9be4a3d5f0001525e3b80cd340da8b
* Add project and domain params to network createColleen Murphy2015-03-191-0/+21
| | | | | | | | | | | | | | | | | | | | | | Without this patch, openstackclient has no way to specify to which project a network belongs upon creation. Instead, it uses the project ID that the user is authenticating with to fill the tenant_id column. This is a problem because an admin user is unable to specify a project for a non-admin network. To fix this and to improve feature parity with the neutron client, this patch adds project and domain parameters to the network create command and uses the given project name to look up the project ID. Neutron does not allow the project to be changed after creation, so no such parameter has been added to the neutron set command. Neutron calls the field 'tenant_id', but this change exposes the parameter as '--project' to support the newer terminology. If no project is specified, the client defaults to the previous behavior of using the auth project. Change-Id: Ia33ff7d599542c5b88baf2a69b063a23089a3cc4
* Begin low-level API for Network v2Dean Troyer2015-01-222-34/+101
| | | | | | | | | api.network.APIv2 starts with network_list() support to flush out the skeleton of the Network API. list_dhcp_agent() supports the --dhcp option of 'network list' Change-Id: I9a2b90cde84eced1f2ea6a014b769e2bae668211
* Command docs: networkDean Troyer2015-01-211-24/+39
| | | | Change-Id: Ia88b6c0ca5205fa5bfc3efa06ac7f84c4a9e5d4e
* Use session for neutron clientVladimir Eremin2015-01-151-13/+1
| | | | | | | | | | python-openstack client is now using sessions to create clients. This patch implements creating Network client using sessions. Related to c3c6edbe8a083aef0fb6aea3cb461ff8e715fc59 Change-Id: If90ac705eb11dfc1e3abbe2ce18c3d8ccefdbdfb Closes-Bug: 1411179
* add multi-delete support for compute/image/net/volumewanghong2014-12-231-6/+7
| | | | | | | | | | | | | | This is part1, add support for these objects: compute.server imagev1.image imagev2.image network.network volume.volume volume.backup volume.snapshot Closes-Bug: #1400597 Change-Id: Ice21fee85203a8a55417e0ead8b509b8fd6705c1
* Remove ClientManager._service_catalogDean Troyer2014-10-181-4/+6
| | | | | | | | | | Anything that needs a service catalog can get it directly from auth_ref.service_catalog, no need to carry the extra attribute. ClientManager.get_endpoint_for_service_type() reamins the proper method to get an endpoint for clients that still need one directly. Change-Id: I809091c9c71d08f29606d7fd8b500898ff2cb8ae
* Remove now-unnecessary client creation hacksDean Troyer2014-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | Clients that can use ksc Session don't need the old junk to fake auth anymore: * compute * volume Clients that still need to be fed credentials can pick directly from the auth object in clientmanager. The _token attribute is removed, the token can be retrieved from the auth object: openstackclient/tests/common/test_clientmanager.py This change will break any plugin that relies on getting a token from instance._token. They should be updated to use the above, or preferable, to use keystoneclient.session.Session to create its HTTP interface object. Change-Id: I877a29de97a42f85f12a14c274fc003e6fba5135
* Fix operation on clouds with availability-zonesMonty Taylor2014-10-111-1/+2
| | | | | | | | | In a cloud with AZs, you can get multiple entries back from the service catalog - one for each AZ and then one that is AZ agnostic that's tied to the region. If the region_name is plumbed all the way through, this works as intended. Change-Id: I3b365ea306e8111fc80830672ae8080a5d1dc8e0
* Merge "Network use enable/disable vs admin state up/down"Jenkins2014-09-081-12/+17
|\
| * Network use enable/disable vs admin state up/downTerry Howe2014-08-181-12/+17
| | | | | | | | | | | | Use --enable and --disable vs --admin-state-up/--admin-state-down Change-Id: I90040b925cb537a8ba13d1dd609c51bb669cf149
* | Merge "Create message variables for exceptions"Jenkins2014-08-241-1/+2
|\ \ | |/ |/|
| * Create message variables for exceptionsSteve Martinelli2014-08-241-1/+2
| | | | | | | | | | | | | | Instead of inline messages, let's create variables instead, as it's easier to find strings, and mark them for translation. Change-Id: Ibbcfdbc59d12a0cb4af50f73043d3ff7f3c76f99
* | Update help text for some network commandsSteve Martinelli2014-07-171-0/+3
|/ | | | | | | Add help text for network delete, network set and network show Change-Id: I80ad5eae35f0eba2bfe19e06786c9b8ed1522046 Closes-Bug: #1343659
* Merge "Allow network find to use alternate name"Jenkins2014-07-081-2/+4
|\
| * Allow network find to use alternate nameTerry Howe2014-07-071-2/+4
| | | | | | | | | | | | | | | | Add the name_attr to the network find method so it can search for things like floating_ip_address for floating IP addresses rather than just id. Change-Id: I827e3745b06397a54555d1286e477bf2e05bf789
* | Clean up make_client() loggingDean Troyer2014-07-081-0/+2
|/ | | | Change-Id: I0b6760a6401b50e3dfb891af75424ae89df42ebc
* Move network stuff to v2 instead of v2_0Terry Howe2014-07-073-2/+2
| | | | | | Rename network stuff v2 Change-Id: Ia9b8feda20dfd35b0f3712b8e2419d0bf5da0acd
* Network CRUDTerry Howe2014-06-245-0/+340
bp/neutron https://wiki.openstack.org/wiki/OpenStackClient/Commands#Network_2 Change-Id: I89ee083154afa544b03587e84becace36d9d522a