Administrator Guide

instance of MSFT_NetworkDevice_BgpPeerView as
$MSFT_NetworkDevice_BgpPeerView1ref
{
Id = "1-vrf-1-1.2.3.4";
ResourceID = "[MSFT_NetworkDevice_BgpPeerView]MyBgpPeer";
SourceInfo = "C:\\ConfigFiles\
\MSFT_NetworkDevice_BgpPeerViewConfig.ps1::21::9::MSFT_NetworkDevice_BgpPeerView
";
/* Name = "NEIGHBOR";*/
RemoteRouterId = $MSFT_NetworkDevice_IpAddress1ref;
/*PeerCredential = $MSFT_Credential1ref;*/
//MultiHopTimeToLive = 200;
/* IsEnabled = True;*/
VrfContext = "vrf-1";
ExtAsNumber = 3;
Ensure = 0;
KeyEncryptionMethod = 3;
ModuleVersion = "1.0";
ModuleName = "DSCModules";
AddressFamily = 1;
};
<snip>
The ID here is of the format
AddressFamily-VRFName-NeighborIp
For a default VRF and neighbor 1.2.3.4, it will be
1-default-1.2.3.4
</snip>
Sample BGP peer view configuration for enumerating an instance:
Get-CimInstance -ClassName MSFT_NetworkDevice_BgpPeerView -CimSession $cb -
Namespace root/Microsoft/DesiredStateConfiguration
Id : 1-default-1.2.3.4
Name :
PeerCredential : MSFT_Credential
AddressFamily : 1
VrfContext : default
IsEnabled : False
ActivateIPv6 : True
AllowAsIn :
MultiHopTimeToLive :
RouteMapIn : rmap1
RouteMapOut : rmap2
Ensure : 0
KeyEncryptionMethod : 3
RemoteRouterId : MSFT_NetworkDevice_IpAddress
UpdateSourceInterface :
UpdateSourceInterfaceType :
ExtAsNumber : 3
PSComputerName : 10.16.129.106
Id : 1-vrf1-1.2.3.4
Name :
PeerCredential : MSFT_Credential
AddressFamily : 1
VrfContext : vrf1
IsEnabled : False
ActivateIPv6 : True
Open Management Infrastructure
65