Add support for command line changes to DEVICE parameter
In some circumstances, the network interface specified in the DEVICE= parameter may not match network interface name in the ifcfg-X configuration filename. For example:
# cat /etc/sysconfig/network-scripts/ifcfg-eth4 DEVICE=eth2 TYPE="Ethernet" ... snip ...
The configuration for "eth4" gets re-mapped to network interface "eth2".
The ClearOS API does not support this type of re-mapping, but this type of configuration should be supported for command line changes. Update the network API to handle this scenario.
The fix that was rolled into 6.5 appears to fix the issue with the firewall but there is an issue with multiwan in that multiwan appears to search for the gateway out of the config file that matches the name and not the config file that has the parameter
DEVICE=ethx. This means that the device is never provisioned under multiwan due to missing gateway information.
Multiwan must also discover properly the device information respecting the running configuration over the static naming only.
- Determine the multiwan NIC
- Find the file with the NIC configuration file by the DEVICE line rather than the name in network-scripts
- Find the gateway in the corresponding file
The changes are too significant for a minor release update. As a workaround for customers, we can add a flag that will set the "Network Interface" configuration in the UI to read-only. In fact, that might be the best option.