Resolving overlapping segment ranges and move logical switches:
- Create a new non overlapping Segment Range:
For example:
POST https://<NSXMGR_IP>/api/2.0/vdn/config/segments
<segmentRange>
<name>Segment ID Pool 2</name>
<begin>7000</begin>
<end>7999</end>
</segmentRange>
# Note the segment range “id” (lets call it newRangeId) returned in response payload.
# GET segments will also return segment range "id",
GET https://<nsxmgr-ip>/api/2.0/vdn/config/segments
<segmentRanges>
<segmentRange>
<id>4</id>
<name> Segment ID Pool 2</name>
<begin>7000</begin>
<end>7999</end>
<isUniversal>false</isUniversal>
<universalRevision>0</universalRevision>
</segmentRange>
<segmentRanges>
- Shutdown or disconnect VNIC from the dvpg (LogicalSwitch).
- Move each logical switch from the old segment range to new segment range. This API needs virtualwire-id and rangeId as inputs. API payload is empty:
For example:
PUT https://<NSXMGR_IP>/api/2.0/vdn/virtualwires/<virtualwire-id>/segmentreconfig/<newRangeId> - To resolve overlapping multicast ranges and move logical switches:
Create a new non overlapping multicast Range:
For example:
POST https://<NSXMGR_IP>/api/2.0/vdn/config/multicasts
<multicastRange>
<name>Range 2</name>
<begin>237.0.0.0</begin>
<end>237.255.255.255</end>
</multicastRange>
# Note the multicast range “id” (lets call it newRangeId) returned in response payload.
# GET multicasts will also return multicast range id,
GET https://<nsxmgr-ip>/api/2.0/vdn/config/multicasts
<multicastRanges>
<multicastRange>
<id>3</id>
<name>Range 2</name>
<begin>237.0.0.0</begin>
<end>237.255.255.255</end>
<isUniversal>false</isUniversal>
<universalRevision>0</universalRevision>
</multicastRange>
</multicastRanges>
- Shutdown or disconnect VNIC from the dvpg (LogicalSwitch).
- Move each logical switch from the old multicast range to new multicast range. This API needs virtualwire-id and newRangeId as inputs. API payload is empty:
For example:
PUT https://<NSXMGR_IP>/api/2.0/vdn/virtualwires/<virtualwire-id>/multicastreconfig/<newRangeId>
Move each distributed logical router to the new segment or multicast range.
If you are using segments, use the following API:
POST https://<NSXMGR_IP>/api/4.0/edges/{edge-id}?action=vdridreconfig&vdnRangeId=<newRangeId> To delete the old segment range:
For example:
DELETE https://<NSXMGR_IP>/api/2.0/vdn/config/segments/<oldRangeId> For more information on overlapping segment ranges, see the
Cross vCenter NSX Installation Guide.
If you are using multicast, use the following API:
POST https://<NSXMGR_IP>//api/4.0/edges/{edge-id}?action=vdridreconfig&multicastRangeId=<newRangeId>To delete the old multicast range:
For example:
DELETE https://<NSXMGR_IP>/api/2.0/vdn/config/multicasts/<oldRangeId>