Specifying order on list commands
Use the Configuration Editor to specify order on list commands.
Before you begin
On list commands, you can use the equals icon to specify the location at which you want a new command added.
Note: If
you choose not to use the match icon, any newly added list commands
are appended to the end of the command.
About this task
To specify order on list commands, follow these steps.
Procedure
- Select and open the command you wish to edit.
- While in Match view, select the command that must exist and click the equals icon.
- Switch to Replace view (by using the Match/Replace icon.
- Add the command you want to be inserted, and using the up and down arrows if necessary, move the newly added commands to the proper place in relation to the matched command.
Example
Consider the following command set specified in the Configuration Editor:
match:permit host 2.2.2.2
add: permit host 1.1.1.1 before 2.2.2.2
add:permit host 3.3.3.3 after 2.2.2.2
add:permit host 4.4.4.4 after 3.3.3.3
If this command set is applied to the following base-line configuration:
permit host 0.0.1.1
permit host 2.2.2.2 <---- changes will occur due to this match
permit host 5.5.5.5
deny ip any any log
The configuration will look as follows after the command set is applied:
permit host 0.0.1.1
permit host 1.1.1.1
permit host 2.2.2.2
permit host 3.3.3.3
permit host 4.4.4.4
permit host 5.5.5.5
deny ip any any log