spotify / pyfg

Apache License 2.0
56 stars 57 forks source link

Fix uuid-code since last commit, and check for errors 3 times #2

Closed StefanLindblom closed 9 years ago

StefanLindblom commented 9 years ago

UUID: To do it as we did before - having a list of text that should be ignored, we would have to do a proper loop. Instead we are doing a more quick and dirty fix.

Fail retries: So, in FortiOS, if you try to remove a firewall address, firewall address group, and then a firewall policy - that is using said firewall address group - it will fail, with error code -23. In pyFG we are watching out for this, and retrying the failed lines. However, if you also try to delete said firewall address group AND the address'es inside it, we do not catch that - until now. We are simply trying to run the failed lines more times instead. Also a bit dirty, but it does the job.