Is there any python package that could configure the IP address of a network interface?

I am writing a server application that allows a remote client to show / add / modify / delete the IP addresses of the network interfaces of the machine on which the host is running.

The OS is Linux (CentOS 5.2), so I could do this simply by analyzing and editing the configuration file. But is there any package that could simplify the work?

And if there is no such package, if I open the initial version of my implementation, will it help other people?

+3
source share
1 answer

, confparse , . , - /etc/sysconfig/network-scripts/ifcfg-eth0.

, , , , - , , .;)

+2

Source: https://habr.com/ru/post/1725033/


All Articles