NeutronSriovAgent - file /etc/neutron/plugins/ml2/sriov_agent.ini

class insights.parsers.neutron_sriov_agent.NeutronSriovAgent(context)[source]

Bases: insights.core.IniConfigFile

This class provides parsing for the files:

/etc/neutron/plugins/ml2/sriov_agent.ini /var/lib/config-data/puppet-generated/neutron/etc/neutron/plugins/ml2/sriov_agent.ini

Sample input data is in the format:

[DEFAULT]
debug = false

[sriov_nic]
physical_device_mappings=datacentre:enp2s0f6

[agent]
polling_interval=2

[securitygroup]
firewall_driver=noop
report_interval = 60

[keystone_authtoken]
auth_port = 35357

Examples

>>> type(conf)
<class 'insights.parsers.neutron_sriov_agent.NeutronSriovAgent'>
>>> conf.sections()
['sriov_nic', 'agent', 'securitygroup', 'keystone_authtoken']
>>> conf.has_option('DEFAULT', 'debug')
True
>>> conf.get("sriov_nic", "physical_device_mappings")
'datacentre:enp2s0f6'
>>> conf.get("agent", "polling_interval")
'2'