Skip to content

feat: add VirtioNetworkDeviceConfiguration.GetMACAddress() getter - #221

Merged
Code-Hex merged 3 commits into
Code-Hex:mainfrom
mvanhorn:fix/136-feat-getmacaddress-getter
Sep 28, 2026
Merged

Code-Hex merged 3 commits into
Code-Hex:mainfrom
mvanhorn:fix/136-feat-getmacaddress-getter

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

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.

@Code-Hex
Code-Hex merged commit 9d622df into Code-Hex:main Sep 28, 2026
19 of 20 checks passed
@Code-Hex

Copy link
Copy Markdown
Owner

@mvanhorn Thank you!

@mvanhorn

mvanhorn commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@Code-Hex appreciate you merging the GetMACAddress getter. That closes out #136.

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?

2 participants