[j-nsp] (no subject)
Thomas Salmen
tsalmen at orcon.net.nz
Tue Nov 15 17:34:24 EST 2005
you need to specify the mask length to match:
thomas at NCT_M02# set groups beacon policy-options policy-statement feamster
from route-filter 192.83.230.0/24 ?
Possible completions:
exact Exactly match the prefix length
longer Mask is greater than the prefix length
orlonger Mask is greater than or equal to the prefix length
prefix-length-range Mask falls between two prefix lengths
through Route falls between two prefixes
upto Mask falls between two prefix lengths
[edit]
/t
>
> >>> policy-statement foo {
> >>> from {
> >>> 42.0.0.0/8 orlonger;
> >>> }
> >>> then {
> >>> reject;
> >>> }
> >>> }
> >>
> >> does not scale. i want to use the prefix-list in many policy
> >> terms.
> >
> > Perhaps you could use the groups-feature in JUNOS? Here is an example:
> >
> > groups {
> > randy-bush {
> > policy-options {
> > policy-statement <*> {
> > from {
> > route-filter 42.0.0.0/8 orlonger;
> > }
> > }
> > }
> > }
> > }
> > policy-options {
> > policy-statement pl-foo {
> > apply-groups randy-bush;
> > }
> > }
>
> hmmm
>
> root at psg1# load merge terminal
> [Type ^D at a new line to end input]
> groups {
>
> /* bgp beacons for variable prefix lengths
> */
> beacons {
> policy-options {
> policy-statement feamster {
> from {
> route-filter 147.28.0.0/16 orlonger; /* feamster */
> route-filter 192.83.230.0/24; /* morley */
> route-filter 198.133.206.0/24; /* morley */
> route-filter 198.180.152.0/24 orlonger; /* feamster */
> route-filter 198.180.153.0/24; /* morley */
> }
> }
> }
> }
> }
> ^D
> terminal:10:(35) syntax error, expecting <flag-value> or <attribute-
> value>: ;
> [edit groups beacons policy-options policy-statement feamster from
> route-filter]
> 'route-filter 192.83.230.0/24; /* morley */'
> syntax error, expecting <flag-value> or <attribute-value>
> warning: statement must contain additional statements
>
> clue bat please?
>
> randy
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp
More information about the juniper-nsp
mailing list