Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

Adding vShield Edge NAT rules from a CSV file using PowerCLI

$
0
0

I recently read Alan's great post on adding NAT rules here: http://www.virtu-al.net/2014/07/24/working-vcd-edge-gateway-rules-powercli/

I have used this successfully for single rules in a lab environment, but have hundreds of rules I need to do in Production.

Although I managed to hack together an Excel spreadsheet which concatenated all these parameters to create each command, I wondered if there was a quicker way to do this.

 

My plan was to modify Alan's script to import a CSV file, then loop through every row and build the XML file in one pass.

However, I'm very rusty on my scripting skills, so I thought I'd ask first if this has already been done by someone else.

 

Does anybody know if there's a way to update the vShield Edge NAT rules from a CSV file?


Viewing all articles
Browse latest Browse all 13334


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>