-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
suggest for #167 #168
suggest for #167 #168
Conversation
this adds support for the VZNetworkBlockDeviceStorageDeviceAttachmentDelegate to being able to listen to changes to a network block device attachment. Signed-off-by: Luca Stocchi <[email protected]>
Signed-off-by: Luca Stocchi <[email protected]>
// StorageDevices return the list of storage device configuration configured in this virtual machine configuration. | ||
// Return an empty array if no storage device configuration is set. | ||
func (v *VirtualMachineConfiguration) StorageDevices() []StorageDeviceConfiguration { | ||
return v.storageDeviceConfiguration | ||
} |
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.
I took this approach because converting from raw pointers to a slice of interfaces and then to each concrete type is challenging. I plan to apply similar fixes to other similar methods in a separate PR.
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.
yeah this was definitely the part I was missing as I didn't change it during my tests, thanks for the fix 🙏
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, thanks a lot @Code-Hex !!
Update: also tested with my vfkit use-case. Works like a charm 🚀
@lstocchi Thanks your confirmation! Let's merge this PR👌 |
This PR is made for #167
The following logs are generated when the NBD server is stopped or restarted in the middle of a session.