ansible-collection-alb icon indicating copy to clipboard operation
ansible-collection-alb copied to clipboard

Unable to set tier1_lr attribute

Open hharsha9090 opened this issue 10 months ago • 0 comments

Describe the bug

While creating avi pool I'm unable to set tier1_lr attribute. I get the following error. Unsupported parameters for (avi_pool) module: tier1_lr. Supported parameters include: a_pool, ab_pool, ab_priority, analytics_policy, analytics_profile_ref, api_context, api_version, apic_epg_name, application_persistence_profile_ref, autoscale_launch_config_ref, autoscale_networks, autoscale_policy_ref, avi_api_patch_op, avi_api_update_method, avi_credentials, avi_disable_session_cache_as_fact, capacity_estimation, capacity_estimation_ttfb_thresh, cloud_config_cksum, cloud_ref, conn_pool_properties, connection_ramp_duration, controller, created_by, default_server_port, delete_server_on_dns_refresh, description, domain_name, east_west, enabled, external_autoscale_groups, fail_action, fewest_tasks_feedback_delay, graceful_disable_timeout, gslb_sp_enabled, health_monitor_refs, host_check_enabled, inline_health_monitor, ipaddrgroup_ref, lb_algorithm, lb_algorithm_consistent_hash_hdr, lb_algorithm_core_nonaffinity, lb_algorithm_hash, lookup_server_by_name, max_concurrent_connections_per_server, max_conn_rate_per_server, min_health_monitors_up, min_servers_up, name, networks, nsx_securitygroup, password, pki_profile_ref, placement_networks, prst_hdr_name, request_queue_depth, request_queue_enabled, rewrite_host_header_to_server_name, rewrite_host_header_to_sni, server_auto_scale, server_count, server_name, server_reselect, server_timeout, servers, service_metadata, sni_enabled, ssl_key_and_certificate_ref, ssl_profile_ref, state, tenant, tenant_ref, tenant_uuid, url, use_service_port, username, uuid, vrf_ref.

If I dont specify tier1_lr and wanted to specify cloud_ref it says the following error- {\"error\": \"tier1_lr not configured\"}

Reproduction steps

  1. Here is how my ansible-playbook looks like - name: Create a Pool with two servers and HTTP monitor avi_pool: avi_credentials: username: "" password: "" controller: "" api_version: "22.1.5" name: testpool2 description: testpool1 state: present tenant: 'custom_tenant' health_monitor_refs: - '/api/healthmonitor?name=custom-health' cloud_ref: '/api/cloud?name=custom-cloud' vrf_ref: '/api/vrfcontext?name=vrf1_context' tier1_lr: '/infra/tier-1s/tier1_lr' servers: - ip: addr: 192.168.138.11 type: V4 - ip: addr: 192.168.138.12 type: V4 - ip: addr: 192.168.138.13 type: V4
  2. .ansible version - 2.15.2
  3. ansible collection vmware.vmware_rest version 2.3.1

Expected behavior

As per the documentation API version above 20.1.1 supports tier1_lr attribute But it does not accept the parameter while using it in the module.

Additional context

No response

hharsha9090 avatar Apr 15 '24 21:04 hharsha9090