Forum Discussion

daniel_williams's avatar
2 years ago

Is there a way via Ansible to modify an interface,

Is there a way via Ansible to modify an interface, whilst it is part of a VIF as a sub interface? We use offload to Azure via two of our replication interfaces out of four, and are moving all of our replication subnets to a different subnet, I can change the interfaces not connected to the VIF but I'm getting a failure - the verbose log in ansible is showing: `File "/var/folders/7f/m3h8hf0d3jqgphrt401n_js80000gq/T/ansible_purestorage.flasharray.purefa_network_payload_v4oj88_0/ansible_purestorage.flasharray.purefa_network_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_network.py", line 461, in update_interface` `File "/opt/homebrew/lib/python3.11/site-packages/purestorage/purestorage.py", line 1531, in set_network_interface` `return self._request("PUT", "network/{0}".format(interface), kwargs)` `^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^` `File "/opt/homebrew/lib/python3.11/site-packages/purestorage/purestorage.py", line 202, in _request` `raise PureHTTPError(self._target, str(self._rest_version), response)` `fatal: [localhost]: FAILED! => {` `"changed": false,` `"invocation": {` `"module_args": {` `"address": "IP/24",` `"api_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",` `"enabled": true,` `"fa_url": "URL",` `"gateway": "IP",` `"interface": ,` `"mtu": 1500,` `"name": "ct0.eth2",` `"servicelist": ,` `"state": "present",` `"subinterfaces": ,` `"subnet": ,` `"subordinates": ` `}` `},` `"msg": "Failed to change settings for interface ct0.eth2."` `}`
No RepliesBe the first to reply