def get_resource_by_type(self, graph_db, service_type):
     """
     Get Controller service of the given type
     :param graph_db: Graph DB instance
     :param service_type: Service type of the wanted node
     :return node: Controller Service node
     """
     node = neo_resource.get_node_by_property(graph_db, self.label, 'name', service_type)
     return node
 def get_resource_by_type(self, graph_db, service_type):
     """
     Get Controller service of the given type
     :param graph_db: Graph DB instance
     :param service_type: Service type of the wanted node
     :return node: Controller Service node
     """
     node = neo_resource.get_node_by_property(graph_db, self.label, 'name',
                                              service_type)
     return node
 def get_hypervisor(self, graph_db):
     """
     Retrieve the Hypervisor node from the DB
     :param graph_db: Graph DB instance
     :return Node: Hypervisor node
     """
     node = neo_resource.get_node_by_property(graph_db,
                                              self.label,
                                              property_key='hostname',
                                              property_value=self.hostname)
     return node
 def get_hypervisor(self, graph_db):
     """
     Retrieve the Hypervisor node from the DB
     :param graph_db: Graph DB instance
     :return Node: Hypervisor node
     """
     node = neo_resource.get_node_by_property(graph_db,
                                              self.label,
                                              property_key='hostname',
                                              property_value=self.hostname)
     return node