-
Notifications
You must be signed in to change notification settings - Fork 75
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 CRUD support for IP set management #269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One ask for a comment, LGTM otherwise. BTW, nice grouping of the types!
"github.com/vmware/go-vcloud-director/v2/util" | ||
) | ||
|
||
func (vdc *Vdc) CreateNsxvIpSet(ipSetConfig *types.EdgeIpSet) (*types.EdgeIpSet, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like an introduction-like comment about IP sets and into which object they are being created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. I forgot to add a doc at all. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just minor things
This PR adds functions to handle IP sets:
CreateNsxvIpSet
,UpdateNsxvIpSet
,GetNsxvIpSetByName
,GetNsxvIpSetById
,GetNsxvIpSetByNameOrId
,GetAllNsxvIpSets
,DeleteNsxvIpSetById
,DeleteNsxvIpSetByName
Additional cleanups
types
file into multiple files as it is becoming huge.