Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Get-NSXIPSet -scopeid <edge-id> pulls all objects instead #620

Open
kwongheng opened this issue May 12, 2020 · 2 comments
Open

Get-NSXIPSet -scopeid <edge-id> pulls all objects instead #620

kwongheng opened this issue May 12, 2020 · 2 comments

Comments

@kwongheng
Copy link

When I issue the command:

Get-NSXIPSet -scopeid edge-5 # for example, to get IPSets only in Edge-5

It pulls all IPSets instead of those just scoped to edge-5, I can see globalroot scopes objects as well (we don't have universal scoped objects). As such the command takes a long time to execute, if we have a large IPSet numbers.

@alagoutte
Copy link
Contributor

Hi,

Do you have check the API doc ? there is may be not way to get directly IPset from a ScopeID (and we need to get all IPset and make filter after...)

@kwongheng
Copy link
Author

That may be true, however, if you do "get-help get-nsxipset -full" one of the examples says that its possible. So if its not possible, it should not access scoped ids.

-------------------------- EXAMPLE 5 --------------------------
PS C:>Get-NSXIpSet TestEsgeIPSet -scopeId edge-1
Returns all locally configured IP Sets on the specified edge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants