When a device uses CSPF to calculate the path for an LSP, it takes into account the administrative group to which an interface belongs; the user can specify which administrative groups the device can include or exclude for this calculation.
For example, to include interfaces in either of the administrative groups "gold" and "silver" in the path calculations for LSP tunnel1, complete the following steps.
device# configure
device(config)# router mpls
device(config-router-mpls)# lsp tunnel1
device(config-router-mpls-lsp-tunnel1)# include-any gold silver
In this example, the device includes any of the interfaces that are members of groups gold or silver when calculating the path for this LSP. Only those interfaces in the gold or silver groups are considered for the LSP.
device# configure terminal device(config)# router mpls device(config-router-mpls)# lsp tunnel1 device(config-router-mpls-lsp-tunnel1)# include-any gold silver
To exclude interfaces in either administrative group gold or silver when the path for LSP tunnel1 is calculated.
In this example, the device excludes any interface that is a member of group gold or silver when it calculates the path for this LSP. Only interfaces that are not part of either group are considered for the LSP.
device(config-router-mpls)# lsp tunnel1 device(config-router-mpls-lsp-tunnel1)# exclude-any gold silver
To specify that an interface must be a member of both the gold or silver administrative groups in order to be included in the path calculations for LSP tunnel1.
In this example, an interface must be a member of all the groups specified in the include-all command in order to be considered for the LSP. Any interface that is not a member of all the groups is eliminated from consideration.
device(config-router-mpls)# lsp tunnel1 device(config-router-mpls-lsp-tunnel1)# include-all gold silver