private void DeconfigureSecondaryManagement(PIF master, int hi) { System.Diagnostics.Trace.Assert(!bostonOrGreater); NewFirstSlaves[master] = NetworkingHelper.CopyIPConfig(master, FirstSlaves[master]); NetworkingActionHelpers.BringDown(this, master, hi); Secondaries.Add(master); }
internal static void ReconfigureSinglePrimaryManagement(AsyncAction action, PIF src, PIF dest, int hi) { PIF new_dest = NetworkingHelper.CopyIPConfig(src, dest); // We put an IP address on the destination interface, then we reconfigure the management interface onto it. int mid = (hi + action.PercentComplete) / 2; BringUp(action, new_dest, new_dest.IP, dest, mid); ReconfigureManagement(action, src, new_dest, true, false, hi, true); }
private void ReconfigureSecondaryManagement(PIF src, PIF dest, int hi) { System.Diagnostics.Trace.Assert(!bostonOrGreater); int mid = (PercentComplete + hi) / 2; PIF new_dest = NetworkingHelper.CopyIPConfig(src, dest); NetworkingActionHelpers.BringDown(this, src, mid); NetworkingActionHelpers.BringUp(this, new_dest, dest, hi); }
internal static void ReconfigurePrimaryManagement(AsyncAction action, PIF src, PIF dest, int hi) { PIF new_dest = NetworkingHelper.CopyIPConfig(src, dest); // We bring up the slave interfaces on the slave hosts, without plugging them. // Then the slave interface on the master host. // Then we reconfigure the management interface on the slaves. // Then the master. int lo = action.PercentComplete; int inc = (hi - lo) / 4; lo += inc; BringUp(action, new_dest, false, lo); lo += inc; BringUp(action, new_dest, true, lo); lo += inc; ReconfigureManagement(action, src, new_dest, false, false, lo, true); ReconfigureManagement(action, src, new_dest, true, false, hi, true); }