Пример #1
0
 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);
 }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }