Sha256: f71439db9ba5525f0c6ba9d8a82627b3009e197aa1eb09cb8c3cf7eb2061cef8
Contents?: true
Size: 717 Bytes
Versions: 2
Compression:
Stored size: 717 Bytes
Contents
module Fog module Ovirt class Compute class V4 class Real def list_vnic_profiles(_opts = {}) dc_vnics = [] profiles = client.system_service.vnic_profiles_service.list profiles.each do |profile| vnic_network = client.follow_link(profile.network) dc_vnics.append(profile) if vnic_network.data_center.id == datacenter end dc_vnics end end class Mock def list_vnic_profiles(_filters = {}) xml = read_xml "vnic_profiles.xml" ovirt_attrs OvirtSDK4::Reader.read(Nokogiri::XML(xml).root.to_s) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-ovirt-2.0.2 | lib/fog/ovirt/requests/compute/v4/list_vnic_profiles.rb |
fog-ovirt-2.0.1 | lib/fog/ovirt/requests/compute/v4/list_vnic_profiles.rb |