lib/vcloud-rest/vcloud/network.rb
def get_network(networkId)
      response = get_base_network(networkId)

      name = response.css('OrgVdcNetwork').attribute('name').text

      description = response.css("Description").first
      description = description.text unless description.nil?

      gateway = response.css('Gateway')
      gateway = gateway.text unless gateway.nil?

      netmask = response.css('Netmask')
      netmask = netmask.text unless netmask.nil?

      fence_mode = response.css('FenceMode')
      fence_mode = fence_mode.text unless fence_mode.nil?

      start_address = response.css('StartAddress')
      start_address = start_address.text unless start_address.nil?

      end_address = response.css('EndAddress')
      end_address = end_address.text unless end_address.nil?


      { :id => networkId, :name => name, :description => description,
        :gateway => gateway, :netmask => netmask, :fence_mode => fence_mode,
        :start_address => start_address, :end_address => end_address }
    end
def get_network(networkId)
      response = get_base_network(networkId)

      name = response.css('OrgVdcNetwork').attribute('name').text

      description = response.css("Description").first
      description = description.text unless description.nil?

      gateway = response.css('Gateway')
      gateway = gateway.text unless gateway.nil?

      netmask = response.css('Netmask')
      netmask = netmask.text unless netmask.nil?

      fence_mode = response.css('FenceMode')
      fence_mode = fence_mode.text unless fence_mode.nil?

      start_address = response.css('StartAddress')
      start_address = start_address.text unless start_address.nil?

      end_address = response.css('EndAddress')
      end_address = end_address.text unless end_address.nil?


      { :id => networkId, :name => name, :description => description,
        :gateway => gateway, :netmask => netmask, :fence_mode => fence_mode,
        :start_address => start_address, :end_address => end_address }
    end
Fetch details about a given Org VDC network