Project

General

Profile

Actions

Feature #10641

closed

Move logic code outside of /usr/local/www

Added by Frederic Bor almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06/07/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

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)

Actions #1

Updated by Jim Pingle almost 4 years ago

  • Status changed from New to Closed

That's part of a longer term plan for rewrite/integrating an API/etc. We'd rather not do it piecemeal in this fashion.

Actions #2

Updated by Frederic Bor almost 4 years ago

Ok, thanks for your answer.

Let us know if we can contribute in any way to your long term plan to release an API (it would have more meaning than writing obsolete code).

Actions

Also available in: Atom PDF