Changing Hardware gateways (Hardware VTEP) in Replication Cluster through API in NSX-v
search cancel

Changing Hardware gateways (Hardware VTEP) in Replication Cluster through API in NSX-v

book

Article ID: 323920

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Unable to change Replicator cluster members: the option is not present in the HTML5 interface.
  • The hardware Devices Tab is lost in the service Definitions in the NSX section in the NSX-v plugin.
  • There may be a need for legacy VTEP devices to be maintained before migration from NSX-v to NSX-T and subsequent decommissioning.

Environment

VMware NSX Data Center for vSphere

Cause

The hardware gateway tab is not supported post ESXi 6.5. 

Resolution

No resolution possible. 

Workaround

  • Hardware gateways can be changed in the replication cluster using the below API
    PUT /api/2.0/vdn/hardwaregateways/replicationcluster?id=replicationcluster-default


    For reference see pages 585/586/587: NSX API Guide

    Body: 

<replicationCluster>

<hosts>

<basicinfo>

<objectId>host-38</objectId>

</basicinfo>

<basicinfo>

<objectId>host-29</objectId>

</basicinfo>

<basicinfo>

<objectId>host-33</objectId>

</basicinfo>

</hosts>

<replicationClusterId>replicationcluster-default</replicationClusterId>

</replicationCluster>

  • In the above command, 'replicationcluster-default' is the name of the replication cluster which can be found from using the below API:

    GET /api/2.0/vdn/hardwaregateways/replicationclusters
  • You can also check which host is associated to replication cluster using the below API.

    GET 'https://nsx-mgr-ip/api/2.0/vdn/hardwaregateways/replicationcluster?id=replicationcluster-default

Additional Information