We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f583b50 + 0ec6231 commit ae02044Copy full SHA for ae02044
ocaml/xapi/xapi_bond.ml
@@ -85,6 +85,11 @@ let move_vlan ~__context host new_slave old_vlan =
85
let network = Db.PIF.get_network ~__context ~self:old_master in
86
let plugged = Db.PIF.get_currently_attached ~__context ~self:old_master in
87
88
+ if plugged then begin
89
+ debug "Unplugging old VLAN";
90
+ Nm.bring_pif_down ~__context old_master
91
+ end;
92
+
93
(* Only create new objects if the tag does not yet exist *)
94
let new_vlan, new_master =
95
let existing_vlans = Db.PIF.get_VLAN_slave_of ~__context ~self:new_slave in
0 commit comments