NeutronDhcpAgentIni - file /etc/neutron/dhcp_agent.ini
- class insights.parsers.neutron_dhcp_agent_conf.NeutronDhcpAgentIni(context)[source]
Bases:
IniConfigFile
Parse the
/etc/neutron/dhcp_agent.ini
configuration file.Sample configuration:
[DEFAULT] ovs_integration_bridge = br-int ovs_use_veth = false interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver ovs_vsctl_timeout = 10 resync_interval = 30 dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq enable_isolated_metadata = True force_metadata = False enable_metadata_network = False root_helper=sudo neutron-rootwrap /etc/neutron/rootwrap.conf state_path=/var/lib/neutron [AGENT] report_interval = 30 log_agent_heartbeats = false availability_zone = nova
Examples
>>> type(data) <class 'insights.parsers.neutron_dhcp_agent_conf.NeutronDhcpAgentIni'> >>> data.has_option("AGENT", "log_agent_heartbeats") True >>> data.get("DEFAULT", "force_metadata") == "True" True >>> data.getint("DEFAULT", "resync_interval") 30