= BGP Session Detector
:description: Learn how the BGPSessionDetector in OpenNMS {page-component-title} checks if a BGP Session to a peering partner (peer-ip) is configured.

The BGPSessionDetector checks if a BGP Session to a peering partner (peer-ip) is configured.
A BGP peering session is detected when a _bgpPeerEntry_ from the RFC1269 MIB (`.1.3.6.1.2.1.15.3.1`) exists and can be queried using SNMP.
The configured BGP peer session is detected when the return value is in the valid range of 1 (idle) to 6 (established).

== Detector facts

[options="autowidth"]
|===
| Implementation | `org.opennms.netmgt.provision.detector.snmp.BgpSessionDetector`
|===

== Configuration and use

.Required parameters for the BGP session detector
[options="header, autowidth"]
[cols="1,4,1"]
|===
| Parameter
| Description
| Default value

| bgpPeerIp
| IPv4 peer ID to query.
| none
|===