This section describes advanced configuration options for various system components. For example, configuration options where the default works but that the user wants to customize options. After installing from packages, $NEUTRON_CONF_DIR is /etc/neutron.
You can run an L3 metering agent that enables layer-3 traffic metering. In general, you should launch the metering agent on all nodes that run the L3 agent:
neutron-metering-agent --config-file NEUTRON_CONFIG_FILE
--config-file L3_METERING_CONFIG_FILE
You must configure a driver that matches the plug-in that runs on the service. The driver adds metering to the routing interface.
Option | Value |
---|---|
Open vSwitch | |
interface_driver ($NEUTRON_CONF_DIR/metering_agent.ini) | neutron.agent.linux.interface. OVSInterfaceDriver |
Linux Bridge | |
interface_driver ($NEUTRON_CONF_DIR/metering_agent.ini) | neutron.agent.linux.interface. BridgeInterfaceDriver |
The metering agent and the L3 agent must have the same network namespaces configuration.
Note
If the Linux installation does not support network namespaces, you must disable network namespaces in the L3 metering configuration file. The default value of the use_namespaces option is True.
use_namespaces = False
You must configure any driver that implements the metering abstraction. Currently the only available implementation uses iptables for metering.
driver = neutron.services.metering.drivers.
iptables.iptables_driver.IptablesMeteringDriver
To enable L3 metering, you must set the following option in the neutron.conf file on the host that runs neutron-server:
service_plugins = metering
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License http://creativecommons.org/licenses/by/3.0/legalcode.