James Knott wrote:
On 2020-02-03 11:37 AM, Per Jessen wrote:
I want to change the settings out of a python script. Aha.
A nice way was to call yast via the command line interface (yast help or .e.g yast lan help)
I don't wan't to write the config out via my python script.
TMK, there is no API today that would permit editing /etc/sysconfig/network/ifcfg-ethX.
I edit it with vi, sometimes with sed in installation scripts.
The bash command was already given. You just need to include that in your script. Then start the script on boot up, according to current practice. I don't know what that current practice is though.
Current practice = let wicked configure it per ifcfg-ethX. I think Daniel is asking about an API with python bindings that would enable him to edit that config file via yast command line calls. -- Per Jessen, Zürich (16.9°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org