- 26 Jul, 2019 3 commits
-
-
Mathieu Trudel-Lapierre authored
-
Michael Vogt authored
This commit removes the newer subprocess keywords that are not available in 16.04/18.04. Tests work in 16.04 now too.
-
Michael Vogt authored
This PR adds a new io.netplan.Netplan dbus activatable service that can be used to Apply a netplan configuration. The main use-case for this is Ubuntu Core where we want to allow snaps to control the netplan network configuration via an interface. However we do not want to give access to systemctl to restart systemd-networkd or network-manager. The dbus service will run outside of the confinement will archive this goal. The interface is probably useful beyond Ubuntu Core.
-
- 17 Jul, 2019 3 commits
-
-
Łukasz 'sil2100' Zemczak authored
-
Łukasz 'sil2100' Zemczak authored
-
-
- 21 May, 2019 2 commits
-
-
Deltik authored
When using the NetworkManager renderer, the logic in `NetplanApply.command_apply()` tells `nmcli` to disconnect the devices previously populated by `netifaces.interfaces()`. In addition, if an alias like "eth0:0" exists, it will show as a device from `netifaces.interfaces()` but will not have a path in `/sys/class/net`. This means that the `devices` variable may have more devices than actually exist due to the past `nmcli device disconnect` run or the presence of one or more aliases. The attached patch fixes this bug by tolerating all errors from `udevadm test-builtin net_setup_link /sys/class/net/XXX` so that `netplan apply` doesn't quit and leave the user without a network setup. Fixes LP #1810043 Launchpad: https://bugs.launchpad.net/netplan/+bug/1810043 Signed-off-by:
Nick Liu <deltik@gmx.com>
-
Mathieu Trudel-Lapierre authored
Signed-off-by:
Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
-
- 08 May, 2019 3 commits
-
-
Mathieu Trudel-Lapierre authored
Move validation and error reporting to their own files; also rework the validation passes slightly to validate as much as we can of the netplan grammar in parser passes (so we get context info for errors), and leave the backend rules sanity checking only to after the parsing. This way we'll get the error context, unless things are backend-specific rules for which it's just hard to get the info (and not as helpful).
-
Mathieu Trudel-Lapierre authored
-
Mathieu Trudel-Lapierre authored
This reverts commit fe1fac85.
-
- 23 Apr, 2019 2 commits
-
-
Cullen Jennings authored
-
Mathieu Trudel-Lapierre authored
-
- 28 Mar, 2019 2 commits
-
-
Mathieu Trudel-Lapierre authored
-
Mathieu Trudel-Lapierre authored
Partially revert the change for enabling systemd-networkd. network-online.target may not be depended on by anything on minimal images, but multi-user.target already is.
-
- 24 Mar, 2019 1 commit
-
-
Cullen Jennings authored
-
- 18 Mar, 2019 1 commit
-
-
Mathieu Trudel-Lapierre authored
Signed-off-by:
Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
-
- 15 Mar, 2019 1 commit
-
-
Cullen Jennings authored
-
- 14 Mar, 2019 1 commit
-
-
Mathieu Trudel-Lapierre authored
Also rework how we setup for wifi tests in general to try and make them more reliable. Signed-off-by:
Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
-
- 07 Mar, 2019 1 commit
-
-
Trent Lloyd authored
test_save, test_save_and_restore_with_dict: Ensure that we restore the terminal state at the end of each test, as other tests rely on a clean state to start. Previously, the tests would work the first time but fail if re-run. test_save: also compare self.terminal.orig_flags to the current terminal flags, as opposed to a copy of itself (which would always pass) Fixes LP: #1817660
-
- 26 Feb, 2019 4 commits
-
-
Mathieu Trudel-Lapierre authored
This appeared in NM upstream as 648c256b9014198aac388097e410999c68c4b452; and previous versions of NetworkManager do not seem to care, so land the changes in general, without changes for previous Ubuntu releases. Adjust tests so they still work with this change. Signed-off-by:
Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
-
Mathieu Trudel-Lapierre authored
Signed-off-by:
Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
-
Mathieu Trudel-Lapierre authored
GLib apparently has some differences in the order in which members are iterated in a GHashTable, which leads to things outputting from a GHashTable to turn up in different order depending on the GLib version used to build the generator. Skip these tests on codecov.io: we do have a pretty good test coverage anyway. Signed-off-by:
Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
-
Mathieu Trudel-Lapierre authored
-
- 22 Feb, 2019 2 commits
-
-
Mathieu Trudel-Lapierre authored
-
Mathieu Trudel-Lapierre authored
Signed-off-by:
Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
-
- 12 Feb, 2019 7 commits
-
-
bcavns01 authored
Matching existing style in this file.
-
bcavns01 authored
Init self.t so that we can simply test it in the `finally` clause.
-
bcavns01 authored
`self.t` is only defined within the `try` block. If an exception is thrown and the try bails out, `self.t` is undefined. This causes the `finally` block to throw its own exception when it tries to call `self.t.reset`, and netplan crashes.
-
Alan Johnson authored
-
Mathieu Trudel-Lapierre authored
-
Mathieu Trudel-Lapierre authored
-
Mathieu Trudel-Lapierre authored
-
- 08 Feb, 2019 1 commit
-
-
Justin Paul authored
The original Changelog entry of Fri Dec 13 causes a build warning in rpmbuild. Based on the release date of 0.95 I updated the date in the changelog to be Fri Dec 14 which fixes the build warning ex. rpmbuild -ba netplan/rpm/netplan.spec warning: bogus date in %changelog: Fri Dec 13 2018 Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> - 0.95
-
- 24 Jan, 2019 1 commit
-
-
Mathieu Trudel-Lapierre authored
-
- 21 Jan, 2019 2 commits
-
-
Justin Paul authored
The source url is incorrect. the file name does not have the package name in it. its just version.tar.gz
-
Ryan Harper authored
The example block in "Properties for device type vlans:" on the "Reference" site contains a key "address:" which doesn't exist. I suspect the key needed is "addresses:". LP: #1811802
-
- 15 Jan, 2019 1 commit
-
-
Alfonso Sánchez-Beato authored
We were not re-starting networkd/NetworkManager in the case we moved from a configuration that created netplan files in /run to one that did not need files there. Now we make sure we re-start the services also in that case, by checking if there were configuration files before the generation step. Fixes LP: #1811868.
-
- 14 Dec, 2018 2 commits
-
-
Mathieu Trudel-Lapierre authored
-
Mathieu Trudel-Lapierre authored
-