I am using tags for my network selection. I have been trying to find a way to extract all networks with tags, tried via code and db, but havent found a way yet…
running ruby script in cf irb, the variables aren’t makig it into the $evm.vmdb(:lan).all.each do |network| loop
envname = "nonprod"
zone = "green"
site = "d3"
network_location = “data”
$evm.vmdb(:lan).all.each do |network|
if network.tagged_with?(:zone, zone) &&
network.tagged_with?(:site, site) &&
network.tagged_with?(:envname, envname) &&
selected_network << network.name
In the db SELECT * from lans; doesn’t have a field for tags…