Defining the scope of an MPLS/VPN discovery
When configuring the discovery of one or more Virtual Private Networks ( VPNs ) running across an MPLS core, you can restrict the scope of this discovery to a particular VPN name or VPN Routing and Forwarding (VRF) table name.
About this task
You restrict the scope by configuring the optional DiscoAgentDiscoveryScoping section in the *.agnt file. The configurable options are described in Table 1.
Option |
Function |
---|---|
IncludeVRF |
Allows the discovery of the named VRF |
IncludeVPN |
Allows the discovery of the named VPN |
ExcludeVPN |
Does not discover any VRFs within the named VPN |
ExcludeVRF |
Does not discover the specified VRF |
The order of precedence for Exclude
and Include
within the DiscoAgentDiscoveryScoping section is:
- Exclude
- Include
The order of precedence for VRF and VPN within the DiscoAgentDiscoveryScoping is:
- VRF
- VPN
For example, if you include a VPN, but another filter excludes a VRF in your VPN, then the VRF is excluded. If a VPN is excluded, but another filter includes a VRF within that VPN, then the VRF is included.
VRF names are case sensitive and an asterisk ( * ) represents a wildcard for any VRF or VPN name when used in the name part of the configuration. The wildcard can be used with any of the above options.
Scoping by VPN name works only when the VRF names configured on the devices discovered by the MPLS agents are in the Cisco-recommended VRF format. A VRF is named based on the VPN or VPNs serviced, and the topology type. The format for the VRF names are:
V [number assigned to make the VRF name unique]: [VPN_name]
For example, in a VPN called precision
, a VRF
for a hub edge router would be:
V1:precision
A VRF for a spoke edge router in the precision
VPN would be:
V1:precision-s
A VRF for an extranet VPN topology in the precision
VPN would be:
V1:precision-etc
The following example scopes a discovery in a system where there
are four VRFs: V65:Precision-etc
, V65:Precision-s
, V65:Precision
, and V44:AcmeSheds
.
//2 VRFs are to be included
//
DiscoAgentDiscoveryScoping
{
IncludeVRF = “V65:Precision-etc”;
IncludeVRF = “V44:AcmeSheds”;
}
//All 4 VRFs are to be included
//
DiscoAgentDiscoveryScoping
{
IncludeVPN = “Precision”;
IncludeVRF = “V44:AcmeSheds”;
}