def handle_router_create(self, graph_db, body):
     """
     Handle the routers create events
     :param graph_db: Instance of Graph DB
     :param body: event body
     """
     timestamp = time.time()
     uuid = body['payload']['router']['id']
     neutron_db = self.get_neutron_connection()
     virtual_resources.add_neutron_routers(neutron_db, graph_db, self.pop, timestamp, uuid=uuid)
 def update_router(self, graph_db, neutron_db, uuid, timestamp):
     """
     Update Neutron Routers
     :param graph_db: Instance of Graph DB
     :param neutron_db: Instance of NeutronDB
     :param uuid: UUID of the router to be updated
     :param timestamp: timestamp in epoch
     """
     if uuid:
         router = OpenstackResource(uuid)
         router.remove_neighbours(graph_db, neighbour_type='port')
         router.remove_resource(graph_db)
         virtual_resources.add_neutron_routers(neutron_db, graph_db, self.pop, timestamp, uuid=uuid)