Changes made to the route redistribution on a stretched logical router on one site simultaneously affects the other site
search cancel

Changes made to the route redistribution on a stretched logical router on one site simultaneously affects the other site

book

Article ID: 427775

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

When configuring Route Redistribution on a stretched Tier-0 gateway, enabling settings for a specific site (e.g., "Test") unintentionally applies the same settings to other sites that contain the first site's name as a prefix (e.g., "Test.Test-2"). This affects both the enabling of redistribution and the configuration of Redistribution Rules.

Environment

VMware NSX

Cause

The UI logic appears to identify target sites using a partial string match (prefix match) rather than an exact string match.

Resolution

The issue is addressed in NSX 9.1 and 4.2.4 

Additional Information

To update GM Tier-0 Route Redistribution and Route Redistribution use the below APIs.

Step 1. Get the Tier-0 Local Services
GET: https://<policy-mgr>/global-manager/api/v1/global-infra/tier-0s/<tier-0 id>/locale-services/

Step 2. Get the specific Tier-0 Local Services which you wish to udpate
GET: https://<policy-mgr>/global-manager/api/v1/global-infra/tier-0s/<tier-0 id>/locale-services/<locale-services-id>

Copy this GET API request response we will use it in Step 3.


Step 3: Update Tier-0 Locale Service with Route Redistribution and Rules

PUT https://<policy-mgr>/global-manager/api/v1/global-infra/tier-0s/<tier-0 id>/locale-services/<locale-services-id>
{
            "unique_id": "2fd93462-####-4bd1-####-############",
            "_last_modified_user": "admin",
            "_revision": 0,
            "owner_id": "7316####-f029-####-b0b5-###########",
            "_system_owned": false,
            "resource_type": "LocaleServices",
            "_last_modified_time": 1768805311876,
            "overridden": false,
            "bfd_profile_path": "/global-infra/bfd-profiles/default",
            "display_name": "Test",
            "_create_user": "admin",
            "_create_time": 1768805311876,
            "path": "/global-infra/tier-0s/T0_Gateway_####/locale-services/####",
            "edge_cluster_path": "/global-infra/sites/Test/enforcement-points/default/edge-clusters/8e272f3b-####-4a3b-####-55964e84b615",
            "marked_for_delete": false,
            "parent_path": "/global-infra/tier-0s/T0_Gateway_#####",
            "id": "Paris",
            "relative_path": "Test",
            "route_redistribution_config": {
              "bgp_enabled": true, <<<=============================== Enable Via BGP flag
              "redistribution_rules": [ <<<========================== Add redistribution rules
                {
                  "name": "Rule-1",
                  "route_redistribution_types": [
                    "TIER0_STATIC",
                    "TIER0_CONNECTED"
                  ]
                }
              ]
            }
          }