Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pfsense_openvpn_client] Add support for "v4only" and "v6only" values for create_gw field #133

Open
samuel-emrys opened this issue Jun 9, 2024 · 0 comments

Comments

@samuel-emrys
Copy link

Is your feature request related to a problem? Please describe.
The only option that can currently be passed to the create_gw field is both, as per plugins/module_utils/openvpn_client.py:61:

    create_gw=dict(default='both', required=False, choices=['both']),

This populates the create_gw xml field:

<create_gw>both</create_gw>

However, pfSense also supports "IPv4 Only" (v4only) and "IPv6 Only" (v6only) values:

image

Describe the solution you'd like
Expansion of the allowable values of create_gw to also include v4only and v6only:

-    create_gw=dict(default='both', required=False, choices=['both']),
+    create_gw=dict(default='both', required=False, choices=['both', 'v4only', 'v6only']),

Describe alternatives you've considered
N/A

Additional context
N/A

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

No branches or pull requests

1 participant