Skip to content

Commit

Permalink
OpenNebula#3058: Patch nic detach
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Mar 19, 2019
1 parent c4c97b2 commit 8abe2b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/vmm_mad/remotes/lib/lxd/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def stop(options = { :timeout => 120 })
# Remove nic from ovs-switch if needed
@one.get_nics.each do |nic|
del_bridge_port(nic) # network driver matching implemented here
end
end
end

def restart(options = {})
Expand Down Expand Up @@ -218,7 +218,8 @@ def detach_nic(mac)
device.include?('eth') && config['hwaddr'] == mac
end

update
# Removes nic from ovs-switch if needed
update if del_bridge_port(@one.get_nic_by_mac(mac))
end

#---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/vmm_mad/remotes/lxd/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require 'container'
require_relative '../../scripts_common'

# ------------------------------------------------------------------------------
# Action Arguments, STDIN includes XML description of the OpenNebula VM
# Action Arguments, STDIN doesn't include XML description of the OpenNebula VM
# ------------------------------------------------------------------------------
vm_name = ARGV[0]

Expand Down

0 comments on commit 8abe2b0

Please sign in to comment.