| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
To remove the useless shebang
Change-Id: I611c5bc47562f8def9a8623117b7b0655474b555
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
[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
|
| |
| |
| |
| | |
Change-Id: I9e3f41a2be56c1fd5fc3aff9af8e5ff5163087bd
|
|/
|
|
|
|
|
|
| |
inspect.getargspec() is deprecated since py3
[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec
Change-Id: I2ae460a7a7f01d7346d5e51ec6ccb44c22d0c53e
|
|
|
|
| |
Change-Id: I00065293daf6b2e5d540e056c05f85b82f8bc72c
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| | |
The phase1 negotiation mode adds support for aggressive mode,
which can be selected when creating an ikepolicy.
Change-Id: I8148011558094db07b5f9eba70b16cfe6eeaf98f
Partial-Bug: #1701413
|
| |
| |
| |
| |
| |
| |
| | |
The name argument for bgp speaker set defines the new name for the speaker,
make the description more clear about this.
Change-Id: I29a0c87214c3c60084d0541f8b9a7abc72ff987f
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
|/| | |
|
| |/
| |
| |
| |
| |
| |
| | |
Related-Bug: #1878632
Needed-By: https://review.opendev.org/728904
Change-Id: I85b8e7b3fb84e7e9fd133edffc300a83eeb7c56d
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
| |
Change-Id: I4737d4bc4fa116f45e2361eba93f48feae0161a4
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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)
|
|/
|
|
| |
Change-Id: Idc8f55567d0d4c95968d34d3b7aa95048623d9d0
|
|
|
|
|
|
|
|
|
| |
Commit ab426a791ad1937ea2cf3b340202b3968a378978 changed
sha1 to sha256.
Need to change string correspondingly
Change-Id: I8b35350c32ab551d513f21325931d6697f62fb2f
Related-Bug: #1759250
|