class Chef::Knife::VsphereVlanList

Lists all known data stores in datacenter with sizes VsphereVlanlist extends the BaseVspherecommand

Public Instance Methods

run() click to toggle source

The main run method for vlan_list

# File lib/chef/knife/vsphere_vlan_list.rb, line 33
def run
  $stdout.sync = true

  vim_connection
  dc = datacenter
  dc.network.each do |network|
    puts "#{ui.color("VLAN", :cyan)}: #{network.name}"
  end
end