blob: 0f5cce4b20ef884cef4a697c621d6e8b72142ece [file] [log] [blame]
Srikanth Vavilapalli31713602017-03-03 00:50:18 +00001#!/bin/sh
2
3declare -a plugins=("vcpe= ceilometer.network.ext_services.vcpe.notifications:VCPENotification"
4"vcpe.compute.stats= ceilometer.network.ext_services.vcpe.notifications:VCPEComputeStatistics"
5"vcpe.dns.cache.size=ceilometer.network.ext_services.vcpe.notifications:VCPEDNSCacheSize"
6"vcpe.dns.total_instered_entries=ceilometer.network.ext_services.vcpe.notifications:VCPEDNSTotalInsertedEntries"
7"vcpe.dns.replaced_unexpired_entries= ceilometer.network.ext_services.vcpe.notifications:VCPEDNSReplacedUnexpiredEntries"
8"vcpe.dns.queries_answered_locally= ceilometer.network.ext_services.vcpe.notifications:VCPEDNSQueriesAnsweredLocally"
9"vcpe.dns.queries_forwarded= ceilometer.network.ext_services.vcpe.notifications:VCPEDNSQueriesForwarded"
10"vcpe.dns.server.queries_sent= ceilometer.network.ext_services.vcpe.notifications:VCPEDNSServerQueriesSent"
11"vcpe.dns.server.queries_failed= ceilometer.network.ext_services.vcpe.notifications:VCPEDNSServerQueriesFailed"
12"volt.device= ceilometer.network.ext_services.volt.notifications:VOLTDeviceNotification"
13"volt.device.subscribers= ceilometer.network.ext_services.volt.notifications:VOLTDeviceSubscriberNotification"
14"infra=ceilometer.network.ext_services.openstack_infra.notifications:OPENSTACK_INFRANotification"
15"cord=ceilometer.network.ext_services.cord.notifications:CORDNotificationBase"
16"broadview.bst.device=ceilometer.network.ext_services.broadview.notifications:BroadViewNotificationBase")
17
18section='ceilometer.notification'
19for line in "${plugins[@]}"
20do
21 sed -i -e '/\['$section'\]/{;:a;n;/^$/!ba;i\'"$line"'' -e '}' /usr/local/lib/python2.7/dist-packages/ceilometer*egg*/entry_points.txt
22done
23