Unable to configure Route Redistribution (option greyed out) on an Edge managed by secondary NSX Manager in a cross-site vCenter
search cancel

Unable to configure Route Redistribution (option greyed out) on an Edge managed by secondary NSX Manager in a cross-site vCenter

book

Article ID: 303223

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Route Redistribution configuration page on an Edge managed by a secondary NSX Manager in a cross site environment is greyed out/disabled.
  • You are able to configure the Route Redistribution feature via API call on the secondary site

Environment

NSX for vSphere 6.4.4 and 6.4.5

Cause

The current behavior is a bug which has been fixed in the next release

Resolution

This issue is resolved in NSX for vSphere 6.4.6

Workaround

  • Use REST API call to configure route redistribution
  • Use the GET API call to retrieve the current configuration
    GET https://<NSX-manager-IP>/api/4.0/edges/<edge-id>/routing/config/bgp
  • Modify the BGP route redistribution fields as required
              <bgp>
                    <enabled>true</enabled>
                    <localAS>65004</localAS>
                    <localASNumber>65004</localASNumber>
                    <bgpNeighbours>
                        <bgpNeighbour>
                        </bgpNeighbour>
                    </bgpNeighbours>
                    <redistribution>
                        <enabled>true</enabled>
                        <rules>
                            <rule>
                                <id>0</id>
                                <from>
                                    <ospf>true</ospf>
                                    <bgp>false</bgp>
                                    <static>true</static>
                                    <connected>true</connected>
                                </from>
                                <action>permit</action>
                            </rule>
                        </rules>
                    </redistribution>
                    <gracefulRestart>false</gracefulRestart>
                    <defaultOriginate>true</defaultOriginate>
                </bgp>
  • Use a PUT API call to push the configuration
    PUT https://<NSX-manager-IP>/api/4.0/edges/<edge-id>/routing/config/bgp
  • An entry will be added for route redistribution in the route redistribution table. On the UI, the status will still be greyed out.
  • Confirm the redistributed routes from the edge routing table