-
Notifications
You must be signed in to change notification settings - Fork 339
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
[Snap] Implement Network Settings #3155
Comments
@ogra1 The way I have been planning to implement this is to request the I note that there appear to be multiple interfaces for modifying network settings so before I make a start on this, is there a simpler approach I should be considering? The WebThings Gateway user manual should give you an idea of the kinds of settings which need to be modified from Node.js. There are other settings that will need implementing later including configuring mDNS, and a Wi-Fi hotspot during first time setup. |
Potential approaches to implementing networking on Ubuntu Core:
|
FYI I've made a start using this approach in #3168 so we'll see how it goes. |
If you include |
@dilyn-corner wrote:
Hah, it would have been useful to know that ~1,000 lines of code ago! But by the looks of it that requires building nmcli from source inside my snap, which seems a bit excessive. And my assumption was that the DBus API would be more stable than the command line interface. So possibly simpler from the application code point of view, but definitely more complicated from a multi-architecture build point of view. Having spent a large proportion of the last few weeks implementing network settings for the gateway using the DBus API (which is now nearly finished) I guess I'm kind of committed to that route now, so I'll have to see how it goes. |
😅 I do agree that the dbus API is probably more stable and it is usually the way I'd recommend going. |
@dilyn-corner / @ogra1 I'm seeing something odd I can't explain. I'm setting a static IP address (and subnet and gateway) via the NetworkManager D-Bus API on Ubuntu Desktop, using What am I missing? |
Huh, it appears that |
As a user I want to be able to configure my network settings when using the snap package so that I can connect my gateway to a network.
Currently clicking on Network Settings in the web interface when using the snap package on Ubuntu displays a message which says "Network settings are not supported for this platform." This is because network settings are not implemented for Ubuntu, or Ubuntu Core.
This will require implementing network settings using NetworkManager in linux-ubuntu.ts and/or creating a linux-ubuntu-core.ts in /src/platforms.
See https://github.com/krellian/kiosk/blob/master/services/models/network.js for inspiration.
This will likely also require the snap to be permitted to use an additional interface.
The text was updated successfully, but these errors were encountered: