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 CRUD support for IP set management #269

Merged
merged 13 commits into from
Nov 29, 2019
Merged

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Nov 27, 2019

This PR adds functions to handle IP sets: CreateNsxvIpSet, UpdateNsxvIpSet, GetNsxvIpSetByName, GetNsxvIpSetById, GetNsxvIpSetByNameOrId, GetAllNsxvIpSets, DeleteNsxvIpSetById, DeleteNsxvIpSetByName

Additional cleanups

  • Add missing testing build tags
  • Split types file into multiple files as it is becoming huge.

@Didainius Didainius self-assigned this Nov 27, 2019
Copy link
Collaborator

@lvirbalas lvirbalas left a 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) {
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@vbauzys vbauzys left a 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

govcd/nsxv_ipset.go Show resolved Hide resolved
govcd/nsxv_ipset.go Show resolved Hide resolved
govcd/nsxv_ipset.go Show resolved Hide resolved
govcd/nsxv_ipset.go Show resolved Hide resolved
govcd/nsxv_ipset.go Show resolved Hide resolved
@Didainius Didainius merged commit 63eaab0 into vmware:master Nov 29, 2019
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.

4 participants