Revision 7d83ae62

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
583 583
    def calculate_add_nic_spec(nic)
584 584

  
585 585
        #TODO include VCENTER_NET_REF usage it should be in one_item
586
        mac     = nic["MAC"]
587
        bridge  = nic["BRIDGE"]
588
        model   = nic["MODEL"]
589
        backing = nil
586
        mac       = nic["MAC"]
587
        bridge    = nic["BRIDGE"]
588
        model     = nic["MODEL"]
589
        vnet_ref  = nic["VCENTER_NET_REF"]
590
        backing   = nil
590 591

  
591 592
        limit_in  = nic["INBOUND_PEAK_BW"]
592 593
        limit_out = nic["OUTBOUND_PEAK_BW"]
......
605 606
        end
606 607

  
607 608
        network = self["runtime.host.network"].select do |n|
608
            n.name == bridge
609
            n._ref == vnet_ref
609 610
        end
610 611

  
611 612
        if network.empty?

Also available in: Unified diff