def METHOD_NAME(module, commands):
    connection = get_connection(module)
    try:
        resp = connection.edit_config(commands)
        return resp.get("response")
    except ConnectionError as exc:
        module.fail_json(msg=to_text(exc))