Instead of reinventing NetworkManager use it as backend for all network and wifi related operations. nmcli is command line utility to manage most of the aspects of the networking in Linux. NetworkManader is de-facto standard software to configure network in Linux based distros.
Describe the solution you'd like
Instead of reinventing NetworkManager use it as backend for all network and wifi related operations. nmcli is command line utility to manage most of the aspects of the networking in Linux. NetworkManader is de-facto standard software to configure network in Linux based distros.