Sha256: df79843e12bca1df6b95ce242c9fc373fbb866f8eb8ea192bae232b9034b6373
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
class PhysicalNetwork < CloudstackCli::Base desc "list", "list physical networks" option :project def list project = find_project if options[:project] networks = client.list_physical_networks if networks.size < 1 puts "No networks found" else table = [['Name', 'State', 'ID', 'Zone ID']] networks.each do |network| table << [ network["name"], network["state"], network["id"], network["zoneid"] ] end print_table table end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-cli-0.1.2 | lib/cloudstack-cli/commands/physical_network.rb |
cloudstack-cli-0.1.1 | lib/cloudstack-cli/commands/physical_network.rb |