Describe the bug
When I run a task using purefa_network to configure one or multiple interface addresses I always get the status: changed result even if the interface is already configured with the same settings the task is fed with. Seems idempotence is missing.
To Reproduce
Steps to reproduce the behavior:
Configure an interface with some settings (either manually or via Ansible)
Create a task using purefa_network to configure the same interface with the same settings
Ansible shows the output of changed every time the task runs, no matter if you run it a 2nd time or 3rd time...
Expected behavior
Ansible report with status: ok instead of status: changed when using purefa_network on an already configured interface with the same settings
Screenshots
Ansible output with verbosity 3 (-vvv) every time purefa_network task runs:
Desktop (please complete the following information):
OS: Ubuntu Mate 22.04
Collection purestorage.flasharray: 1.17.2
ansible: core 2.12.9
Additional context
I have a theory that this might be due to the way we feed the address to the purefa_network module, we provide the IP address in the form of IP/netmask but the output (and the GUI) shows that address is one field and netmask is a different field. Not entirely sure about this though.
Describe the bug When I run a task using purefa_network to configure one or multiple interface addresses I always get the status: changed result even if the interface is already configured with the same settings the task is fed with. Seems idempotence is missing.
To Reproduce Steps to reproduce the behavior:
changed
every time the task runs, no matter if you run it a 2nd time or 3rd time...Expected behavior Ansible report with
status: ok
instead ofstatus: changed
when using purefa_network on an already configured interface with the same settingsScreenshots Ansible output with verbosity 3 (-vvv) every time purefa_network task runs:
Ansible verbose output of the same interface when collecting the info of the network interfaces using purefa_info (subset: network):
Desktop (please complete the following information):
Additional context I have a theory that this might be due to the way we feed the address to the purefa_network module, we provide the IP address in the form of
IP/netmask
but the output (and the GUI) shows that address is one field and netmask is a different field. Not entirely sure about this though.