summaryrefslogtreecommitdiff
path: root/openstackclient/network
Commit message (Collapse)AuthorAgeFilesLines
* Fix use of new openstacksdk connectionMonty Taylor2018-01-231-0/+1
| | | | | | | We store the created conn on the instance, but we never pull it back off if there is already one present. Change-Id: I2d890dd206d4ddf67fa42d798e6fd2c652799785
* Rework Network client config for new SDK ConnectionDean Troyer2018-01-221-19/+26
| | | | | | | | network.client.make_client() has always put a copy of it's SDK Connection directly into ClientManager, the new-style Connection create will move into osc-lib ClientManager, do it here too until then. Change-Id: I1edfd19c9e73320768fb9640931fafe857c980b4
* Merge "Add floating IP qos_policy actions"Zuul2018-01-111-3/+39
|\
| * Add floating IP qos_policy actionsLIU Yulong2018-01-111-3/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we can associate a qos policy to the floating IP, and dissociate it. The commands are: $ openstack floating ip create --qos-policy ... $ openstack floating ip set --qos-policy ... $ openstack floating ip set --no-qos-policy ... $ openstack floating ip unset --qos-policy These commands are based on the neutron change: I4efe9e49d268dffeb3df4de4ea1780152218633b Partially-Implements blueprint: floating-ip-rate-limit Change-Id: I932b32f78cc5a2b53926feaec1a0b392cf7e8b57
* | Allow ports filtering with device_idHongbin Lu2018-01-031-0/+7
|/ | | | | | | | | | Right now, if a neutron port is owned by a container powered by Kuryr, there is no way to list and filter those ports because OSC assumed a neutron port is owned by either a server or router. This patch adds support for that by introducing an option '--device-id' to the 'port list' command. Change-Id: Ib1fd27e8d843a99fb02ccabd8a12a24ac27cec9c
* Merge "Allow port list to shown undefined attributes"Zuul2017-12-311-2/+4
|\
| * Allow port list to shown undefined attributesAkihiro Motoki2017-11-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At now, OSC command implementation extracts resource attributes based on a predefined column list, so if a user specifies an unknown attribute not defined in the column lists, such attribute will be ignored. In case of 'port list', the neutron port defines many attributes and it is not a good idea to show all attributes even in the long mode from the perspective of user experience. This commit consumes osc_lib.utils.calculate_headers_and_attrs() function to show undefined port attributes if requested in -c option. Closes-Bug: #1707848 Depends-On: I6c6bc3c6e3c769c96869fd76b9d9c1661280850e Change-Id: I130a6aed41d80603698b6cab0c9a1d1dc59df743
* | Fix SDK Connection creation alternative to ProfileDean Troyer2017-12-071-3/+8
| | | | | | | | | | | | | | | | | | Do a dummy import to determine which SDK is installed (Pre/post merge). This solves the DevStack error "Cloud defaults was not found" in -tips jobs. Depends-On: Ia111f127fbdceac2afe20fd9d1fe032145cdd72c Change-Id: I60c2d418dd5a393eee2cc2a5c2fdebfffdabf2d3
* | openstack subnet create fails when tags is NoneCarlos Konstanski2017-12-011-2/+2
|/ | | | | | | | In network/v2/_tag.py lines 105 and 110: obj.tags can be None, in which case set(obj.tags) throws a NoneType exception. Change-Id: I1e965ec947844cbf84676fab27a2261fc0c0ea49 Closes-Bug: #1735836
* Add logic to handle old and new sdk constructorMonty Taylor2017-11-161-9/+18
| | | | | | | | | | | SDK is removing Profile, but currently has compat code to support this invocation in OSC. While the intent is to protect people from upgrade breakage, it's python, and packaging things have a tendency to get strange. By putting in a little belt and suspenders if block here, we can hopefully protect folks who upgrade sdk for some reason without upgrading python-openstackclient. Change-Id: Id678e97a2b99dbbfc772acc8c6ba283db551723d
* Merge "Network: Add interfaces info in router show"Zuul2017-11-161-2/+19
|\
| * Network: Add interfaces info in router showycx2017-11-151-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | Add a list of interfaces info in the output of 'openstack router show'. The information of router interface are: IP address, subnet ID and port ID. Co-Authored-By: Dongcan Ye <hellochosen@gmail.com> Change-Id: I1252986122122defffe795292b83dc4e84481c7e Closes-Bug: #1675489
* | Show detailed message of neutron exceptionHongbin Lu2017-11-141-0/+2
|/ | | | | | | | This patch improves the error message by retrieving the more details from the exception instance. Otherwise, the real error message won't be displayed (unless using --debug in the command). Change-Id: I8ba694bda86f7cc8362e301b2044d9b610dde49c
* Merge "Neutron agent delete: remove the wrong argument"Zuul2017-11-071-2/+1
|\
| * Neutron agent delete: remove the wrong argumentnpraveen352017-11-061-2/+1
| | | | | | | | | | | | | | | | | | | | The take_action() function was calling get_agent() with the wrong attribute, causing agent deletion to fail. It turns out calling get_agent() isn't necessary; this removes the call entirely and moves the 'ignore_missing' argument to the delete_agent() function. Change-Id: Iaa3754a3be0765112f396495fa5fb2e32e6eae4e Closes-Bug: #1711301
* | Merge "Network: Add supports rbac target-all-projects"Zuul2017-11-071-7/+16
|\ \ | |/ |/|
| * Network: Add supports rbac target-all-projectsDongcan Ye2017-11-051-7/+16
| | | | | | | | | | | | | | | | | | Add a boolean option "target-all-projects", which allows creating rbac policy for all projects. Change-Id: Ie3af83a1bba7dd66e83b0595bb276bf8fd105831 Closes-Bug: #1728525 Closes-Bug: #1704834
* | Display Network QoS rule type detailsSławek Kapłoński2017-11-051-0/+31
|/ | | | | | | | | | Neutron API now supports getting details of supported QoS rule type. This patch adds support for this feature to OpenStack client. Change-Id: I74d16563ce2236a7c899f5994f1dab43ace02138 Depends-On: I448b5d4f8e4ef42eafe50d9d6c63d0be666f98fc Related-Bug: #1686035
* Allow creating security rules without protocolDaniel Speichert2017-10-171-3/+5
| | | | | | | | | | | | | In order to create a rule for any protocol, the client must not specify the protocol in the API call. This is currently impossible because protocol defaults to TCP. In order not to change the default behavior, a "new" protocol name is added: "any", which makes this CLI skip sending the protocol field altogether. Change-Id: I58853d3745f3631007e5e9780c0c5c2526b730a3 Closes-Bug: 1712242
* Avoid default mutable values in argumentsRodolfo Alonso Hernandez2017-10-101-1/+2
| | | | | | | | | Mutable values shouldn't be used as default values in function arguments [1]. [1] http://docs.python-guide.org/en/latest/writing/gotchas/ Change-Id: I3c7f915f0409c77f4c430467365eb1bcfd7757b3
* Support creating unaddress neutron portHongbin Lu2017-09-291-1/+9
| | | | | | | | | | | | | | | | Introduce an option '--no-fixed-ip' on port create command. If this option is specified and '--fixed-ip' is unspecified, OSC will send a request to neutron with 'fixed_ips' as an empty list, which will create an unaddress neutron port. Note: The use cases of unaddress port was outlined in: https://specs.openstack.org/openstack/neutron-specs/specs/liberty/unaddressed-port.html (dtroyer: add Depends-On for Zuul v3 test) Depends-On: I39e8e49243ab0bda631600715c971c55a34e2fd9 Change-Id: Ibe38598acbbcd0d353c952fc2a6fa67780762151 Closes-Bug: #1717829
* Support icmp-type and icmp-code to be set as zerogvrangan2017-09-261-2/+2
| | | | | | | | | When icmp-type or icmp-code are set to 0, the current implementation ignores the value, this fix will allow the value to be copied and displayed Change-Id: I96133a57883d22e98fcbb9fe0328d9e050472469 Signed-off-by: gvrangan <venkatrangang@hcl.com>
* Fix output for subnet showJens Harbott2017-09-121-1/+1
| | | | | | | | | The use_default_subnet_pool column is never returned by the API, it is only being used in the request to create a subnet. So make sure that we do not show it when displaying a subnet. Change-Id: Ie021149cceb8f89b779ad0f3c13ac60420509671 Related-Bug: 1668223
* Allow PD as Subnetpool during Subnet creationsReedip2017-08-171-0/+7
| | | | | | | | | | | This commit now allows user to specify 'prefix_delegation' as a Subnetpool during Subnet creation by using the new --use-prefix-delegation option so that the IPv6 prefixes can be delegated to routers set up by the cloud admins. Change-Id: I67e5d81c4155db2e3c5c41ee1df77f2d77a17689 Closes-Bug: #1513894
* Network tag supportAkihiro Motoki2017-07-236-12/+250
| | | | | | | | | | | | | Neutron tag mechanism now supports network, subnet, port, subnetpool and router. Tag support for more resources is planned. This commit introduces a common mixin class to implement tag operation and individual resource consumes it. To support tag remove, network unset command is added. Implements blueprint neutron-client-tag Change-Id: Iad59d052f46896d27d73c22d6d4bb3df889f2352
* Merge "Add support for virtio-forwarder VNIC type"Jenkins2017-07-201-2/+3
|\
| * Add support for virtio-forwarder VNIC typeJan Gutter2017-07-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This patch adds support for the virtio-forwarder VNIC type. * The virtio-forwarder VNIC type has been added as another option for setting the --vnic-type property on the "port set" and "port create" commands. This requests a low-latency virtio port inside the instance, likely backed by hardware acceleration. Currently the Agilio OVS external plugin provides support for this, with support from other vendors following soon. * Corresponding neutron-lib change: https://review.openstack.org/#/c/483530/ * Nova spec for Agilio OVS enablement: https://specs.openstack.org/openstack/nova-specs/specs/pike/approved/netronome-smartnic-enablement.html Change-Id: Idbc8071afe95f8594b40e2f93e5411e7185f946f Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
* | Merge "Network L3 Router Commands for OSC"Jenkins2017-07-202-26/+127
|\ \ | |/ |/|
| * Network L3 Router Commands for OSCAnkur Gupta2017-07-112-26/+127
| | | | | | | | | | | | | | Implements: blueprint network-l3-commands Co-Authored-By: Akihiro Motoki <amotoki@gmail.com> Change-Id: Ia24d76227e164062e89a74c1621b8acb830b26cf
* | Add 'data_plane_status' option to Port classesCarlos Goncalves2017-07-121-0/+18
|/ | | | | | | Adds 'data_plane_status' option to SetPort and UnsetPort classes. Closes-Bug: #1684989 Change-Id: I26e23b551afb8c37e6babdea1655efb7c5c6873b
* Add new parameter "is_default" to Network QoS policy.Rodolfo Alonso Hernandez2017-07-051-10/+34
| | | | | | | | | | | | Add a set of exclusive parameters to the Network QoS policy: --default: makes this policy the default policy for the project to which the qos policy belongs. --no-default: unset the property. Closes-Bug: #1639220 Depends-On: If5ff2b00fa828f93aa089e275ddbd1ff542b79d4 Depends-On: Ibe7b7881cb190bfd5582f35b6de51a8bc21135de Change-Id: I0269b837dc29bbd8ee2089d847cadb72d800fa30
* Merge "Show neutron tags in OSC network show"Jenkins2017-06-301-0/+2
|\
| * Show neutron tags in OSC network showM V P Nitesh2017-06-221-0/+2
| | | | | | | | | | | | | | | | | | Now tag information of the network is displayed when the user tries to see the network details using the command openstack network show <net-id> Change-Id: I587d2bca37b8dbef4400db3d8ace3c81d87e2db3 Closes-Bug: #1695783
* | Merge "Add direction field to QoS bandwidth limit."Jenkins2017-06-221-13/+19
|\ \
| * | Add direction field to QoS bandwidth limit.Rodolfo Alonso Hernandez2017-06-221-13/+19
| |/ | | | | | | | | | | | | | | | | | | This patch enables the direction ('ingress'/'egress') field on the QoS bandwidth limit rule object and CRUD commands. Closes-Bug: #1614121 Depends-On: Ia13568879c2b6f80fb190ccafe7e19ca05b0c6a8 Depends-On: I90c412a5c8757b3ffe8abfc1165a70bdb8744702 Change-Id: Ic6981474f22efbf294ac11c2e0304b04494a1bbe
* | Merge "Don't show hint about vlan transparent in network set"Jenkins2017-06-221-15/+15
|\ \ | |/ |/|
| * Don't show hint about vlan transparent in network setHong Hui Xiao2017-06-121-15/+15
| | | | | | | | | | | | | | Update this attribute is not allowed in neutron. Change-Id: I38010b26e116246c13dbb6cc6a777d2f22f6dc30 Closes-Bug: #1691776
* | Add default-quota to subnet pool commandsReedip2017-06-121-1/+15
|/ | | | | | | | | | | | | | Add --default-quota option to subnet pool create and set commands. Setting default-quota back to None may break the current Neutron behavior, therefore support for Unset command is not provided in this patch. Neutron API: https://github.com/openstack/neutron/blob/a0e0e8b6686b847a4963a6aa6a3224b5768544e6/neutron/api/v2/attributes.py#L239 Closes-Bug: #1667294 Change-Id: Ia4e7c23a49e91a090133c729353cdb8e62bc5674
* Merge "Revert "Fix port command for SDK >0.9.10""Jenkins2017-05-071-5/+1
|\
| * Revert "Fix port command for SDK >0.9.10"Huanxuan Ao2017-03-091-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8e277c64fb86dc1ca432e02b82accdcaf42a2779. After [1] merged in osc-lib, we can Avoid 'NoneType' error when format conversion now, So [2] in no longer needed, we can clean it up. Hold this until [1] released and included in the requirement in OSC. [1] https://review.openstack.org/#/c/434768/ [2] https://review.openstack.org/#/c/420420/ Depend-On: I649b4fc65ef7c19b8193b07f3bd59f00e6095f9f Change-Id: I2783713102d5e6164d9617f130c2f595bd6d939e
* | Do not always init compute_client when doint port list3.11.0Vasyl Saienko2017-05-041-1/+1
| | | | | | | | | | | | | | | | | | This patch ensures that compute client is initialized only when needed (--server arg is passed) to openstack port list command. Otherwise it leads to failures on installations without Nova. Change-Id: I102683461daa2f7d05dd9d7a3ec72de551c65ca9 Closes-Bug: #1688194
* | Fix Nova-net netowrk commandsDean Troyer2017-04-271-22/+23
| | | | | | | | | | | | | | | | | | | | | | | | In cleaning up functional tests for nova-net, I discovered some problems in network create: * --subnet option is required in network create command * Switch API to use /os-networks rather than /os-tenant-networks as this is what we were actually using via novaclient * Fix functional tests for nova-net * Normalize some private function names in network/v2/network.py Change-Id: I426b864406756d58d140575a3a45ee9aee67ce84
* | Merge "SDK refactor: Set "is_admin_state_up" for network agent"Jenkins2017-04-261-2/+2
|\ \
| * | SDK refactor: Set "is_admin_state_up" for network agentHuanxuan Ao2017-02-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | OpenStackSDK is >=0.9.13 now in requirement, so we can update "is_admin_state_up" as well for the SDK refactor Change-Id: I02de0ebc752ce602032bbe9d73256ed376993e78
* | | Low-level Compute v2 API: floating ip poolDean Troyer2017-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 floating ip pool function. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Also includes a handful of cleanups that the previous security group and floating IP reviews missed. Change-Id: I20116ec4fc1113857d8d917bfb30fa3170d05b9f
* | | Low-level Compute v2 API: networkDean Troyer2017-04-171-17/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 network functions. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Change-Id: If230f128e91cda44461fe93c976cac2aecec2252
* | | Merge "Low-level Compute v2 API: floating ip"Jenkins2017-04-171-18/+9
|\ \ \
| * | | Low-level Compute v2 API: floating ipDean Troyer2017-04-111-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 floating ip functions. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Change-Id: Ic461b8d15e072e0534dcd73fff6857581d83c89b
* | | | Merge "Low-level Compute v2 API: security group rules"Jenkins2017-04-171-9/+9
|\ \ \ \
| * | | | Low-level Compute v2 API: security group rulesDean Troyer2017-04-111-9/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api.compute.APIv2 security group rule functions. novaclient 8.0 is now released without support for the previously deprecated nova-net functions, so include a new low-level REST implementation of the removed APIs. Change-Id: Ieabd61113bc6d3562738686f52bb06aa84fca765