def run_collectd_amqp(self):
     """ run amqp consumer to collect the NFVi data """
     amqp_url = 'amqp://*****:*****@{}:5672/%2F'.format(self.vnfip)
     amqp = AmqpConsumer(amqp_url, self._queue)
     try:
         amqp.run()
     except (AttributeError, RuntimeError, KeyboardInterrupt):
         amqp.stop()
Example #2
0
 def setUp(self):
     self.queue = multiprocessing.Queue()
     self.url = 'amqp://*****:*****@127.0.0.1:5672/%2F'
     self.amqp_consumer = AmqpConsumer(self.url, self.queue)