ansible-collections-openstack/tests
Jakob Meng 0ec16fbecc Dropped extra interfaces_info attribute from routers_info module
routers_info's interfaces_info attribute is not provided by
openstacksdk, it is added to each router resource by the routers_info
module after retrieving the routers list. To get the required data
list_router_interfaces() [1] is being called for each router resource
which then retrieves all ports for each router. This requires extra
api calls which might be useless because we do not know whether the
user actually cares about the ports. For getting ports of a router
we have the openstack.cloud.ports module. So instead of proactively
retrieving the router ports we drop the interfaces_info attribute.

The interfaces_info attribute was introduced because retrieving
interfaces via openstacksdk and openstack.cloud modules was
complex in the past [2]. Nowadays, using openstack.cloud.ports
Ansible and Jinja2 filters retrieving ip addresses of a router
is straight forward. In case someone still needs the old
interfaces_info attribute, one can refer to the module example
to see how it could be reproduced. But in general, retrieving the
router interfaces is much easier as can be seen in the updated
integration tests.

[1] 3f81d0001d/openstack/cloud/_network.py (L1926)
[2] https://review.opendev.org/c/openstack/ansible-collections-openstack/+/703927/6/plugins/modules/os_routers_info.py

Change-Id: I7fbdf11d07c95421d3aee800bfeebb88ea829817
2022-08-11 08:37:10 +00:00
..
sanity Move CI to use Ansible 2.12 version as main 2021-10-04 15:05:51 +03:00
unit Dropped extra interfaces_info attribute from routers_info module 2022-08-11 08:37:10 +00:00
.gitignore Migrate openstack modules as a collection 2020-01-17 14:07:24 +00:00
constraints-none.txt Refactored tox requirements for different Ansible releases 2022-03-31 10:35:16 +00:00
constraints-openstacksdk-0.x.x.txt Updated pip constraints for release candidates of OpenStackSDK's first major release 2022-05-23 14:07:41 +02:00
constraints-openstacksdk-1.x.x.txt Updated pip constraints for release candidates of OpenStackSDK's first major release 2022-05-23 14:07:41 +02:00
requirements-ansible-2.9.txt Refactored tox requirements for different Ansible releases 2022-03-31 10:35:16 +00:00
requirements-ansible-2.11.txt Refactored tox requirements for different Ansible releases 2022-03-31 10:35:16 +00:00
requirements-ansible-2.12.txt Refactored tox requirements for different Ansible releases 2022-03-31 10:35:16 +00:00
requirements.txt Applied workaround in CI for issue #78017 in ansible-core 2022-06-26 13:07:34 +02:00