4.4. Undo and Redo

Firewall Builder supports undo and redo functions from the GUI and from the keyboard. In the GUI, both functions are located in the Edit menu. The keyboard commands are Ctrl-Z for Undo, and Ctrl-Y for Redo.

4.4.1. Undo Stack

The undo stack shows you a list of your changes, and lets you roll back changes you don't want. You can roll back just one change, all changes after a certain point, or all changes.

Press Ctrl-Z to undo an action. The undo stack is essentially unlimited, so you can press Ctrl-Z repeatedly to roll back a series of changes. You can also you can view the Undo stack directly by selecting Edit > Undo Stack. From that view, you can roll back several changes with a single mouse click.

Note that a change enters the undo stack as soon as you "commit" the change. For dragging and dropping, a change is committed as soon as you drag an object into a new position, at which time that change appears in the undo stack. For field edits, the change appears as soon as you move the GUI focus out of a field by pressing Enter or Tab, or by clicking outside the field.

Rolling back a change does not immediately remove that change from the stack. You can "redo" a change by clicking it. Changes after the current change stay in the stack until you perform a new edit. At that point, the new change appears as current, and all the undone changes after that point are removed from the stack.

The following figure shows a portion of an object tree, an access policy, and the undo stack. The stack has been "floated," so it can be moved as its own window. (To make an object float, click the button next to the close button.)

In the example stack, a new, blank rule has just been added to the policy.

Figure 4.24. Policy and the Undo Stack

Policy and the Undo Stack

The "inside range" IP object is now added to the Source of the new rule, and the "outside range 2" IP object is added to the Destination of the rule. However, in this example, we have made a mistake: Instead of adding "outside range 2" to the Destination, we accidentally added the "outside range" object to the Source field.

You can see the object in the policy and the undo history in the following screenshot.

Figure 4.25. Added Inside Range and Outside Range

Added Inside Range and Outside Range

To fix the error, we do two things. First, we click on "insert inside range" in the Undo Stack. This rolls back the stack to before the point at which we inserted "outside range 2."

Figure 4.26. Removed Outside Range from Source

Removed Outside Range from Source

Next, we drag "outside range 2" into the Destination field. You can see that the "insert outside range" entry has been remo ved from the stack, and the "insert outside range 2" edit now appears as the most recent change.

Figure 4.27. Added Outside Range 2 to Destination

Added Outside Range 2 to Destination


Copyright © 2000-2012 NetCitadel, Inc. All rights reserved.
 Using free CSS Templates.