Routing

last person joined: 4 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  admin-group include-all -any

    Posted 11-07-2012 04:54

    in mpls

    what is the difference between include-all and include-any in admin-group

    I am confused

    and I can't find a kb about this in this site.................

     

    sigh............

     

    r1---gold--r2--gold---r3--slive----r4

     

    if from r1 to r4 ,there is a lsp,include-any gold,can it be up?



  • 2.  RE: admin-group include-all -any

    Posted 11-07-2012 06:10

     

    Hey Robbie,

     

     No, it will not be up because there is no 'gold' between r3 and r4 in your example.


     The difference between -any and -all is actually shown in the cli help:

     

    erdems@P-12# set admin-group ? 
    Possible completions:
    + apply-groups         Groups from which to inherit configuration data
    + apply-groups-except  Don't inherit configuration data from these groups
    + exclude              Groups, all of which must be absent
    + include-all          Groups, all of which must be present
    + include-any          Groups, one or more of which must be present

     

     Still following your example, the LSP would be UP if you configure admin-group include-any [ gold silver ], which would mean "include either gold or silver interfaces".

     

     Cheers,

     

     

     



  • 3.  RE: admin-group include-all -any

    Posted 11-07-2012 06:25

    hi,erdems

    thx

    would u like to show me one example while include-any work but inclue-all doesn't work

    it seems inlcude-any needs all links have one of the color in [color1 color2] and include -all need all links have all colors in [color1 color2]



  • 4.  RE: admin-group include-all -any
    Best Answer

     
    Posted 11-07-2012 19:57

    Hi Rob,

     

    Since you can associate multiple administrative groups to a particular interface, with "include-any" and "include-all" it provides flexibility for user to define the path that LSP can take. These differs much like OR / AND operation.

     

    http://www.juniper.net/techpubs/en_US/junos12.2/topics/usage-guidelines/mpls-configuring-administrative-groups.html

     

     

    LSP with include-any [gold silver] is a OR operation. Like if the link color is gold or silver, it can be used for path computation.

     

    LSP with include-all [gold-silver] is AND operation. Like only if the link color is both gold and silver, then it can participate in path computation.

     

    Hope this clarifies.

     

    Regards

    Surya



  • 5.  RE: admin-group include-all -any

    Posted 11-08-2012 20:38

    hi,Suray

    sorry for the re-comment

     

    if there is a link has blue and red colors

    {

    include-all red

    exclude blue

       }

    wheter this link will be choosed,exclude blue while there are 2 colors on this link



  • 6.  RE: admin-group include-all -any

     
    Posted 11-09-2012 11:01

    Hi Rob,

     

    Include-all has higher precedence than exclude. With "inluce-all red" you have directed to choose only links with colored "red", so it never goes to exclude statement unless you have multi-coloring for the interface.

     

              
    +----+   [R,B]   +----+   [R,B]   +----+   [R,B]   +----+
    | R1 |-----------| R2 |-----------| R3 |-----------| R6 |
    +----+           +----+           +----+           +----+
       |                                                  |
       |                                                  |
       |             +----+           +----+              |  
       |-------------| R4 |-----------| R5 |--------------|
            [R,S]    +----+    [R]    +----+   [R,S]

    Where R is RED admisitrative-group
          B is BLUE admisitrative-group
          S is SILVER admisitrative-group


    If the LSP from R1 to R6, is with

        admin-group {
            include-all red;
        }

    then it can take either of the path R1-R2-R3-R6 or R1-R4-R5-R6


    If the LSP from R1 to R6, is with

        admin-group {
        admin-group {
            include-any red;
            exclude blue;
        }

    then the path would be R1-R4-R5-R6


    Hope this help.


    Regards
    Surya

     



  • 7.  RE: admin-group include-all -any

     
    Posted 11-09-2012 13:25

    Hi Rob,

     

    I think I got lost with exclude option. Let's ignore previous post but I have updated accordingly.

     

    Bascially if the LSP from R1 to R6, is with

        admin-group {
        admin-group {
            include-all red;
            exclude blue;
        }

    then the path would be R1-R4-R5-R6

     

    Regards

    Surya