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

Add the ability to create policy groups that are of the "IP Address Only" type. #500

Open
erempel opened this issue Apr 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@erempel
Copy link

erempel commented Apr 30, 2024

Is your feature request related to a problem? Please describe.

NXS has a limitation thet if you want to include a group as a member of another group by using group tags, then the child group MUST be of the type "IP Address Only".

Describe the solution you'd like

A top level parameter of "group_type" that can take the value of "IPAddress" to create such a group as per the API

Describe alternatives you've considered

No response

Additional context

No response

@erempel erempel added the enhancement New feature or request label Apr 30, 2024
@vhrte
Copy link

vhrte commented May 9, 2024

we had this requirement as well in our deployment and this can be done by modifying get_resource_spec() in nsxt_policy_group.py '
just add these lines then just specify group_type in the playbook

        group_type=dict(
            required=False,
            type='list'
        )

how it looks like:

def get_resource_spec():
    policy_group_arg_spec = {}
    policy_group_arg_spec.update(
        domain_id=dict(
            required=True,
            type='str'
        ),
        expression=dict(
            required=True,
            type='list'
        ),
        extended_expression=dict(
            required=False,
            type='list'
        ),
        group_state=dict(
            required=False,
            type='str'
        ),
        group_type=dict(
            required=False,
            type='list'
        )
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants