-
Notifications
You must be signed in to change notification settings - Fork 24
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 distributed virtual switches and portgroups #4813
Conversation
This comment has been minimized.
This comment has been minimized.
Great stuff, thank you @czunker ! There's just two minor things I noticed while testing:
|
d5b3444
to
aaee31d
Compare
This comment has been minimized.
This comment has been minimized.
aaee31d
to
c6b5429
Compare
Thanks for testing @mm-weber The issues are fixed:
|
c6b5429
to
f25b8a0
Compare
@@ -128,7 +128,7 @@ require ( | |||
github.com/sirupsen/logrus v1.9.3 // indirect | |||
github.com/skeema/knownhosts v1.3.0 // indirect | |||
github.com/spf13/afero v1.11.0 // indirect | |||
github.com/spf13/pflag v1.0.5 // indirect | |||
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c // indirect |
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.
Otherwise the tests failed:
--> [mondoo] generate CLI json
go: updates to go.mod needed; to update it:
go mod tidy
make: *** [Makefile:379: providers/build/mondoo] Error 1
Error: Process completed with exit code 2.
f25b8a0
to
33dbc5e
Compare
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.
This works nicely!
Thank you @czunker !
33dbc5e
to
4dc6e7f
Compare
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.
Thank you @czunker I added a nit for the resource field. Otherwise looks great.
// Distributed virtual switches | ||
distributedSwitches() []vsphere.vswitch.dvs | ||
// List of distributed virtual port groups | ||
distributedPortgroups() []vsphere.vswitch.portgroup |
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.
maybe distributedPortGroups
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.
Agreed.
VMware uses separate words for it:
A distributed port group ...
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.
@mm-weber FYI
You might need to change this also in the policy.
This adds these to the vShere datacenter Signed-off-by: Christian Zunker <christian@mondoo.com>
4dc6e7f
to
960c6b4
Compare
This adds these to the vShere datacenter.
Now you can query:
and