Skip to content

Fix OpenVPN services actions#635

Closed
AlexTrushkovsky wants to merge 2 commits intopfrest:masterfrom
AlexTrushkovsky:master
Closed

Fix OpenVPN services actions#635
AlexTrushkovsky wants to merge 2 commits intopfrest:masterfrom
AlexTrushkovsky:master

Conversation

@AlexTrushkovsky
Copy link
Copy Markdown
Contributor

image

Since openvpn services share a common name, the name alone is not enough to perform any action with a particular service. For this purpose, pfsense has $extras to pass vpnid and vpnmode. They are needed to find a specific service process.

Example: https://github.com/pfsense/pfsense/blob/RELENG_2_7_2/src/etc/inc/service-utils.inc#L851

@jaredhendrickson13
Copy link
Copy Markdown
Member

Thanks for the PR. This entire endpoint is currently being reworked for v2.4.0 to accommodate this particular issue as well as related issues like #634. Adding fields that are specific to individual services can become messy and cause unnecessary confusion for users who may not use those services; especially considering the API already has access to the extra parameters needed for each individual service. The new approach will lookup and perform the action on the exact service by an ID instead of the name, so users don't need to worry about explicitly providing extra parameters. This will better match the functionality in the webConfigurator as well.

Thanks again for your effort and willingness to contribute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants