[j-nsp] (no subject)

Randy Bush randy at psg.com
Tue Nov 15 17:26:32 EST 2005


>>> 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



More information about the juniper-nsp mailing list