VMware Networking Community
akumbalakandy
Enthusiast
Enthusiast

NSX-T Security Group Creation: Automation

Dear Team,

Firstly, I am not all good with scripting or automation. 

 

I have a requirement to add hundreds of firewall rules. The group name, and membership criteria are listed in excel file. Is there any scrip available to import it to NSX-T (3.x)?

2 Replies
ShahabKhan
VMware Employee
VMware Employee

Hi,

There is a script available to configure distributed firewall rules recommended by vRNI to NSX-T. Below is the link to the same.

https://developer.vmware.com/samples/7136/python-script-to-import-distributed-firewall-rules-recomme...

 

0 Kudos
akumbalakandy
Enthusiast
Enthusiast

Hello ShahabKhan,

I used this script which imports all rules and groups from vRNI Export. Unfortunately it doesn't create the group members. That has to be done manually. 

In my case I don't want to import the rule itself. I want to import the groups with static (IP Set, VMs) and dynamic members from a CSV file. 

 

 

0 Kudos