libraries/resource_providers/api200/uplink_set_provider.rb
def load_networks(network_list, type)
        return unless network_list
        return @item['networkUris'] = [] if network_list.empty?
        network_list.each do |net_name|
          net = load_resource(type, net_name)
          case type.to_sym
          when :EthernetNetwork then @item.add_network(net)
          when :FCNetwork then @item.add_fcnetwork(net)
          when :FCoENetwork then @item.add_fcoenetwork(net)
          else
            raise "UnsuportedType: The #{type} is not supported for #{@resource_name}"
          end
        end
      end
# Checks for external resources to be loaded within the @item
Checks for external resources to be loaded within the @item
Checks for external resources to be loaded within the @item
def load_networks(network_list, type)
        return unless network_list
        return @item['networkUris'] = [] if network_list.empty?
        network_list.each do |net_name|
          net = load_resource(type, net_name)
          case type.to_sym
          when :EthernetNetwork then @item.add_network(net)
          when :FCNetwork then @item.add_fcnetwork(net)
          when :FCoENetwork then @item.add_fcoenetwork(net)
          else
            raise "UnsuportedType: The #{type} is not supported for #{@resource_name}"
          end
        end
      end
def load_networks ( network_list , type ) return unless network_list return @item [ 'networkUris' ] = [ ] if network_list . empty? network_list . each do | net_name | net = load_resource ( type , net_name ) case type . to_sym when :EthernetNetwork then @item . add_network ( net ) when :FCNetwork then @item . add_fcnetwork ( net ) when :FCoENetwork then @item . add_fcoenetwork ( net ) else raise "UnsuportedType: The #{type} is not supported for #{@resource_name}" end end end
Checks for external resources to be loaded within the @item
Checks for external resources to be loaded within the @item
network_list
type