summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2
Commit message (Collapse)AuthorAgeFilesLines
* Add dns-domain support to Network objectPierre Hanselmann2020-01-032-6/+26
| | | | | | | | | | | | Add "dns-domain" parameter to Network class. Also check backend extensions and send an error message in case of an argument (like dns-domain) is sent and the extension is missing (dns-integration in this case). Change-Id: I7303658c27d9b9f2d8381ccea0b29e96909cab54 Closes-Bug: 1633214 Partial-Bug: 1547736 (cherry picked from commit b8754e15e7adc9a04587f67c83febaf49b64f18c)
* Remove str() when setting network objects namesBernard Cafarelli2019-03-057-8/+8
| | | | | | | | | | | | | | Most network commands use str() on name argument, which fails on python 2 with Unicode characters. This comes from parsed arguments so does not actually need this call. Sample command failing with current code: openstack network create test_unicode™ Change-Id: Ie10b67864c912ee5c33e90b10c3d9705ee8307e7 Story: 2004356 Task: 27955 (cherry picked from commit 05521bf84cb108c73bb36b270569b1986ad13f53)
* Don't display router's is_ha and is_distributed attributes alwaysSławek Kapłoński2018-12-101-5/+19
| | | | | | | | | | | | | | | | | | | In case when is_ha or is_distributed attribute of Neutron's router is set to None, it means that it wasn't returned from server and should not be displayed. Otherwise it might be confusing for user is making openstack router show <router_name> call as an admin will return e.g. is_ha=True but same call done as regular user will return False or None. It might happen like that because returning of those attributes is forbidden for regular users in Neutron's policy.json Depends-On: https://review.openstack.org/567606/ Change-Id: I626b5193d9ecb308baad7b27939f9673c32b4182 Closes-Bug: #1689510 Task: 19789 Story: 2002110 (cherry picked from commit 8db3933feb35f91f3ff3d121c155286973c66122)
* Merge "Support filtering port with IP address substring"Zuul2018-07-251-3/+8
|\
| * Support filtering port with IP address substringHongbin Lu2018-06-291-3/+8
| | | | | | | | | | Change-Id: I9559f1c0a6db943705bd32aefb60d7ea7054dd1b Related-Bug: #1718605
* | Merge "Do not require port argument when updating floating IP"Zuul2018-07-241-5/+6
|\ \ | |/ |/|
| * Do not require port argument when updating floating IPyanpuqing2018-06-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | When setting floating ip other properties, port argument is force to use. The patch modifies the command, when setting floating ip other properties, like tags, no need port argument. Change-Id: I908712c8913f32d3dd5fdfefe7347277d72f66de Story: 1751431 Task: 13865
* | Merge "Format port_details field of Floating IP"Zuul2018-06-281-1/+6
|\ \
| * | Format port_details field of Floating IPHongbin Lu2018-04-271-1/+6
| |/ | | | | | | | | | | Depends-On: I31e940d2986278d2fbee6fdfea4ff15f7c07ebaa Change-Id: I115739ea253ce26e075cd3f10e719b13f18afa5b Partial-Bug: #1723026
* | Merge "Network: Add tag support for security group"Zuul2018-06-251-2/+41
|\ \
| * | Network: Add tag support for security groupDongcan Ye2018-06-141-2/+41
| | | | | | | | | | | | | | | Change-Id: Icccb23429913724c6a8bd15d4737672b47a5f13a Closes-Bug: #1750983
* | | Fix subnet host_routes errorHuang Cheng2018-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | | When updating subnet with "no-host-route" option, set host_routes to an empty list as neutron_lib.api.validators expected. Change-Id: I6fe039793d813758429c7a104fd40172b4f8122b Closes-Bug: #1747101
* | | Merge "Remove deprecated ip floating commands"Zuul2018-06-092-123/+0
|\ \ \
| * | | Remove deprecated ip floating commandsDongcan Ye2018-04-082-123/+0
| |/ / | | | | | | | | | | | | | | | | | | We had already implemented floating ip(pool) commands more than two cycles, we can remove those deprecated commands. Change-Id: Ib98a7403a63bb0c48c03de4c79795737de2aa84c
* | | Allow setting network-segment on subnet updateHarald Jensas2018-06-061-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | To enable the possibility to migrate a non-routed network to a routed network allow updating the segment_id of a subnet. Change-Id: I3ebae2ff28d5d4e5373ebd1f52194f8c52071b88 Partial-Bug: bug/1692490 Depends-On: I1aee29dfb59e9769ec0f1cb1f5d2933bc5dc0dc5
* | | Make max_burst_kbps option as optional for bw limit QoS ruleSławek Kapłoński2018-05-251-4/+4
| |/ |/| | | | | | | | | | | | | | | | | Attribute max_burst_kbps of QoS bandwidth limit rule in Neutron's is optional in API so it should be also optional on client's side. Change-Id: Ie085b73fa885ff12f9ac080666cf3ca6a09b632a Related-Bug:#1770622 Task: 19658 Story: 2002017
* | Merge "Network: Add tag support for floating ip"Zuul2018-04-231-1/+22
|\ \
| * | Network: Add tag support for floating ipDongcan Ye2018-04-171-1/+22
| |/ | | | | | | | | Change-Id: I7a500a4ff6cec2442b4050df26c0b017d9f71903 Closes-Bug: #1750985
* | Clean up W503 and E402 pep8 errorsSean McGinnis2018-04-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | pycodestyle 2.40 and later enforce these rules that were not previously enforced. Rather than just skipping them, this cleans up the trivial instances of these violations. This does also include some other updates that were not triggering errors in an attempt to keep some of the style consistent. Change-Id: Id7c0a6b8f1f835e69d844b000e3ed751852ada63 Closes-bug: #1762803
* | Merge "neutron: add --mtu for create/set network"Zuul2018-03-231-0/+14
|\ \
| * | neutron: add --mtu for create/set networkEmilien Macchi2018-03-151-0/+14
| | | | | | | | | | | | | | | | | | | | | Support Neutron network mtu configuration with a new argument, --mtu that allows CLI users to set MTU for Neutron networks. Change-Id: I93d23581c7e8c84eaf9bb3b293360036f60f456b
* | | Fix typo in 'floating ip associate' command and docBrian Haley2018-03-151-1/+1
|/ / | | | | | | | | | | | | | | Assocaite -> Associate Trivialfix Change-Id: I432e35ddcd80ef77c865bee9a54ac2777f5b6386
* | Merge "Add support for "--dns-domain" argument"Zuul2018-02-241-0/+8
|\ \ | |/ |/|
| * Add support for "--dns-domain" argumentTytus Kurek2018-02-231-0/+8
| | | | | | | | | | | | | | | | | | | | This patchset implements support for "--dns-domain" argument to the following commands: "openstack port create" / "openstack port set". Change-Id: I4bb001054b00a969b74db3bb310e567033bf589b Depends-On: https://review.openstack.org/#/c/500660/ Closes-Bug: #1714878 Partial-Bug: #1704769
* | Use find_ip from openstacksdkMonty Taylor2018-01-291-60/+4
| | | | | | | | | | | | | | The find_ip from openstacksdk started being usable by OSC back in 0.9.15 but the local method never got replaced. Change-Id: I18a334280e5f384f8bb96198cdad79c612a02290
* | 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
* | | 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
* | 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
* | 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
* | 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
|\