'Create the items if they don\'t exist already'

def check_and_create_items(self, op_get, op_create, items, **data_create):

    for item in items:
        ret = self.execute_rpc(op_get, name=item)
        if (len(ret) == 0):
            try:
                data_create['name'] = item
                self.execute_rpc(op_create, **data_create)
            except CliError:
                continue
