Closed sdodsley closed 1 year ago
From my testing, this doesn't appear to fix #473. I think the issue is that the address
that is being past in is 0.0.0.0/0
but the pure array returns None
. Same goes for the gateway.
In quickly looking over the code, I don't see a great way to fix this other than just doing another set of if
statements, but I could be overlooking something.
I'll take another look at it
@tylergmuir I think that gets it now. Please let me know if your testing is successful or not.
@sdodsley That did fix the reporting on the interfaces. But I just tested updating an existing vif
and it failed. Collecting more info to provide now and will have that to you shortly.
@tylergmuir @ryuyamag I think this now fixes all your concerns.
@sdodsley It looks like the configuration for the vif
is applying correctly now, but it is always reporting as changed.
@tylergmuir can you give an example task that is reporting idempotency incorrectly
@sdodsley this is the basis of what I am doing
- name: Configure vif for file
purestorage.flasharray.purefa_network:
name: filevif
servicelist:
- file
interface: vif
subinterfaces:
- eth4
- eth5
address: "{{ ip_cidr }}"
gateway: "{{ gateway }}"
mtu: 1500
@tylergmuir ok - fixed it... Hopefully this is the last iteration. I never want to see this module again :)
@sdodsley It works! I ran a few more tests with different configs and it did what I expected it to do each time.
@sdodsley
very sorry, it seems that two functions do not work.
clear address ipv4&ipv6 failed to detect a valid IP
clear gateway ipv4&ipv6 changed:true appears, but it's not changed.
I have attached the log file network2.zip
@ryuyamag I think I got it now. Please try all your tests and let me know how it goes. @tylergmuir please confirm this last fix didn't break anything in your tests.
@sdodsley I had to modify some Playbooks this time, but I can confirm that everything works fine. thank you.
@sdodsley looks good on my side too.
SUMMARY
Add support for
interface
parameter with options ofvif, lacp
. New, associated, parameters ofsubinterfaces
for interface type ofvif
andsubordinates
of interface typelacp
.Add parameters
enabled
(default True) andsubnet
.Closes #466 Closes #473 Closes #472 Closes #391
ISSUE TYPE
COMPONENT NAME
purefa_network.py