Feature #10641
closedMove logic code outside of /usr/local/www
0%
Description
Hello,
We are developping ansible modules for pfSense (https://github.com/opoplawski/ansible-pfsense). Since there is not a full and clean API or CLI we can use in pfSense, we have to rewrite parts of pfSense in python to validate and implement the user's changes.
For example, I would like to create a module for VIPs. When I read firewall_virtual_ip.php, there is a lot of logic to code again to validate the deletion.
It would make a lot more sense for me to work on moving the logic outside of /usr/local/www files so it can be called efficiently. For now, I feel like losing my time in rewriting code that will be hard to maintain.
Could you give me some guidelines for this work if you agree with the approach ? (knowing that I won't be able to rework all the files there but at least, it would be a start)