1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

Feature #3666: move get_bridges to activate/deactivate method.

This commit is contained in:
goberle 2015-06-12 14:54:04 +02:00
parent 112052c8e2
commit e35f04c33a

View File

@ -27,15 +27,13 @@ module VNMMAD
@locking = true
super(vm_tpl, xpath_filter, deploy_id, hypervisor)
lock
@bridges = get_bridges
unlock
end
# Activate the driver and creates bridges and tags devices as needed.
def activate
lock
@bridges = get_bridges
process do |nic|
@nic = nic
@ -77,6 +75,8 @@ module VNMMAD
# Deactivate the driver and delete bridges and tags devices as needed.
def deactivate
lock
@bridges = get_bridges
attach_nic_id = @vm['TEMPLATE/NIC[ATTACH="YES"]/NIC_ID']