summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/network/v2/fakes.py
Commit message (Collapse)AuthorAgeFilesLines
* Blacken openstackclient.networkStephen Finucane2023-05-101-121/+148
| | | | | | | | | | 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>
* Merge "Add port ranges on floating ip portforwardings cli"Zuul2023-02-221-7/+31
|\
| * Add port ranges on floating ip portforwardings cliPedro Martins2022-07-131-7/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Move network trunk commands from python-neutronclientelajkat2023-01-161-0/+69
| | | | | | | | | | | | | | | | | | | | | | 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 router ndp proxy commandsYang JianFeng2022-08-261-0/+73
| | | | | | | | | | | | 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-1/+6
| | | | | | | | | | | | | | 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-291-291/+260
|/ | | | | | | | | | Included resources: port network_agent network_flavor_profile network_rbac Change-Id: I2e71a3c0fefb56ddcc75865c95746550e2710aa3
* Refactor network fakes to sdk properties PART 3Nurmatov Mamatisa2022-03-161-180/+156
| | | | | | | | | Included resources: network_flavor network_segment network_segment_range Change-Id: If5ce0a07052d9dc0edb4f5f22806635b5bb6a523
* Refactor network fakes to sdk properties PART 2Nurmatov Mamatisa2022-03-151-155/+132
| | | | | | | | Included resources: ip_availibility network Change-Id: I141bcb43272594da75e776a84a74158fc866ac94
* Refactor network fakes to sdk properties PART 1Nurmatov Mamatisa2022-03-151-215/+196
| | | | | | | | | | Included resources: address_group address_scope auto_allocated_topology availability_zone Change-Id: I943f988588efbe68dd3ab17a18441b25ac8c8d4d
* Fix metavars and typos in local_ipNurmatov Mamatisa2022-03-021-1/+1
| | | | Change-Id: I2094f343e3353da25f9c5057ea5444345e271665
* Support Neutron Local IP CRUDNurmatov Mamatisa2022-01-281-0/+138
| | | | | | | | | 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-171-62/+21
| | | | | | Finally drop tenant_id completely from the networking service. Change-Id: I5f62f2a76592eaaaed6703624e959df41a6ecc8f
* 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>
* Add support for Neutron's L3 conntrack helper resourceSlawek Kaplonski2021-06-071-0/+75
| | | | | | | | | | | | | | 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
* Merge "Add device profile to ``port``"Zuul2021-01-221-0/+1
|\
| * Add device profile to ``port``Rodolfo Alonso Hernandez2021-01-191-0/+1
| | | | | | | | | | | | | | | | Added device profile parameter to ``port create`` command. Related-Bug: #1906602 Change-Id: I4c222ac334d3a0a0ee568ed1e0bc8518baa375e1
* | Support remote-address-group in SG rulesHang Yang2021-01-121-0/+1
|/ | | | | | | | 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
* Support Neutron Address Group CRUDHang Yang2020-12-241-0/+73
| | | | | | | | | | 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
* Merge "Add source_ip_prefix and destination_ip_prefix to metering label rules"Zuul2020-10-131-0/+2
|\
| * Add source_ip_prefix and destination_ip_prefix to metering label rulesRafael Weingärtner2020-09-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-061-3/+3
| | | | | | | | | | | | | | | | Change the incorrect port attribute name "uplink_status_propagation" to "propagate_uplink_status". Change-Id: Icd7c49af8d988a6e3a52a58c784bd701b2d36faf Closes-Bug: #1891873
* | Add NUMA affinity policy parameter to "port"Rodolfo Alonso Hernandez2020-07-311-0/+1
|/ | | | | | | | Added port NUMA affinity policy parameter to "port create", "port set" and "port unset" commands. Change-Id: I48cacab275856af2911829f9b7176bb87fd039b3 Related-Bug: #1886798
* 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 "Support for stateless security groups"Zuul2020-04-081-0/+1
|\
| * Support for stateless security groupsTom Stappaerts2020-03-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | Add support for stateful attribute of security groups, using --stateful and --no-stateful flag on security group. This allows a user to create security groups with stateful false. Change-Id: Ifd20b5fc47fd0ea0bb5aeda84820dcc0fb1e8847 Blueprint: stateless-security-groups Depends-On: https://review.opendev.org/711513/
* | Add description field to portforwarding NAT rulespedro2020-04-021-0/+1
| | | | | | | | | | | | | | | | | | Add the `description` field to Floating IP Port Forwardings Depends-On: https://review.opendev.org/#/c/705038/ Change-Id: I6477368e32570c96cacddba4f86455262e533277 Implements: blueprint portforwarding-description Closes-Bug: #1850818
* | Merge "Add qos_network_policy_id to network port tests"Zuul2020-03-131-0/+1
|\ \ | |/ |/|
| * Add qos_network_policy_id to network port testsRodolfo Alonso Hernandez2020-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | Added "qos_network_policy_id" to "port show" command. Because this is just a read-only parameter and is read from the SDK port definition, this patch only modifies the corresponding tests. This patch is adding this new parameter to the test bench. Change-Id: Ice7423e0e0b98a39cc36622b70eae5a8493a037c Closes-Bug: #1851362
* | Raise flake8-import-order version to latestSean McGinnis2020-01-101-2/+1
|/ | | | | | | | | | | We had this library capped at a release that is a few years old. Now that we have dropped py2 testing, we can pick up the latest version. This uncovered a few things to clean up. Mostly the fact that mock is now a part of the StdLib unittest since Python 3.3. Change-Id: I27484dd4c25378413ff16e97a35a1a46062357bc Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Merge "Add floating IP Port Forwarding commands"Zuul2019-09-091-0/+77
|\
| * Add floating IP Port Forwarding commandsLIU Yulong2019-08-291-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | Add following commands: floating ip port forwarding create floating ip port forwarding delete floating ip port forwarding list floating ip port forwarding set floating ip port forwarding show Closes-Bug: #1811352 Change-Id: I6a5642e8acce28fc830410d4fa3180597b862761
* | Bump hacking versionStephen Finucane2019-08-271-1/+1
|/ | | | | | | | Pick up newer versions of this library. Thankfully no serious changes are needed. Change-Id: I69e523844529fc1c8aa0c1ce764182dbe29cfeb6 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Change default security group protocol to 'any'Brian Haley2019-05-061-1/+1
| | | | | | | | | | | | | | The default protocol used to create a security rule was changed to ``tcp``, which was a regression from the neutron client. Change it back to ``any``, which skips sending the protocol to the API server entirely when using the Neutron v2 API. Users that had been creating rules without specifying a protocol and expecting ``tcp`` need to change to use ``--protocol tcp`` explicitly. Change-Id: Iedaa027240e00dced551513d8fa828564386b79f Closes-bug: #1716789
* Merge "Add 'security_group' type support to network rbac commands"Zuul2019-03-111-0/+33
|\
| * Add 'security_group' type support to network rbac commandsDoug Wiegley2019-03-051-0/+33
| | | | | | | | | | | | Partial-Bug: #1817119 Depends-On: https://review.openstack.org/635311 Change-Id: I5f132fa54714514d8dae62df8bc494f3f6476768
* | Merge "Add network segment range command object"3.18.0Zuul2019-03-081-0/+60
|\ \
| * | Add network segment range command objectKailun Qin2019-03-071-0/+60
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add network segment range command object in support of network segment range management. This patch set includes documentation, unit tests and functional tests (currently skipped unit network segment range enabled in Neutron by default) for the following new commands: - "os network segment range create" - "os network segment range delete" - "os network segment range list" - "os network segment range set" - "os network segment range show" Co-authored-by: Allain Legacy <Allain.legacy@windriver.com> [depends on removed by dtroyer as those are all +W and trying to pass the gate, OSC has it's freeze dealine looming] Depends: https://review.openstack.org/624708 Depends: https://review.openstack.org/624709 Depends: https://review.openstack.org/638386 Partially-implements: blueprint network-segment-range-management Change-Id: I335692f2db5be07c1c164f09b13f1abb80b7ba33
* | Add support for get details of QuotaSławek Kapłoński2019-02-241-0/+23
|/ | | | | | | | | | With passing "--detail" argument to "openstack quota list", details about current usage should be returned. It is currently supported by Nova and Neutron so details of resources from those projects can be returned. Change-Id: I48fda15b34283bb7c66ea18ed28262f48b9229fe Related-Bug: #1716043
* Support enable/disable uplink status propagationHongbin Lu2018-12-051-0/+3
| | | | | | | | | | | | | Add options to enable/disable uplink status propagation on creating a neutron port. Related patches: * neutron: https://review.openstack.org/#/c/571899/ * openstacksdk: https://review.openstack.org/#/c/586687/ Depends-On: https://review.openstack.org/#/c/586687/ Change-Id: I095a98fc5f5aee62d979a16b3cd79d91ec3b9ddb Related-Bug: #1722720
* Merge "Add dns-domain support to Network object"Zuul2018-08-071-0/+1
|\
| * Add dns-domain support to Network objectPierre Hanselmann2018-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Network: Add tag support for security group"Zuul2018-06-251-0/+1
|\ \ | |/ |/|
| * Network: Add tag support for security groupDongcan Ye2018-06-141-0/+1
| | | | | | | | | | Change-Id: Icccb23429913724c6a8bd15d4737672b47a5f13a Closes-Bug: #1750983
* | Merge "Network: Add tag support for floating ip"Zuul2018-04-231-0/+1
|\ \
| * | Network: Add tag support for floating ipDongcan Ye2018-04-171-0/+1
| |/ | | | | | | | | Change-Id: I7a500a4ff6cec2442b4050df26c0b017d9f71903 Closes-Bug: #1750985
* | Merge "neutron: add --mtu for create/set network"Zuul2018-03-231-0/+1
|\ \
| * | neutron: add --mtu for create/set networkEmilien Macchi2018-03-151-0/+1
| | | | | | | | | | | | | | | | | | | | | Support Neutron network mtu configuration with a new argument, --mtu that allows CLI users to set MTU for Neutron networks. Change-Id: I93d23581c7e8c84eaf9bb3b293360036f60f456b
* | | Merge "Remove duplicated network attributes"Zuul2018-03-231-1/+0
|\ \ \ | |/ / |/| |
| * | Remove duplicated network attributesDongcan Ye2018-03-141-1/+0
| |/ | | | | | | Change-Id: If77609d06e7d80c8da5111b8a30036b58fbfa187