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 TZs, and thus, they are marked as default. 

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

Any newly created transport zone doesn’t show up as the 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 set 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 the default post creation as well. 

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

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

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

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

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

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