[th/ifcfg-write-wired-setting] cleanup ifcfg writer for wired settings

Thomas Haller requested to merge th/ifcfg-write-wired-setting into main

Follow up for !846 (closed). That issue happened, because it's not DRY.

Merge request reports