NetworkManagerConfig - file /etc/NetworkManager/NetworkManager.conf
¶
-
class
insights.parsers.networkmanager_config.
NetworkManagerConfig
(context)[source]¶ Bases:
insights.core.IniConfigFile
The
/etc/NetworkManager/NetworkManager.conf
file is in a standard ‘.ini’ format, and this parser uses the IniConfigFile base class to read this.Given a file containing the following test data:
[main] dhcp=dhclient
Example
>>> type(networkmanager_config_obj) <class 'insights.parsers.networkmanager_config.NetworkManagerConfig'> >>> networkmanager_config_obj.get('main', 'dhcp') == 'dhclient' True