[05:47] <Guest56> hi. anyone knows how to reconfigure network using command line netplan, withuout modifying files? I would like to use netplan (or dbus) to set wifi
[05:48] <Guest56> if I do this "netplan set network.ethernets.lan2.dhcp4=true", then this will set a new configuration file. how to configure wifi like this? documentation is not describing command line (or dbus) very well
[05:57] <Guest56> this will throw errors:
[05:57] <Guest56> busctl call io.netplan.Netplan /io/netplan/Netplan/config/NS2HL1 io.netplan.Netplan.Config Set ss "network:\n wifis:\n  wlan0:\n   access-points: myap\n    password:abc\n dhcp4=true;" 30-wifi-cfg
[06:57] <Guest56> I also tried this
[06:57] <Guest56> netplan set "network.wifis.wlan0={access-points=myap,password=abc,dhcp4=true}" 30-wifi-cfg
[06:58] <Guest56> but "netplan get" returns empty, and it didnt work :(
[07:13] <Guest56> netplan set "wifis.wlan0={dhcp4=true,myap.auth.password=abc}" 30-wifi-cfg
[07:13] <Guest56> is also not working
[07:13] <Guest56> can anyone write me a command how to set wifi in netplan in command line?
[07:43] <Guest56> or with dbus?
[10:11] <schopin> Guest56: the data payload on your netplan set commands are not valid YAML. The format is `netplan set dot.separated.key=$YAML`, e.g. wifis.wlan0={"dhcp4": true, "access-points": {"myap":{"password": "mypassword"}}}