def remove_node_from_service(self, service_name, sid, unit_id):
    cmd = ['/opt/nedge/neadm/neadm', 'service', 'remove', service_name, sid]
    if self.is_node_exist(service_name, sid):
        self.exec_cmd('remove_node_from_service', cmd)
        node_count = self.get_service_node_count(service_name)
        if (node_count == 0):
            self.delete_service(service_name)
    else:
        print('\tremove_node_from_service: Node {} does not exist to remove'.format(sid))
    self.db.remove(sid, unit_id)
def remove_node_from_service(self, service_name, sid, unit_id):
    cmd = ['/opt/nedge/neadm/neadm', 'service', 'remove', service_name, sid]
    if self.is_node_exist(service_name, sid):
        self.exec_cmd('remove_node_from_service', cmd)
        node_count = self.get_service_node_count(service_name)
        if (node_count == 0):
            self.delete_service(service_name)
    else:
        print('\tremove_node_from_service: Node {} does not exist to remove'.format(sid))
    self.db.remove(sid, unit_id)