Copying filter policies – Alcatel-Lucent 7750 SR OS User Manual

Page 349

Advertising
background image

Filter Policies

7750 SR OS Router Configuration Guide

Page 349

Copying Filter Policies

When changes are made to an existing filter policy, they are applied immediately to all services
where the policy is applied. If numerous changes are required, the policy can be copied so you can
edit the “work in progress” version without affecting the filtering process. When the changes are
completed, you can overwrite the work in progress version with the original version.

New filter policies can also be created by copying an existing policy and renaming the new filter.

CLI Syntax:

config>filter# copy filter-type src-filter-id [src-entry src-

entry-id] to dst-filter-id [dst-entry dst-entry-id] [over-

write]

The following displays the command usage to copy an existing IP filter (11) to create a new filter
policy (12).

Example

:

config>filter# copy ip-filter 11 to 12

A:ALA-7>config>filter# info

----------------------------------------------

...

ip-filter 11 create

description "This is new"

scope exclusive

entry 1 create

match

dst-ip 10.10.10.91/24

src-ip 10.10.10.106/24

exit

action drop

exit

entry 2 create

...

ip-filter 12 create

description "This is new"

scope exclusive

entry 1 create

match

dst-ip 10.10.10.91/24

src-ip 10.10.10.106/24

exit

action drop

exit

entry 2 create

...

----------------------------------------------

A:ALA-7>config>filter#

Advertising