Avi GUI Topology Rule Action for GSLB shows random field values
search cancel

Avi GUI Topology Rule Action for GSLB shows random field values

book

Article ID: 382792

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

When configuring a DNS topology policy rule via the GUI, the actions section will show random field values when selecting "GSLB Site" as the action.  

Example:

Environment

Affects Version(s):

30.2.1

30.2.2

Cause

This is a cosmetic known issue with the GUI and does not affect the functionality of the topology policy rule feature.

Resolution

This issue will be fixed in the next 31.1.x maintenance release of VMware Avi Load Balancer.

Workaround(s):

Configure the topology policy rule via CLI.

Example:

  1. Identify the policy object attached to your DNS virtual service.  The policy will contain "TopologyPolicy" and the name of the virtual service in the object name.

    CLI command show dnspolicy

  2. Edit the topology policy

    CLI command: configure dnspolicy POLICY_NAME

  3. Configure the topology rule

    Example:

    [admin:example]: > configure dnspolicy dns-vs-TopologyPolicy-0
    [admin:example]: dnspolicy> rule 
    [admin:example]: dnspolicy:rule> name example
    [admin:example]: dnspolicy:rule> index <integer> 
    [admin:example]: dnspolicy:rule> enable 
    [admin:example]: dnspolicy:rule> match 
    [admin:example]: dnspolicy:rule:match:client_ip_address> 
    [admin:example]: dnspolicy:rule:match:client_ip_address> client_ip match_criteria is_in addrs x.x.x.x
    [admin:example]: dnspolicy:rule:match:client_ip_address:client_ip> save 
    [admin:example]: dnspolicy:rule:match:client_ip_address> save 
    [admin:example]: dnspolicy:rule:match> save 
    [admin:example]: dnspolicy:rule> action 
    [admin:example]: dnspolicy:rule:action> gslb_site_selection site_name GSLB_SITE_NAME
    [admin:example]: dnspolicy:rule:action:gslb_site_selection> save 
    [admin:example]: dnspolicy:rule:action> save 
    [admin:example]: dnspolicy:rule> save 
    [admin:example]: dnspolicy> save

    Example CLI configuration output:

    +---------------------------------+------------------------------------------------+
    | Field                           | Value                                          |
    +---------------------------------+------------------------------------------------+
    | uuid                            | dnspolicy-UUID |
    | name                            | dns-vs-TopologyPolicy-0                        |
    | rule[1]                         |                                                |
    |   name                          | example                                       |
    |   index                         | 1                                              |
    |   enable                        | True                                           |
    |   match                         |                                                |
    |     client_ip_address           |                                                |
    |       client_ip                 |                                                |
    |         match_criteria          | IS_IN                                          |
    |         addrs[1]                | x.x.x.x                                    |
    |       use_edns_client_subnet_ip | True                                           |
    |   action                        |                                                |
    |     gslb_site_selection         |                                                |
    |       site_name                 | EXAMPLE                                        |
    |       is_site_preferred         | True                                           |
    | tenant_ref                      | admin                                          |
    +---------------------------------+------------------------------------------------+