Skip to content

feat: add VirtioNetworkDeviceConfiguration.GetMACAddress() getter#221

Open
mvanhorn wants to merge 1 commit into
Code-Hex:mainfrom
mvanhorn:fix/136-feat-getmacaddress-getter
Open

feat: add VirtioNetworkDeviceConfiguration.GetMACAddress() getter#221
mvanhorn wants to merge 1 commit into
Code-Hex:mainfrom
mvanhorn:fix/136-feat-getmacaddress-getter

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Jul 9, 2026

Copy link
Copy Markdown

Which issue(s) this PR fixes:

Fixes #136

Additional documentation

Adds a GetMACAddress() *MACAddress getter to VirtioNetworkDeviceConfiguration, mirroring the existing SetMACAddress setter. A new getNetworkDevicesVZMACAddress Objective-C shim reads the value back from the underlying VZMACAddress, so callers can inspect the address they configured (or the system-assigned one). Follows the signature the maintainer specified in the issue thread; covered by an added case in network_test.go.

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.

Add func (v *VirtioNetworkDeviceConfiguration) GetMACAddress() string?

1 participant