Revision 95d3d975 src/vnm_mad/remotes/802.1Q/HostManaged.rb

View differences:

src/vnm_mad/remotes/802.1Q/HostManaged.rb
62 62

  
63 63
    def create_bridge(bridge)
64 64
        OpenNebula.exec_and_log("#{COMMANDS[:brctl]} addbr #{bridge}")
65
        @bridges[bridge] = Array.new
65 66
    end
66 67

  
67 68
    def device_exists?(dev, vlan=nil)
......
83 84
    def attach_brigde_dev(bridge, dev, vlan=nil)
84 85
        dev = "#{dev}.#{vlan}" if vlan
85 86
        OpenNebula.exec_and_log("#{COMMANDS[:brctl]} addif #{bridge} #{dev}")
87
        @bridges[bridge] << dev
86 88
    end
87 89

  
88 90
    def ifup(dev, vlan=nil)

Also available in: Unified diff