bgp_sessions
Retrieve BGP sessions from LibreNMS, filtered by hostname, ASN, IP, state, or admin status.
Instructions
List BGP sessions from LibreNMS with optional filters.
Returns: dict: The JSON response from the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | No | Filter by device hostname | |
| asn | No | Filter by local ASN | |
| remote_asn | No | Filter by remote ASN | |
| remote_address | No | Filter by remote IP address | |
| local_address | No | Filter by local IP address | |
| bgp_descr | No | Filter by BGP description (SQL LIKE) | |
| bgp_state | No | Filter by BGP state (e.g., established) | |
| bgp_adminstate | No | Filter by admin state (start, stop, running) | |
| bgp_family | No | Filter by address family: 4 (IPv4) or 6 (IPv6) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||