Junos OS

last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  CLI : Moving policy terms around

    Posted 02-08-2010 06:49

    Ok, I'm probably being completely stupid and missing something incredibly obvious......

     

    But can someone please tell me how I can move terms around in a policy statement on the CLI ?

     

    e.g.

     

    > show configuration policy-options policy-statement  XXXXXX

    term 1 {
        from {
    route-filter Y.Y.Y.Y/8 exact;

    }

    then {

    accept;

    }

    term 2 {
        from {
    route-filter N.N.N.N/8 exact;

    }

    then {

    local-preference;

    }

    }

     

    How can I move "term 2"  up above term 1 ?

     

     



  • 2.  RE: CLI : Moving policy terms around
    Best Answer

    Posted 02-08-2010 07:41

    at the [edit policy-options policy-statement XXXXXX] hierarchy, try this:

     

    insert term 2 before term 1

     

     

    also -- not 100% sure on this, but if that is your policy, make sure you add the "accept" action to Term 2 along with the local-preference.  I THINK you will need to do that, but again not 100% sure . . .

     

     

    good luck!



  • 3.  RE: CLI : Moving policy terms around

    Posted 02-08-2010 08:40

    doh ! You make it look so easy ! Smiley Happy

     

    (no, that was just an example policy, BTW !)