Mathieu Trudel-Lapierre
e608362b34
Merge pull request #154 from CanonicalLtd/mwhudson/wifi-ui
...
Add a basic UI for entering wifi config details.
2016-09-09 15:33:48 -04:00
Mathieu Trudel-Lapierre
d882666e2e
Merge pull request #155 from CanonicalLtd/mwhudson/fix-columns
...
fix scrolling with many interfaces
2016-09-09 14:52:43 -04:00
Michael Hudson-Doyle
bfbb876855
version from PPA
2016-09-05 21:21:05 +12:00
Michael Hudson-Doyle
bf827db28d
fix scrolling with many interfaces
2016-09-05 21:07:56 +12:00
Michael Hudson-Doyle
313b4d86db
add a word
2016-09-05 20:17:05 +12:00
Michael Hudson-Doyle
97171f6b71
improve UI a bit
2016-09-05 16:55:09 +12:00
Michael Hudson-Doyle
60b4262b07
remove gratuitous delta a bit
2016-09-05 16:39:58 +12:00
Michael Hudson-Doyle
f58d2aa7c0
refactor a bit
2016-09-05 16:38:26 +12:00
Michael Hudson-Doyle
9451d69076
actually do something with the inputted data
2016-09-05 16:25:45 +12:00
Michael Hudson-Doyle
f9668b8802
more low quality UI work
2016-09-05 15:36:59 +12:00
Michael Hudson-Doyle
bf3384596e
a start a configure-wifi ui
2016-09-05 12:03:06 +12:00
Michael Hudson-Doyle
0e56b0cba0
Clean up systemd jobs.
...
The main visible effect of this is that if console-conf crashes or is killed
it restarts instantly rather than 90 seconds later. It also removes the flicker
where a getty gets started and then instantly killed during startup.
2016-09-01 22:33:00 +12:00
Michael Hudson-Doyle
98d5d1b8a3
Merge branch 'master' into mwhudson/config-location
2016-08-31 11:27:58 +12:00
Michael Hudson-Doyle
c6b17fdf43
Overwrite the netplan config that snap firstboot creates.
2016-08-31 11:22:23 +12:00
Michael Hudson-Doyle
0214912151
hide bonding UI
...
As the version of netplan we are currently using does not support it.
2016-08-31 11:16:36 +12:00
Michael Hudson-Doyle
d6cf8e1bcf
prevent C-c / C-x from exiting console conf
...
I've left C-x as a way to get out in dry-run mode as that's useful for
debugging.
2016-08-31 10:58:26 +12:00
Michael Hudson-Doyle
fedcb10560
add WaitForDefaultRouteTask, use it instead of networkd-wait-online
...
It polls though, sorry Mathieu!
2016-08-30 15:08:05 +12:00
Michael Hudson-Doyle
fe8f99fbec
an example of how to implement a task as python
2016-08-30 14:15:46 +12:00
Michael Hudson-Doyle
549c00279d
refactor network application code so that it does not assume all steps are subprocesses
2016-08-30 14:14:08 +12:00
Michael Hudson-Doyle
f79c82a367
use os.makedirs with exist_ok to create log directory
...
Should fix LP: #1617236
2016-08-30 10:50:20 +12:00
Michael Hudson-Doyle
806e3fb86d
do not crash when enabling DHCP on an interface with an address
...
Fixes #141
2016-08-23 13:48:47 +12:00
Michael Hudson-Doyle
0a2546b3bd
do not probe network on returning from network sub-screen
...
otherwise we overwrite our settings with the probed data!
2016-08-23 12:47:55 +12:00
Michael Hudson-Doyle
045f1e5159
Merge pull request #144 from CanonicalLtd/mwhudson/network-model-simplify
...
simplify network model code a bit
2016-08-23 09:48:47 +12:00
Michael Hudson-Doyle
9ce7116f36
a touch more logging
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle
a734e84980
refactor a bit
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle
efa8ef43d2
allow configuration to be canceled
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle
c658da012d
factor some stuff out into an object
...
separation of concerns still pretty strange for now
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle
ef01c7d291
break run_command in two
...
and use the two halves when applying network config (to allow cancellation)
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle
24347f1843
use run_command_async
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle
e0a7aded85
update UI while apply network steps are running
...
as a special hack, the first time you apply changes in dry run mode it will
fail
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle
7679296653
split NETDEV_IGNORED_IFACES into NETDEV_IGNORED_IFACE_NAMES and NETDEV_IGNORED_IFACE_TYPES
2016-08-22 16:06:35 +12:00
Michael Hudson-Doyle
aef546b8f0
make Networkdev devices eagerly
...
the flow is that get_all_interface_names is always called immediately after
probe_network, so being lazy does not save anything.
2016-08-19 11:34:46 +12:00
Michael Hudson-Doyle
f8db1314ad
simplify get_all_interfaces
2016-08-19 11:21:19 +12:00
Michael Hudson-Doyle
bcfce74a12
kill off NetworkModel.network_devices
...
it is redundant with .info
2016-08-19 11:18:08 +12:00
Mathieu Trudel-Lapierre
e02a4c8d55
Use netplan apply instead of restarting networkd ourselves.
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-08-18 16:17:22 -04:00
Mathieu Trudel-Lapierre
958ab1a339
Show decent error messages on failure.
...
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-08-18 16:15:28 -04:00
Michael Hudson-Doyle
9751b1a6b3
be more careful about checking exit statuses
2016-08-17 20:44:59 +12:00
Mathieu Trudel-Lapierre
ade3c8b93d
Only render dhcp if set to True
2016-08-16 22:23:39 -04:00
Mathieu Trudel-Lapierre
0c8deeece4
Update padding sizes for prettier output; account for future translations.
2016-08-16 22:15:41 -04:00
Mathieu Trudel-Lapierre
0e93ab3e61
Check we're online, display network error otherwise.
2016-08-16 15:25:58 -04:00
Mathieu Trudel-Lapierre
0e92883a83
Make it a little more obvious where labels are in fact buttons or menus
2016-08-16 15:01:51 -04:00
Mathieu Trudel-Lapierre
410ddf74d7
Drop 'match' for yaml rendering: it's unnecessary while we don't provide a way to rename interfaces.
2016-08-16 14:32:23 -04:00
Mathieu Trudel-Lapierre
10d06a73e4
Allow clearing IP configuration
2016-08-16 14:14:25 -04:00
Mathieu Trudel-Lapierre
682181ae62
We shouldn't render empty bits; also add rendering for IPv6 default route
2016-08-16 12:59:52 -04:00
Mathieu Trudel-Lapierre
11782ced12
Improve handling of the default routes.
2016-08-16 12:59:19 -04:00
Mathieu Trudel-Lapierre
df5e0fcb4c
Try to do something sane to set a default gateway
2016-08-16 01:09:28 -04:00
Mathieu Trudel-Lapierre
cac89c30e9
Do bonding, dhcp toggle, and segregate IPv4 and IPv6 again.
2016-08-16 00:48:15 -04:00
Mathieu Trudel-Lapierre
0f82a12208
Allow setting IPs and rendering as yaml
2016-08-15 17:05:19 -04:00
Mathieu Trudel-Lapierre
18c7e93cc2
WIP: Remove actions, port to an approximation of network yaml v2.
2016-08-13 00:13:22 -04:00
Mathieu Trudel-Lapierre
1980c4e483
fake-merge mwhudson/network
2016-08-12 22:31:31 -04:00