VMware NSX

 View Only
  • 1.  Cloning NSX Edge

    Posted Apr 11, 2018 04:52 PM

    is there a supported way to clone NSX edge gateways, or to have some type of template to deploy them?  I have a number of edges to deploy, and while they all will have different information on their interfaces, much of the configuration (firewall rules, nat exemptions, etc) will remain the same other than the local network needing to be updated.  I have objects defined at the global level so I'd want to build an edge, add the required rules and nat statements, and then use that to deploy future ones.  I found a site referencing using "get-nsxedge edge01 | copy-nsxedge" but wasn't sure if that was a built-in function and if using it in that manner was supported.



  • 2.  RE: Cloning NSX Edge
    Best Answer

    Broadcom Employee
    Posted Apr 11, 2018 07:44 PM

    There is no supported way of cloning edges for the ease of deployment. Power-NSX would be the right candidate for automating the deployment .You may please follow

    GitHub - vmware/powernsx: PowerShell module that abstracts the VMware NSX-v API to a set of easily used PowerShell funct…

    I hope the site you are referring is ->  https://powernsx.github.io/blog#blog031116   ?

    It accomodates the following edge features:

    • Interface IPs
    • Secondary Addresses
    • Load Balancer VIPs
    • Self Signed certificate regeneration
    • SSL VPN configurations
    • IPSEC configurations
    • NAT and DFW elements
    • Local objects

    Few  examples are mentioned here https://networkinferno.net/powernsx-automating-an-entire-3-tier-app-deployment-2



  • 3.  RE: Cloning NSX Edge

    Posted Apr 13, 2018 02:05 PM

    Thanks for the reply.  Yes, that's what I was referring to in terms of the site and commands.  I'll review and test and see if we run into any issues.



  • 4.  RE: Cloning NSX Edge

    Posted Apr 11, 2018 09:01 PM

    I assume you are referencing to PowerNSX cmdlets.

    You can use the Export & ImportNsxObject cmdlets, see below example:

         Get-NsxEdge Edge01 | Export-NsxObject c:\temp\Edge01.xml

         Import-NsxObject c:\temp\Edge01.xml | Copy-NsxEdge