summaryrefslogtreecommitdiff
path: root/neutronclient
Commit message (Collapse)AuthorAgeFilesLines
* Merge "OSC: Remove BGP calls to neutronclient"HEAD10.0.0masterZuul2023-05-029-168/+191
|\
| * OSC: Remove BGP calls to neutronclientelajkat2023-03-039-168/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | With [1] the python binding code in Neutronclient prints warning about future deprecation, change neutron-dynamic-routing osc client code to use totally OpenstackSDK. [1]: https://review.opendev.org/c/openstack/python-neutronclient/+/862371 Related-Bug: #1999774 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/869485 Depends-On: https://review.opendev.org/c/openstack/requirements/+/873598 Change-Id: I5dd143e670b70cc42a2ae48fe4bac0cf09416cb5
* | Remove the CLI code from the Neutron client.Slawek Kaplonski2023-04-1178-13943/+0
|/ | | | | | | | | | | | | | | This project no longer provides CLI support. All code has been removed. Please use openstack CLI instead This patch removes entry point for neutron CLI too, bash completion script and CLI related functional and unit tests but it still keeps neutronclient/neutron/v2_0 module as this is used by e.g. Nova. Co-Authored-By: Slawek Kaplonski <skaplons@redhat.com> Closes-Bug: #2003861 Change-Id: I5b6c735d1ff931d7991a42b262e7faa47b75edeb
* Remove CLI warning message9.0.0Rodolfo Alonso Hernandez2023-02-141-3/+0
| | | | | | | | | | | | This warning was added in [1]. This patch is partially reverting it but we keep the release note. This warning message could be a bit intrusive for those users still using it. In any case, the recommendation to move to OSC is something already known and publicly requested. [1]https://review.opendev.org/c/openstack/python-neutronclient/+/862371 Change-Id: I0c2fba3e45a9de1eba09efcf8919661a855c7e89
* Move network trunk commands from python-neutronclientelajkat2023-01-165-1249/+0
| | | | | | | | | The depends-on patch adds trunk commands to OSC, as we can long consider trunk operations as core Networking operations. Change-Id: Ie557a5d541cf117d20f3f2b548620a74dbadb383 Depends-On: https://review.opendev.org/c/openstack/python-openstackclient/+/869447 Related-Bug: #1999774
* Fix help sentence in network log create --enable8.2.1Elvira García2022-11-251-2/+2
| | | | | | | | | As the documentation states [1], the default in network log objects is to be enabled, not disabled. [1] https://docs.openstack.org/neutron/latest/admin/config-logging.html Change-Id: I13e9d1132fc38104e6e85d9c8442bc7506adc2fd
* Add warning and reno for SDK8.2.0elajkat2022-10-211-0/+3
| | | | | | | | | | | On the 2023.1 (Antelope) PTG we discussed the status of the python binding (SDK) code in python-neutronclient and decided to not allow new features to this repo (see [1]), and make users to use openstacksdk. Let's add a warning log message and a releasenote to make it visible. [1]: https://etherpad.opendev.org/p/neutron-antelope-ptg#L163 Change-Id: I03317179bd0d30a69b91eef6e451b8e40eb28191
* Add support to floating ip port forwarding8.1.0Pedro Henrique2022-07-151-0/+28
| | | | | | | | | | | | | | | | | | To extend Horizon to allow users to create port forwarding rules for their floating ips, we need to extend this client to allow it, as Horizon uses this client. This patch is the one of a series of patches to implement floating ip port forwarding with port ranges. The specification is defined in: https://github.com/openstack/neutron-specs/blob/master/specs/wallaby/port-forwarding-port-ranges.rst Implements: blueprint floatingips-portforwarding-ranges Related-Bug: #1885921 Change-Id: I3f616dba5e2ebe301cf6ce4bed8c2e6e4da2da9b
* Merge "Add support for 'smart-nic' vnic-type"7.8.0Zuul2022-01-192-3/+23
|\
| * Add support for 'smart-nic' vnic-typeFrode Nordahl2021-09-142-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'smart-nic' vnic_type was added in the Train time frame in I91f63810626ce4e054e358f5de5e46434c4da131. This vnic_type will also be used to support off-path SmartNIC port binding with OVN, and it is expected that the user will create ports with this vnic_type as part of the workflow. As such the client must allow users to interact with this vnic_type and this patch addresses that. Partial-Bug: #1932154 Change-Id: I7f80bb47db7f8608db4d6a646b0f4b0ef6d6fb48
* | Merge "Add CURD actions for packet rate limit rule"Zuul2021-12-061-0/+34
|\ \
| * | Add CURD actions for packet rate limit ruleLIU Yulong2021-11-241-0/+34
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Neutron added new QoS rule [1] for packet rate limit. Neutron fullstack test cases [2] rely on the neutron client to interact with the neutron-server (API), so for new QoS rule `packet rate limit`, we add the needed methods for new cases of the QoS driver testing. [1] https://docs.openstack.org/api-ref/network/v2/index.html#qos-packet-rate-limit-rules [2] https://github.com/openstack/neutron/blob/master/neutron/tests/fullstack/resources/process.py#L24 Change-Id: I0ad236c9e585a25fbd405813ac48898a2df897d2
* | Add support for minimum packet rate rule to the client7.7.0Przemyslaw Szczerbik2021-11-191-0/+34
|/ | | | | | | | | | | | | | | | | With the introduction of QoS minimum packet rate rule in Neutron, it's important to ensure that tools like Heat support it as well. Unfortunately, Heat still depends on python-neutronclient instead of python-openstackclient. So even though QoS minimum packet rate rule support have been proposed for python-openstackclient [1] and openstacksdk [2], it's still necessary to extend python-neutronclient code. Since Heat uses only the client part, can skip CLI support. [1] https://review.opendev.org/c/openstack/python-openstackclient/+/810559 [2] https://review.opendev.org/c/openstack/openstacksdk/+/810364 Partial-Bug: #1922237 See-Also: https://review.opendev.org/785236 Change-Id: I4f16b963a202a476cd3cd2b69c1dd4e4ee6f0fc7
* Merge "Replace deprecated assertDictContainsSubset"Zuul2021-09-061-3/+3
|\
| * Replace deprecated assertDictContainsSubsetTakashi Kajinami2021-09-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The method is deprecated since Python 3.2[1] and shows the following DeprecationWarning. /usr/lib/python3.9/unittest/case.py:1134: DeprecationWarning: assertDictContainsSubset is deprecated warnings.warn('assertDictContainsSubset is deprecated', [1] https://docs.python.org/3/whatsnew/3.2.html#unittest Closes-Bug: #1938103 Change-Id: I1d0ee6c77476707a7e4fe4fbf2b979bf34550d05
* | Merge "Use yaml.safe_load instead of yaml.load"xena-em7.6.0Zuul2021-09-022-4/+4
|\ \
| * | Use yaml.safe_load instead of yaml.loadTakashi Kajinami2021-09-012-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since PyYAML 5.1, yaml.load without specifying the Loader option is deprecated and shows the following warning. YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. This change replaces usage of yaml.load by yaml.safe_load, to get rid of that warning message. Change-Id: Ibe25c4aaf3aa7226f28ec60b8a929ecc143face1
* | | Merge "Ussuri+ is python3 only and update python to python3"Zuul2021-09-013-3/+0
|\ \ \ | |_|/ |/| |
| * | Ussuri+ is python3 only and update python to python3dengzhaosen2021-06-243-3/+0
| | | | | | | | | | | | | | | | | | To remove the useless shebang Change-Id: I611c5bc47562f8def9a8623117b7b0655474b555
* | | Set ML2/OVS backend explicitly for functional jobBernard Cafarelli2021-07-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After default backend change to OVN, some client tests related to DHCP or L3 agents are not working fine. Switch the job to ML2/OVS, as it was done in openstack-client in changeset Idf6466a59c6cf96be2f1d53e696f0564584fa233 test_neutron_dhcp_agent_list_hosting_net was skipped temporarily to pass the gate in the parent commit. It is re-enabled now. Change-Id: I91d03d13adcd38d46ba1b042239a290ae2c99ea4 Closes-Bug: #1936965
* | | tests: change safe_hasattr to hasattrelajkat2021-07-272-3/+4
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | testtools 2.5.0 removed the helper (see [0]) safe_hasattr, and assumes that the hasattr implementation in python reliable enough now. test_neutron_dhcp_agent_list_hosting_net is skipped temporarily as there is no DHCP agent with ML2/OVN. It will be re-enabled [1]. [0] https://github.com/testing-cabal/testtools/blob/2.5.0/NEWS#L31 [1] https://review.opendev.org/c/openstack/python-neutronclient/+/801997 Change-Id: I4fe6fabc4f745e2c9a366e30dbea7e7200151f12
* | Set when deprecated neutron client CLI will be removedSlawek Kaplonski2021-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | [1] was the last missing bit in OSC to have feature parity between OpenStack client and Neutronclient CLI tools. So now as [1] is merged we can really deprecate and specify that in Z cycle we will remove neutronclient CLI. This patch changes deprecation message to reflect that. [1] https://review.opendev.org/c/openstack/python-openstackclient/+/768210 Change-Id: Ia68af29ea15bda7330fda1b18416798a0f4cb7a4
* | Skip metering functional tests when metering extension is not enabledSlawek Kaplonski2021-05-271-0/+4
| | | | | | | | Change-Id: I9e3f41a2be56c1fd5fc3aff9af8e5ff5163087bd
* | Replace getargspec with getfullargspeclikui2021-05-101-1/+1
|/ | | | | | | | inspect.getargspec() is deprecated since py3 [1] https://docs.python.org/3/library/inspect.html#inspect.getargspec Change-Id: I2ae460a7a7f01d7346d5e51ec6ccb44c22d0c53e
* Support passing mTLS certificate/key to HTTPClientsri harsha mekala2021-03-052-3/+11
| | | | Change-Id: I00065293daf6b2e5d540e056c05f85b82f8bc72c
* Merge "Allow 4byte ASNs in dynamic routing client"victoria-em7.2.1Zuul2020-09-084-6/+8
|\
| * Allow 4byte ASNs in dynamic routing clientJens Harbott2020-09-014-6/+8
| | | | | | | | | | | | | | | | | | | | Neutron-dynamic-routing has the bgp_4byte_asn extension which allows 4byte ASNs to be used, increasing the range of valid AS numbers. Since we cannot easily tell beforehand whether that extension is available, allow for the maximal interval to be used by clients and let the API validate the input. Change-Id: Ib4695272784b4a5ebbcb792cfec82dac3ef6f3cf
* | Merge "Add aggressive negotiation mode for ikepolicy"Zuul2020-09-082-1/+21
|\ \ | |/ |/|
| * Add aggressive negotiation mode for ikepolicyzhanghao2020-05-132-1/+21
| | | | | | | | | | | | | | | | The phase1 negotiation mode adds support for aggressive mode, which can be selected when creating an ikepolicy. Change-Id: I8148011558094db07b5f9eba70b16cfe6eeaf98f Partial-Bug: #1701413
* | Fix description of bgp speaker set argJens Harbott2020-07-121-1/+1
| | | | | | | | | | | | | | The name argument for bgp speaker set defines the new name for the speaker, make the description more clear about this. Change-Id: I29a0c87214c3c60084d0541f8b9a7abc72ff987f
* | Use unittest.mock instead of mock7.2.0Hervé Beraud2020-06-091-1/+1
| | | | | | | | | | | | | | | | The mock third party library was needed for mock support in py2 runtimes. Since we now only support py36 and later, we can use the standard lib unittest.mock module instead. Change-Id: Ia7226d968b8594677fc8dea664b58a80ba193ac5
* | Merge "Use unittest.mock instead of third party mock"Zuul2020-06-0549-51/+50
|\ \
| * | Use unittest.mock instead of third party mockSean McGinnis2020-06-0149-51/+50
| | | | | | | | | | | | | | | | | | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I12e1a2a4a22116cabd09a3b808f871d98e4bd1f2 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | | Merge "Stop to use the __future__ module."Zuul2020-06-0413-26/+0
|\ \ \
| * | | Stop to use the __future__ module.Hervé Beraud2020-06-0213-26/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: I65fb53db889afcf1a947ea61094bfab877853324
* | | Merge "Add segments client code"Zuul2020-06-031-0/+25
|\ \ \ | |/ / |/| |
| * | Add segments client codeelajkat2020-05-181-0/+25
| |/ | | | | | | | | | | | | Related-Bug: #1878632 Needed-By: https://review.opendev.org/728904 Change-Id: I85b8e7b3fb84e7e9fd133edffc300a83eeb7c56d
* | Remove usage of sixzhanghao2020-05-1514-50/+34
|/ | | | | | | | | | | With python3.x, classes can use 'metaclass=' instead of 'six.add_metaclass', 'six.iteritems' and 'six.iterkeys' can be replaced by 'items' and 'keys', 'six.moves.urllib.parse' can be replaced by 'urllib.parse', 'six.StringIO' and 'six.moves.cStringIO' can be replaced by 'io.StringIO', 'six.text_type' and 'six.string_type' are just 'str'. Change-Id: I357968c6a1932856b1600f6c191966bc90cbc258
* Replace 'bgp speaker show dragents' with 'bgp dragent list'7.1.0zhanghao2020-02-173-4/+204
| | | | | | | | | | | In order to follow other agent related commands in OSC, it is more appropriate and friendly to replace 'bgp speaker show dragents' with 'bgp dragent list'. this patch uses 'openstack bgp dragent list' to show the list of dragents, and the optional parameter 'bgp-speaker' shows the list of dragents hosting a specific bgp speaker. Change-Id: I9e0703fccf535b1e1a2055ed917336055b7395f5 Closes-Bug: #1858377
* Add support for port bindingsStephen Finucane2020-02-101-0/+25
| | | | | | | | | | | The port bindings API has been around since Pike but has never been exposed via neutronclient. We still use this in nova so it would be nice to avoid having to create a KSA client manually for this stuff. We don't need to expose things via the UI, just the client itself, so do that. Change-Id: Ied1a057186f0819166df84725b09ded314930a1d Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Sem-Ver: feature
* Convert exception to string before passing it in7.0.0Jay Faulkner2020-01-141-2/+2
| | | | | | | | | | | | | Before this change, neutronclient was passing in a raw exception as a kwarg to the ConnectionFailed exception. This caused an exception to be raised in _safe_decode_dict() due to the exception not being a text type. Now, we explicitly convert the raw exception to a string before passing it as a kwarg. Closes-bug: 1859068 Change-Id: I323b3aceec0a937874eabf770fbc82995202f6d6
* Avoid py36 error when printing unicode chars in a streamRodolfo Alonso Hernandez2020-01-101-6/+7
| | | | | | | | | The IOStream was not able to encode characters out of range 128: "UnicodeEncodeError: 'ascii' codec can't encode characters in position 19-21: ordinal not in range(128)" Change-Id: Ic95396a5cf73c49d332928857dc064819a6d7ea6 Closes-Bug: #1858421
* Merge "Drop python3 hack for XML serializer"Zuul2019-12-211-4/+0
|\
| * Drop python3 hack for XML serializerAkihiro Motoki2019-12-171-4/+0
| | | | | | | | | | | | | | | | | | It was added in https://review.opendev.org/#/c/110947/ to make the XML serializer work in python 3. We dropped the XML serializer support long ago. I believe we can drop it safely. Change-Id: I208de891515cb2cbdde779013ba58f19e36fc55c
* | Fix pep8 errors with hacking 2.0.0Akihiro Motoki2019-12-172-5/+5
|/ | | | Change-Id: I4737d4bc4fa116f45e2361eba93f48feae0161a4
* Remove 'public' and 'private' parameters in fwaas_v2zhanghao22019-10-014-82/+9
| | | | | | | | The 'public' and 'private' parameters have been replaced with 'share' and 'no-share' parameters in the Pike version, they can be removed now. Change-Id: I57a2e228ec1cdb6ed259914abc38bdada036d369
* Merge "Add router add/remove extra routes operations"6.14.0Zuul2019-09-131-0/+10
|\
| * Add router add/remove extra routes operationsBence Romsics2019-09-131-0/+10
| | | | | | | | | | | | | | | | | | Add methods to the client to call the two new member actions introduced by new Neutron extension: extraroute-atomic. Change-Id: Idb1fa073c2ff31f566b376cfa4f63cf27fecec86 Partial-Bug: #1826396 (rfe) Related-Change: https://review.opendev.org/655680 (spec)
* | Improve help textjiasirui2019-08-301-3/+3
|/ | | | Change-Id: Idc8f55567d0d4c95968d34d3b7aa95048623d9d0
* Fix string in headerOleg Bondarev2019-08-201-1/+1
| | | | | | | | | Commit ab426a791ad1937ea2cf3b340202b3968a378978 changed sha1 to sha256. Need to change string correspondingly Change-Id: I8b35350c32ab551d513f21325931d6697f62fb2f Related-Bug: #1759250