You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using NetworkManager 1.46 on BalenaOS.
I am using the gonetworkmanager library which in-turn uses godbus to communicate to NetworkManager from my application.
I attempt this to manually set priority (hopefully to force NetworkManager to change to a network interface of my choosing).
// Get the connectionconnection, err:=activeConnection.GetPropertyConnection()
iferr!=nil {
returnerrors.Join(
fmt.Errorf("error getting connection for interface %s", interfaceName),
err,
)
}
existingSettings, err:=connection.GetSettings()
iferr!=nil {
returnerrors.Join(
fmt.Errorf("error getting existing settings for interface %s", interfaceName),
err,
)
}
existingSettings["connection"] =map[string]interface{}{
"autoconnect-priority": priority,
}
// Try UpdateUnsaved first for better error handlingerr=connection.UpdateUnsaved(existingSettings)
iferr!=nil {
returnerrors.Join(
fmt.Errorf("error updating priority for interface %s", interfaceName),
err,
)
}
Upon saving the connection I get an error:
"Failed to update network priorities","error":"failed to set WiFi priority: error updating priority for interface wlan0\nipv6.addresses: can't set property of type 'a(ayuay)' from value of type 'aav'"}
No amount of formatting of values and types seems to make it happy enough to accept my settings, even though I just read them from GetSettings.
See issue Wifx/gonetworkmanager#13 for similar other problems, I could not find a follow-up here.
The text was updated successfully, but these errors were encountered:
I am using NetworkManager 1.46 on BalenaOS.
I am using the gonetworkmanager library which in-turn uses godbus to communicate to NetworkManager from my application.
I attempt this to manually set priority (hopefully to force NetworkManager to change to a network interface of my choosing).
Upon saving the connection I get an error:
No amount of formatting of values and types seems to make it happy enough to accept my settings, even though I just read them from GetSettings.
See issue Wifx/gonetworkmanager#13 for similar other problems, I could not find a follow-up here.
The text was updated successfully, but these errors were encountered: