Junos OS

Expand all | Collapse all

apply group command

Jump to Best Answer
  • 1.  apply group command

    Posted 11-20-2019 09:29

    Hi There,

    I have a question but i could not find any answer in the documentation.

    I have the following

     

    set interfaces interface-range RSTP-INTERFACES member "xe-*/0/[34-42]"
    set protocols rstp interface RSTP-INTERFACES

    I do not want to touch the above config which has to stay as it is.

    Now i want to activate rstp also to interface xe-0/0/32 and xe-1/0/32 which are not part of the above group named "RSTP-INTERFACES".

    Will I reach my target with the below? In theory this config should override the "group" at least for these 2 interafces, but i am not sure.

     set protocols rstp interface xe-1/0/32
     set protocols rstp interface  xe-0/0/32
    
    

     

    Thanks.



  • 2.  RE: apply group command
    Best Answer

     
    Posted 11-20-2019 12:30

    The below configuration looks fine. It will add the interfaces xe-0/0/32 and xe-1/0/32 to protocol RSTP without impacting any existing interfaces which are already in RSTP-INTERFACES 

     

     



  • 3.  RE: apply group command

     
    Posted 11-21-2019 11:26

    It will override only when the path from inside and outside the group overlaps 

     

    See this example:

    labroot@dim-re1# set groups my-group interfaces xe-0/0/0 description test1

    labroot@dim-re1# set apply-groups my-group
    labroot@re# commit

     

    labroot@re# show interfaces xe-0/0/0 |display inheritance |except ##
    description test1;

     

    labroot@dim-re1# set interfaces xe-0/0/0 description test2
    labroot@re# commit

     

    labroot@re# show interfaces xe-0/0/0 |display inheritance |except ##
    description test2;