Skip to content

Commit ae02044

Browse files
author
xen-git
committed
Merge commit '0ec6231e38dd307940c8f8f34bc996c5f313e26e'
2 parents f583b50 + 0ec6231 commit ae02044

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ocaml/xapi/xapi_bond.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ let move_vlan ~__context host new_slave old_vlan =
8585
let network = Db.PIF.get_network ~__context ~self:old_master in
8686
let plugged = Db.PIF.get_currently_attached ~__context ~self:old_master in
8787

88+
if plugged then begin
89+
debug "Unplugging old VLAN";
90+
Nm.bring_pif_down ~__context old_master
91+
end;
92+
8893
(* Only create new objects if the tag does not yet exist *)
8994
let new_vlan, new_master =
9095
let existing_vlans = Db.PIF.get_VLAN_slave_of ~__context ~self:new_slave in

0 commit comments

Comments
 (0)