Srikanth Vavilapalli | 3171360 | 2017-03-03 00:50:18 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | declare -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 | |
| 18 | section='ceilometer.notification' |
| 19 | for line in "${plugins[@]}" |
| 20 | do |
| 21 | sed -i -e '/\['$section'\]/{;:a;n;/^$/!ba;i\'"$line"'' -e '}' /usr/local/lib/python2.7/dist-packages/ceilometer*egg*/entry_points.txt |
| 22 | done |
| 23 | |