blob: 37952bbabdd32795489c1a87d798bfe2f108578b [file] [log] [blame]
Emilien Macchi40546f72013-09-24 15:10:25 +02001# Neutron metering plugin
2# ---------------------------
3
4# Save trace setting
5MY_XTRACE=$(set +o | grep xtrace)
6set +o xtrace
7
8
9AGENT_METERING_BINARY="$NEUTRON_BIN_DIR/neutron-metering-agent"
10METERING_PLUGIN="neutron.services.metering.metering_plugin.MeteringPlugin"
11
12function neutron_agent_metering_configure_common() {
Isaku Yamahata9e136b42013-12-16 15:52:03 +090013 _neutron_service_plugin_class_add $METERING_PLUGIN
Emilien Macchi40546f72013-09-24 15:10:25 +020014}
15
16function neutron_agent_metering_configure_agent() {
17 METERING_AGENT_CONF_PATH=/etc/neutron/services/metering
18 mkdir -p $METERING_AGENT_CONF_PATH
19
20 METERING_AGENT_CONF_FILENAME="$METERING_AGENT_CONF_PATH/metering_agent.ini"
21
22 cp $NEUTRON_DIR/etc/metering_agent.ini $METERING_AGENT_CONF_FILENAME
23}
24
Akihiro Motokiedddb1f2013-12-09 20:21:06 +090025function neutron_metering_stop() {
26 :
27}
28
Emilien Macchi40546f72013-09-24 15:10:25 +020029# Restore xtrace
30$MY_XTRACE