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

Implement map data sources for policy services and groups #1476

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

ksamoray
Copy link
Collaborator

@ksamoray ksamoray commented Dec 3, 2024

These data sources allows the retrieval of the entire tables from NSX to save multiple calls to the backend.

Fixes: #696

@ksamoray
Copy link
Collaborator Author

ksamoray commented Dec 3, 2024

/test-all

@ksamoray ksamoray force-pushed the list_data_sources branch 2 times, most recently from 873c26d to 7c7fde9 Compare December 5, 2024 12:34
@annakhm annakhm changed the title Implement map data sources for policy services and groups WIP: Implement map data sources for policy services and groups Dec 12, 2024
@annakhm annakhm changed the title WIP: Implement map data sources for policy services and groups [WIP] Implement map data sources for policy services and groups Dec 12, 2024
@ksamoray ksamoray force-pushed the list_data_sources branch 2 times, most recently from 4a18c0a to cc7c11d Compare December 22, 2024 14:06
@ksamoray ksamoray changed the title [WIP] Implement map data sources for policy services and groups Implement map data sources for policy services and groups Dec 22, 2024
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray
Copy link
Collaborator Author

/test-all

rule {
display_name = "allow_icmp"
destination_groups = [
data.nsxt_policy_groups.test.items[index(data.nsxt_policy_groups.test.items.*.display_name, "Cats")].path,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel this syntax might be too complex to be widely adopted.. perhaps it would be more useful to offer just display_name=>path map.

@ksamoray ksamoray force-pushed the list_data_sources branch 2 times, most recently from 16e9803 to 8922f49 Compare January 16, 2025 11:35
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray force-pushed the list_data_sources branch 3 times, most recently from 6ae684c to ee0d64a Compare January 16, 2025 14:44
Copy link
Collaborator

@annakhm annakhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps in the services map owner filter could be useful to identify predefined services, but we can wait with this until someone asks for it

@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray
Copy link
Collaborator Author

/test-all

3 similar comments
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray
Copy link
Collaborator Author

/test-all

1 similar comment
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray
Copy link
Collaborator Author

/test-all

These data sources allows the retrieval of the entire tables from NSX to save multiple calls to the backend.

Fixes: vmware#696

Signed-off-by: Kobi Samoray <[email protected]>
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray merged commit 94bb0ab into vmware:master Jan 20, 2025
11 checks passed
@ksamoray ksamoray deleted the list_data_sources branch January 20, 2025 20:50
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.

Policy Datasources for leveraging built-in services
2 participants