Hello ;
I agreed with you Joxi, adding ip addresses is a job that must be done by a operating system tool.
That is already the case because the current script use ifconfig to add/remove an Ip address .
The GUI should just provide a interface between the user and operating system to manage easily the adding/change/deletion of an interface and/or an address IP. Here, the ispCP database represent the data persistence. That replaces the common flat files such as
/etc/network/interfaces. The network engine script is just a layer that allows to get the data from the database and who perform the required changes on the system via the operating system tools such as
ifconfig (
configure a network interface )
ip (
iproute - show / manipulate routing, devices, policy routing and tunnels),
brctl (
ethernet bridge administration )...
Your approach is hard to implement because the files for networking data persistence are not the same on all distributions. The configuration on the fly is easier to implement.
But I'm curious, so can you explain your solution.
Cheer ;