I am working on a NSX Design and Deployment engagement, this includes deployment of NSX on many sites and all sites spread across many cities of India and working on web client from the central location was very slow due to bandwidth issues. so we decided to deploy all the NSX components using NSX API.this will also help in keeping this code as a backup handy , so can be executed in case of restore required.
In my first post i have shown how to create Logical Switch , Now lets create a Distributed Logical Router….
Since we are using static Routing and there is no Firewall requirement , so we have decided to not to deploy DLR edge VM at this point of time.
Request Type :POST https://<NSX-MGR-IP>/api/4.0/edges
Distributed Logical Router successfully created.
Note – At the time of Writing with NSX 6.2.2,The example given in the API doc in the DLR section is actually for an ESG. the use of “vnic” for DLR does not work. we must use <interface> </interface>.