[j-nsp] 'apply-path' in prefix-lists

Eric Van Tol eric at atlantech.net
Mon Apr 30 23:55:11 EDT 2007


According to: 

http://www.juniper.net/techpubs/software/junos/junos80/swconfig80-policy
/html/policy-extend-match-config18.html#1050217

when using an apply-path to define a prefix-list, it cannot be used in a
policy statement.  JUNOS doesn't seem to issue any warnings when
applying such a config and it seems to me that it works:

user at r1# show
prefix-list fe-ip {
    apply-path "interfaces <fe-*> unit <*> family inet address <*>";
}
policy-statement fe-route {
    term 0 {
        from {
            prefix-list fe-ip;
        }
        then accept;
    }
    then reject;
}
[edit policy-options]
user at r1# run test policy fe-route 0/0

inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.11.7.0/30       *[Direct/0] 10:45:07
                    > via fe-0/0/0.0

Policy blah: 1 prefix accepted, 2 prefix rejected

[edit policy-options]
user at r1#        

Is it generally bad practice to be using a prefix-list in a
policy-statement or is the warning on this page no longer accurate?

thanks,
evt



More information about the juniper-nsp mailing list