summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/network
Commit message (Collapse)AuthorAgeFilesLines
* Add support for CRUD operations for QoS minimum packet rate rulePrzemyslaw Szczerbik2022-07-012-7/+327
| | | | | | | Closes-Bug: #1922237 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/810364 See-Also: https://review.opendev.org/785236 Change-Id: Ie7e1eb0575fd37121d5097ecbc318d0769ab3db0
* Refactor network fakes to sdk properties PART 4Nurmatov Mamatisa2022-04-2912-425/+405
| | | | | | | | | | Included resources: port network_agent network_flavor_profile network_rbac Change-Id: I2e71a3c0fefb56ddcc75865c95746550e2710aa3
* Refactor network fakes to sdk properties PART 3Nurmatov Mamatisa2022-03-165-240/+199
| | | | | | | | | Included resources: network_flavor network_segment network_segment_range Change-Id: If5ce0a07052d9dc0edb4f5f22806635b5bb6a523
* Refactor network fakes to sdk properties PART 2Nurmatov Mamatisa2022-03-1512-219/+220
| | | | | | | | Included resources: ip_availibility network Change-Id: I141bcb43272594da75e776a84a74158fc866ac94
* Refactor network fakes to sdk properties PART 1Nurmatov Mamatisa2022-03-157-255/+226
| | | | | | | | | | Included resources: address_group address_scope auto_allocated_topology availability_zone Change-Id: I943f988588efbe68dd3ab17a18441b25ac8c8d4d
* Merge "Fix metavars and typos in local_ip"Zuul2022-03-091-1/+1
|\
| * Fix metavars and typos in local_ipNurmatov Mamatisa2022-03-021-1/+1
| | | | | | | | Change-Id: I2094f343e3353da25f9c5057ea5444345e271665
* | Add support for setting extra DHCP options on existing portsSlawek Kaplonski2022-02-211-0/+21
|/ | | | | | | | | 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
* Support Neutron Local IP CRUDNurmatov Mamatisa2022-01-283-0/+946
| | | | | | | | | 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-1719-133/+77
| | | | | | Finally drop tenant_id completely from the networking service. Change-Id: I5f62f2a76592eaaaed6703624e959df41a6ecc8f
* Merge "Add --security-group to port list"Zuul2022-01-131-0/+20
|\
| * Add --security-group to port listRodolfo Alonso Hernandez2021-12-021-0/+20
| | | | | | | | | | | | | | | | | | 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
* | Add location to fake network objectsDr. Jens Harbott2021-12-161-4/+30
| | | | | | | | | | | | | | | | | | | | Network objects returned from the SDK include a location column which has a reference to the cloud to which the object belongs. Add this column to our fake objects used for testing, so that we can make sure we don't include them in CLI output where they are useless. Change-Id: Ib09027af78e7bf2458cdc76ea9027faa3dbbfcf9 Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
* | Merge "Allow unset port's host_id"Zuul2021-12-131-1/+4
|\ \
| * | Allow unset port's host_idSlawek Kaplonski2021-11-281-1/+4
| |/ | | | | | | | | | | | | | | | | 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-0/+37
| | | | | | | | | | | | | | | | 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/+42
|\ \ | |/ |/|
| * Add --subnet-pool to subnet listBrian Haley2021-03-161-0/+42
| | | | | | | | | | | | | | 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-211-59/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge "L3 conntrack helper: Use singular name consistently"Zuul2021-08-261-2/+2
|\ \
| * | L3 conntrack helper: Use singular name consistentlyAkihiro Motoki2021-06-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Replace assertItemsEqual with assertCountEqual"Zuul2021-08-2310-145/+145
|\ \ \ | |/ / |/| |
| * | Replace assertItemsEqual with assertCountEqualDirk Mueller2021-05-0310-145/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertItemsEqual was removed from Python's unittest.TestCase in Python 3.3 [1][2]. We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertCountEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - testing-cabal/testtools#286 [4] - testing-cabal/testtools#277 Change-Id: I0bbffbec8889b8b3067cfe17d258f5cb16624f38
* | | Add support for Neutron's L3 conntrack helper resourceSlawek Kaplonski2021-06-072-0/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-262-0/+198
|/ / | | | | | | | | | | | | | | | | | | 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
* | network: Add missing subnet unset --gateway <subnet-id>Bharat Kunwar2021-03-051-0/+4
|/ | | | | | Story: 2008695 Task: 42003 Change-Id: I9486a09531b11f27a9ff0d68fd4ad8c68a65cccf
* Merge "Add --name to port list"Zuul2021-03-031-0/+20
|\
| * Add --name to port listBrian Haley2021-02-231-0/+20
| | | | | | | | | | | | | | | | | | 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-1/+5
|/ | | | | Depends-On: https://review.opendev.org/c/openstack/neutron/+/772460 Change-Id: Icd5e96d180364b979d1e93fcb39f9133a41a06e5
* Merge "Add device profile to ``port``"Zuul2021-01-222-0/+30
|\
| * Add device profile to ``port``Rodolfo Alonso Hernandez2021-01-192-0/+30
| | | | | | | | | | | | | | | | Added device profile parameter to ``port create`` command. Related-Bug: #1906602 Change-Id: I4c222ac334d3a0a0ee568ed1e0bc8518baa375e1
* | Support remote-address-group in SG rulesHang Yang2021-01-122-0/+44
|/ | | | | | | | Add support for using remote-address-group in security group rules. Change-Id: Ib1972244d484839943bc3cda07519a6c6d4b945a Implements: blueprint address-groups-in-sg-rules Depends-On: https://review.opendev.org/755644
* Merge "network: Address nits for I3c313fc9329837dde67815901528a34dca98ebcc"Zuul2021-01-121-4/+3
|\
| * network: Address nits for I3c313fc9329837dde67815901528a34dca98ebccStephen Finucane2021-01-121-4/+3
| | | | | | | | | | | | | | Address comments left in the review for $subject. Change-Id: I69449112027736152c9fb62f5fe427efd6a25107 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | Merge "Support Neutron Address Group CRUD"Zuul2021-01-112-0/+576
|\ \ | |/
| * Support Neutron Address Group CRUDHang Yang2020-12-242-0/+576
| | | | | | | | | | | | | | | | | | | | Add support for Neutron address group CRUD operations. Subsequent patches will be added to use address groups in security group rules. Change-Id: I3c313fc9329837dde67815901528a34dca98ebcc Implements: blueprint address-groups-in-sg-rules Depends-On: https://review.opendev.org/738274 Depends-On: https://review.opendev.org/745594
* | Make use of comparable 'FormattableColumn' subclassesStephen Finucane2020-12-099-136/+136
|/ | | | | | | | | | | | This requires fixes found in cliff 3.5.0 [1] and osc-lib 2.3.0 [2]. With these fixes in place, we can remove the icky, still broken 'assertItemEqual' and 'assertListItemEqual' helpers. [1] https://review.opendev.org/761421 [2] https://review.opendev.org/761394 Change-Id: Id6c26b37c3c7d5ec6761361abca57f9219b76838 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Add "fields" parameter to ListPort queryRodolfo Alonso Hernandez2020-11-181-19/+55
| | | | | | | | | | | | | | | | | | | | | This new query parameter will allow to send a query to the Neutron server filtering only by those parameters needed by the list command: ID, name, MAC address, fixed IPs and status. When using input parameter "long", security groups IDs, device owner and tags will be added to the fields filter. With 4500 ports, those are the execution times for the command "openstack port list" (average values in a development environment): Neutron API (seconds) CLI (seconds) Without filter: 3.05 10.15 With filter: 2.76 8.19 Depends-On: https://review.opendev.org/#/c/754113/ Change-Id: I1cccf0bc3533f8085e8dd61bf2fbe78c49b74b31 Closes-Bug: #1897100
* Merge "Always display direction for security group rules"Zuul2020-10-132-8/+9
|\
| * Always display direction for security group rulesSam Morrison2020-03-052-8/+9
| | | | | | | | | | | | | | The --long option is still accepted but is now ignored. Change-Id: I23dd9fa7cff310ee9a62ce32b843b822b93b7548 Story: #2007323
* | Merge "Add source_ip_prefix and destination_ip_prefix to metering label rules"Zuul2020-10-132-0/+14
|\ \
| * | Add source_ip_prefix and destination_ip_prefix to metering label rulesRafael Weingärtner2020-09-022-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As proposed in the RFE and then approved in the spec, we are adding to the neutron metering rules two new parameters. The source IP prefix, and destination IP prefix. Partially-Implements: https://bugs.launchpad.net/neutron/+bug/1889431 RFE: https://bugs.launchpad.net/neutron/+bug/1889431 Depends-On: https://review.opendev.org/#/c/746586/ Change-Id: Ic44d88fabea0fffef2279f2f2c3d2b1da6426d4d
* | | Fix: port attribute name propagate_uplink_statuspedh2020-10-062-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Change the incorrect port attribute name "uplink_status_propagation" to "propagate_uplink_status". Change-Id: Icd7c49af8d988a6e3a52a58c784bd701b2d36faf Closes-Bug: #1891873
* | | Merge "Support tagging Neutron ports on creation"Zuul2020-09-131-13/+45
|\ \ \
| * | | Support tagging Neutron ports on creationMiguel Lavalle2020-09-041-13/+45
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This change adds support for tagging ports on creation Co-Authored-By: Slawek Kaplonski <skaplons@redhat.com> Change-Id: I3148a568664588eb2f529138f984859570c0fca1 Related-Bug: #1815933
* | | Add NUMA affinity policy parameter to "port"Rodolfo Alonso Hernandez2020-07-312-0/+96
|/ / | | | | | | | | | | | | | | Added port NUMA affinity policy parameter to "port create", "port set" and "port unset" commands. Change-Id: I48cacab275856af2911829f9b7176bb87fd039b3 Related-Bug: #1886798
* | Merge "port: add --host to list command"Zuul2020-06-261-0/+16
|\ \
| * | port: add --host to list commandMohammed Naser2020-06-171-0/+16
| | | | | | | | | | | | | | | | | | | | | This adds an option to allow filtering ports bound to a specific host when listing them. Change-Id: I747ed0f8b070074c51789576a158345f670fe733
* | | Resolve PEP8Pete Zaitcev2020-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | No idea how this happened, but reviews started failing the pep8 gate job. The failures are legitimate, see the commit. I guess the pep8 tests became smarter and found these issues. Change-Id: Id9a0dad644134dafd68eed37fe8f41c583d7a619
* | | Merge "Revert "Disallow setting default on internal network""Zuul2020-04-221-33/+0
|\ \ \