Wifx / gonetworkmanager

Go D-Bus bindings for NetworkManager
Other
96 stars 42 forks source link

Fix Device.Reapply #39

Open bminer opened 9 months ago

bminer commented 9 months ago

Device.Reapply should accept ConnectionSettings, not Connection.

Relevant doc: https://www.networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.Device.html#gdbus-method-org-freedesktop-NetworkManager-Device.Reapply

chrisovergaauw commented 3 months ago

@bminer I'm running into the same issue. did you find a workaround for this?

chrisovergaauw commented 3 months ago

I found a similar method in this library that works as a workaround for our project. Thought I'd drop a reference here for future readers: https://github.com/Wifx/gonetworkmanager/blob/5cd4632c13e6ea747f19c0653ec1a1040215684d/Settings.go#L83