summaryrefslogtreecommitdiff
path: root/openstackclient/network
Commit message (Collapse)AuthorAgeFilesLines
* Blacken openstackclient.networkStephen Finucane2023-05-1032-2006/+2889
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I8048746dbc2ef0cb582f68934734db4c1153d779 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Fix pep issue in the network service providerArtem Goncharov2023-04-201-10/+16
| | | | | | | | pep gods started complaining (correctfully) about spacing in the old command. Apply `black -l 79` on the file to make it looking nice and passing checks. Change-Id: I716f6a1496fc552b32809c7eb744283f3a3cd5a4
* Show Network QoS rules one per lineRodolfo Alonso Hernandez2023-03-281-1/+12
| | | | | | | | The command "network show qos policy <qos>" now shows the QoS rules printed one per line. Example: https://paste.opendev.org/show/bgam6amfLUVheAMhDxB3/ Change-Id: I65a99da16056902a822804e29b2dd9376a72e091
* Merge "Add port ranges on floating ip portforwardings cli"Zuul2023-02-221-32/+70
|\
| * Add port ranges on floating ip portforwardings cliPedro Martins2022-07-131-32/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch is 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 Change-Id: If9679c87fd8b770fcd960048e091ee8d59205285 Implements: blueprint floatingips-portforwarding-ranges Related-Bug: #1885921
* | Merge "Move network trunk commands from python-neutronclient"Zuul2023-01-311-0/+402
|\ \
| * | Move network trunk commands from python-neutronclientelajkat2023-01-161-0/+402
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network trunk commands originally were added to python-neutronclient, although we can long consider these operations core Networking operations. This patch is not a blind copy but also changes the original code to use openstacksdk python bindings instead of the binding code in python-neutronclient as that is already deprecated. Change-Id: Ic4bc35c296a95d5dae92e9fc1cab3a3fa8f103cd Related-Bug: #1999774
* | | Add qos rule type filteringRodolfo Alonso Hernandez2022-12-101-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added two new filter flags to ``openstack network qos rule type list``: - "--all-supported", to return any QoS rule type supported by at least one loaded driver. - "--all-rules", to return all QoS rule types supported by the current version of Neutron server, regardless of the loaded drivers. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/827671 Depends-On: https://review.opendev.org/c/openstack/neutron/+/827683 Related-Bug: #1959749 Change-Id: Ie0622e79ecf7dadd6560fea142352f5a2ed66b74
* | | Add baremetal agent type list filteringMaksim Malchuk2022-11-091-3/+4
|/ / | | | | | | | | | | | | | | | | | | | | This change adds and ability to filter out the baremetal nodes in 'network agent list' command. Related-Story: 2008590 Related-Task: 41746 Related-Bug: #1658964 Change-Id: I01ffbd82662abbc1c2f56eb8f1e700f392bc063c Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
* | Merge "Improve help text for network create --external"Zuul2022-09-301-4/+8
|\ \
| * | Improve help text for network create --externalBence Romsics2022-09-261-4/+8
| | | | | | | | | | | | | | | Change-Id: Ie802fbb8a35e53dcb79b5581f64caa2db1609480 Closes-Bug: #1990285
* | | Merge "network: Add tenant project filter for RBAC list"Zuul2022-09-301-0/+15
|\ \ \
| * | | network: Add tenant project filter for RBAC listJan Hartkopf2022-09-061-0/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements a new parser argument "--target-project" to list RBAC policies for a specific tenant project only. This uses the already existing server-side query parameter "target_tenant". Story: 2009937 Task: 44824 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/834442 Change-Id: I83ff07041a022e8795e3c5550c6a7aabb0c0d8c8 Signed-off-by: Jan Hartkopf <jhartkopf@inovex.de>
* | | Merge "Fix missing closing brackets in metavar"Zuul2022-09-301-2/+2
|\ \ \ | |/ / |/| |
| * | Fix missing closing brackets in metavarTakashi Kajinami2022-08-261-2/+2
| | | | | | | | | | | | | | | | | | ... to display the complete format in --help output. Change-Id: I4d0f044072b206f6205b4b4f4992fd08f01729d6
* | | Add router ndp proxy commandsYang JianFeng2022-08-262-0/+310
|/ / | | | | | | | | | | Depends-on: https://review.opendev.org/749036 Change-Id: I77e12cc2dfe4000bd5ae6511878c6591f52d9791 Related-Bug: #1877301
* | Add support for CRUD operations for QoS minimum packet rate rulePrzemyslaw Szczerbik2022-07-011-5/+35
| | | | | | | | | | | | | | Closes-Bug: #1922237 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/810364 See-Also: https://review.opendev.org/785236 Change-Id: Ie7e1eb0575fd37121d5097ecbc318d0769ab3db0
* | Don't show tenant_id in network objectsDr. Jens Harbott2022-06-2719-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | Patch [0] dropped mapping the tenant_id attribute to project_id. However, the Neutron API still returns the tenant_id attribute in addition to the project_id and so we still need to discard it from the output. [0] I5f62f2a76592eaaaed6703624e959df41a6ecc8f Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: Iba1e003bf587802f28928cb44d160b3b3fb1f840
* | Refactor network fakes to sdk properties PART 4Nurmatov Mamatisa2022-04-294-5/+5
|/ | | | | | | | | | Included resources: port network_agent network_flavor_profile network_rbac Change-Id: I2e71a3c0fefb56ddcc75865c95746550e2710aa3
* Refactor network fakes to sdk properties PART 2Nurmatov Mamatisa2022-03-151-1/+1
| | | | | | | | Included resources: ip_availibility network Change-Id: I141bcb43272594da75e776a84a74158fc866ac94
* Refactor network fakes to sdk properties PART 1Nurmatov Mamatisa2022-03-153-3/+3
| | | | | | | | | | Included resources: address_group address_scope auto_allocated_topology availability_zone Change-Id: I943f988588efbe68dd3ab17a18441b25ac8c8d4d
* Merge "Fix metavars and typos in local_ip"Zuul2022-03-092-14/+14
|\
| * Fix metavars and typos in local_ipNurmatov Mamatisa2022-03-022-14/+14
| | | | | | | | Change-Id: I2094f343e3353da25f9c5057ea5444345e271665
* | Merge "Add support for setting extra DHCP options on existing ports"5.8.0Zuul2022-02-251-0/+15
|\ \
| * | Add support for setting extra DHCP options on existing portsSlawek Kaplonski2022-02-211-0/+15
| |/ | | | | | | | | | | | | | | | | It is now possible to set extra DHCP option for an existing port using "port set" command. It works in the same way like during port creation. Story: 2009095 Task: 42927 Change-Id: I3577d4e3a303137b708ae8687c44b486aa82e296
* | Merge "Add support for 'remote-managed' vnic type"Zuul2022-02-231-2/+3
|\ \ | |/ |/|
| * Add support for 'remote-managed' vnic typeFrode Nordahl2022-02-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | The 'remote-managed' vnic type will 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 Depends-On: I496db96ea40da3bee5b81bcee1edc79e1f46b541 Change-Id: I566c3da594d757dd62edcf7f9ea3077db8d6b11a
* | Support Neutron Local IP CRUDNurmatov Mamatisa2022-01-282-0/+507
|/ | | | | | | | | Add support for Neutron Local IP CRUD operations. Partial-Bug: #1930200 Depends-On: https://review.opendev.org/c/openstack/neutron/+/804523 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/804988 Change-Id: I1095100efb27b8559412469f0a9d07fc0a3db9d5
* Get rid of tenant_id in the network commandsArtem Goncharov2022-01-1720-69/+26
| | | | | | Finally drop tenant_id completely from the networking service. Change-Id: I5f62f2a76592eaaaed6703624e959df41a6ecc8f
* Merge "Add --security-group to port list"Zuul2022-01-131-0/+9
|\
| * Add --security-group to port listRodolfo Alonso Hernandez2021-12-021-0/+9
| | | | | | | | | | | | | | | | | | The neutron API supports filtering ports by security group. Closes-Bug: #1405057 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/804979 Change-Id: I0f626882716c21ac200c1b929ea04664d21874d8
* | Hide location columns for network objectsDr. Jens Harbott2021-12-1625-26/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | Network objects returned from the SDK include a location column which has a reference to the cloud to which the object belongs. We don't want to include them in CLI output where they are useless. The solution implemented in [0] was dropped as a sideeffect in [1]. [0] https://review.opendev.org/c/openstack/python-openstackclient/+/679445 [1] https://review.opendev.org/c/openstack/python-openstackclient/+/815032 Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I9a408d9721c9c57d752afaab520cd6ee379a5184
* | Merge "Allow unset port's host_id"Zuul2021-12-131-0/+8
|\ \
| * | Allow unset port's host_idSlawek Kaplonski2021-11-281-0/+8
| |/ | | | | | | | | | | | | | | | | It is supported by Neutron and needs to be done like that when e.g. admin wants to unbound port from the host. Task: #44043 Story: #2009705 Change-Id: I08f1bb40f4dc72cfa7c62feeb5f513455de0ca45
* | Allow setting gateway when creating a routerDr. Jens Harbott2021-12-091-23/+56
| | | | | | | | | | | | | | | | These options are not only valid when modifying a router, but also when one is created initially. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I3e12901f37cbd1639ac9dc9cc49b04114b80474c
* | Merge "Add --subnet-pool to subnet list"Zuul2021-11-251-0/+10
|\ \ | |/ |/|
| * Add --subnet-pool to subnet listBrian Haley2021-03-161-0/+10
| | | | | | | | | | | | | | The neutron API supports filtering subnets by subnet pool id, but the CLI was missing support for it. Change-Id: Ic230c2c5cda8255d8f2c422880aeac81670b2df3
* | Remove 'get_osc_show_columns_for_sdk_resource' duplicatesStephen Finucane2021-10-2126-129/+27
| | | | | | | | | | | | | | | | | | | | | | | | There were a number of 'get_osc_show_columns_for_sdk_resource' defined in-tree. However, osc-lib has provided this method for some time (since 2.2.0, June 2020 [1] - our minimum version is currently 2.3.0) so there's no need to provide our own copies. Remove them. [1] https://github.com/openstack/osc-lib/commit/29a0c5a5 Change-Id: I25695f4f9a379dd691b7eaa1e3247164668ae77e Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | L3 conntrack helper: Use singular name consistentlyAkihiro Motoki2021-06-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | We use singular form for delete command argument in all places. This commit replaces conntrack-helper-ids with a singular form. The only visible change is a fix for the help message below. openstack network l3 conntrack helper delete <router> <conntrack-helper-ids> [<conntrack-helper-ids> ...] Change-Id: I50bbd9f6199071bb86cbb2f37c45ebda1de58433
* | Add support for Neutron's L3 conntrack helper resourceSlawek Kaplonski2021-06-071-0/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Neutron has got CRUD API for L3 conntrack helper since some time. This patch adds support for it in the OSC. OpenStack SDK supports that since [1] This patch also bumps minimum OpenStack SDK version to the 0.56.0 as that version introduced support for the Neutron's L3 conntrack helper. [1] https://review.opendev.org/c/openstack/openstacksdk/+/782870 Change-Id: I55604182ae50b6ad70c8bc1f7efad8859f191269
* | Allow to send extra attributes in Neutron related commandsSlawek Kaplonski2021-05-2622-47/+286
| | | | | | | | | | | | | | | | | | | | To deprecate and drop support for neutronclient CLI and use only OSC we need feature parity between OSC and neutronclient. Last missing piece here is possibility to send in POST/PUT requests unknown parameters to the Neutron server. This patch adds such possibility to the OSC. Change-Id: Iba09297c2be9fb9fa0be1b3dc65755277b79230e
* | Merge "network: Add support for vnic-type vdpa"Zuul2021-03-311-5/+9
|\ \
| * | network: Add support for vnic-type vdpaSean Mooney2021-03-191-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Extend 'port create' to support vinc-type vdpa as introduced by neutron in [1]. [1] https://review.opendev.org/c/openstack/neutron/+/760047 Change-Id: I635c5269f4e8fc55f234c98e85fced87b39fce81
* | | Merge "Hides prefix_length column in subnet show output"Zuul2021-03-201-1/+1
|\ \ \
| * | | Hides prefix_length column in subnet show outputJames Denton2021-03-191-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the openstacksdk is patched to properly support defining prefix lengths when creating subnets, the resulting subnet show output reveals a prefix_length column with a value of 'none'. This patch hides the prefix_length column. Change-Id: I59dfb0b1585ed624f9d82b3557df2ff5ff9d1b3e Partial-Bug: 1754062 Depends-On: https://review.openstack.org/#/c/550558/
* | | network: Make 'network qos rule create --type' option requiredStephen Finucane2021-03-191-3/+1
|/ / | | | | | | | | | | | | | | | | | | When we create a network qos rule we need specify the type so that we can call the corresponding API. It's not possible to use the command without the type so mark it as required. This was already being done but inline. Change-Id: I559f884bac198d2c69e800620aef66b200473418 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | network: Add missing subnet unset --gateway <subnet-id>Bharat Kunwar2021-03-051-0/+7
|/ | | | | | Story: 2008695 Task: 42003 Change-Id: I9486a09531b11f27a9ff0d68fd4ad8c68a65cccf
* Merge "Add --name to port list"Zuul2021-03-031-0/+7
|\
| * Add --name to port listBrian Haley2021-02-231-0/+7
| | | | | | | | | | | | | | | | | | The neutron API supports filtering ports by name, but the CLI was missing support for it like it does for other networking resources. Change-Id: I4ff339e18656013218a26f045b205cb7a02dd2fb Story: #2008654
* | Add 'address_group' type support to rbac commandsMiguel Lavalle2021-02-101-8/+14
|/ | | | | Depends-On: https://review.opendev.org/c/openstack/neutron/+/772460 Change-Id: Icd5e96d180364b979d1e93fcb39f9133a41a06e5