Marking User Created Transport Zone as Default TZ in NSX-T

For a freshly deployed NSX-T environment, you will find 2 default transport zones created:

  • nsx-overlay-transportzone
  • nsx-vlan-transportzone

These are system created TZ’s and thus they are marked as default. 

You can consume these TZ’s or can create a new one as per your infrastructure. Default TZ’s can’t be deleted.

Any newly created transport zone doesn’t shows up as default. Also when creating a new TZ via UI, we don’t get any option to enable this flag. As of now this is possible only via API. 

Creating a new Transport Zone with the “is_default” flag to true will work as intended, and the “is_default” flag will be removed from the system created TZ and the newly created TZ will be marked as the default one. 

Note: We can modify a TZ and mark it as default post creation as well. 

Let’s have a look at properties of system created transport zone.

To set a manually created TZ as default, we have to remove “is_default” flag from the system created TZ and then create a new TZ or modify existing TZ with this flag.

1: Remove “is_default” flag from system created TZ: In the payload json supplied with PUT request, change value of “is_default” from true to false. 

2: Modify existing TZ and set flag: In the payload json supplied with PUT request, change value of “is_default” from false to true. 

Now if we look at the transport zones, we can see user created TZ is now marked as default and tags have been removed from both system created TZ.

Note: If there is an existing transport zone that is marked as default, and you try to update the “is_default” on a separate transport zone without removing the flag from the existing default transport zone, the following error will be returned, and it provides the ID of the current Default transport zone.

And that’s it for this post.

I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing 🙂

Leave a Reply