avocado
avocado copied to clipboard
network util support for network manager and wicked way of configuration
Network util support for network manager and wicked way of configuration
Before RHEL 9
- Network utils supports legacy ifcfg way of network configuration
- Path of the configuration file was '/etc/sysconfig/network-scripts'
- Naming convention of the configuration would be 'ifcfg-NetworkName'
RHEL 9
- Rhel 9 onwards network configurations are managed by NetworkManager (NMconnections)
- NetworkManager offers management through different ways. One of the way is through 'nmcli'
- Path of the NMconnection file is '/etc/NetworkManager/system-connections'
- Naming convention of the file would be 'NetworkName.nmconnection'
SUSE supports Wicked way of network configuration
- SUSE use to support legacy ifcfg way of configuration, Now SUSE also supports Wicked way of configuration
- Wicked Configuration file remains same with "ifcfg-NetworkName" but has just 3 parameters IPADDR='' BOOTPROTO='' STARTMODE=''
Plan to add support for NetworkManager in avocado/utils
-
Adding a condition check for RHEL 9 version for new NM connection configuration and keeping old configuration as it is to support old versions
-
Adding condition check for path where file is been stored
-
generating .nmconnection file using nmcli commands commands used : nmcli c mod id {Network name} ipv4.method manual ipv4.address {ipaddr}/{netmask} nmcli connection up {Network name}
-
For SUSE Wicked configuration support planning to add a condition check for creating a cfg file with just above given parameters.
@beraldoleal Requesting your inputs on the plan for adding NetworkManager support
@TasmiyaNalatwad thanks for the patch https://github.com/avocado-framework/avocado/pull/5480 @clebergnu @beraldoleal Tasmiya has tried fixing this.. Please have a look
Solved in #5480