librenms/tests/data/pfsense_frr-bgp.json
Tony Murray 6cbe6fde4f
Mock astext (#14581)
* Mock astext
avoid dns failures

* whitespace

* fix arista

* restore test data except astext

* restore test data except astext

* Full fresh run

* Move DI call into class
2022-11-05 01:18:52 +01:00

126 lines
5.0 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.8",
"sysDescr": "pfSense localhost 2.4.5-RELEASE-p1 pfSense FreeBSD 11.3-STABLE amd64",
"sysContact": "<private>",
"version": "2.4.5-RELEASE-p1",
"hardware": "amd64",
"features": null,
"location": null,
"os": "pfsense",
"type": "firewall",
"serial": null,
"icon": "pfsense.svg"
}
]
},
"poller": "matches discovery"
},
"bgp-peers": {
"discovery": {
"bgpPeers": [
{
"astext": "AS4200000000-MOCK-TEXT",
"bgpPeerIdentifier": "169.254.1.1",
"bgpPeerRemoteAs": 4200000000,
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
"bgpPeerLastErrorCode": null,
"bgpPeerLastErrorSubCode": null,
"bgpPeerLastErrorText": null,
"bgpPeerIface": null,
"bgpLocalAddr": "0.0.0.0",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerDescr": "",
"bgpPeerInUpdates": 0,
"bgpPeerOutUpdates": 0,
"bgpPeerInTotalMessages": 0,
"bgpPeerOutTotalMessages": 0,
"bgpPeerFsmEstablishedTime": 0,
"bgpPeerInUpdateElapsedTime": 0,
"context_name": "",
"bgpLocalAs": 0,
"vrfLocalAs": null
},
{
"astext": "AS4200000004-MOCK-TEXT",
"bgpPeerIdentifier": "169.254.1.9",
"bgpPeerRemoteAs": 4200000004,
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
"bgpPeerLastErrorCode": null,
"bgpPeerLastErrorSubCode": null,
"bgpPeerLastErrorText": null,
"bgpPeerIface": null,
"bgpLocalAddr": "0.0.0.0",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerDescr": "",
"bgpPeerInUpdates": 0,
"bgpPeerOutUpdates": 0,
"bgpPeerInTotalMessages": 0,
"bgpPeerOutTotalMessages": 0,
"bgpPeerFsmEstablishedTime": 0,
"bgpPeerInUpdateElapsedTime": 0,
"context_name": "",
"bgpLocalAs": 0,
"vrfLocalAs": null
}
]
},
"poller": {
"bgpPeers": [
{
"astext": "AS4200000000-MOCK-TEXT",
"bgpPeerIdentifier": "169.254.1.1",
"bgpPeerRemoteAs": 4200000000,
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpPeerLastErrorCode": 4,
"bgpPeerLastErrorSubCode": 0,
"bgpPeerLastErrorText": null,
"bgpPeerIface": null,
"bgpLocalAddr": "169.254.1.2",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerDescr": "",
"bgpPeerInUpdates": 6,
"bgpPeerOutUpdates": 14,
"bgpPeerInTotalMessages": 8330,
"bgpPeerOutTotalMessages": 8323,
"bgpPeerFsmEstablishedTime": 96951,
"bgpPeerInUpdateElapsedTime": 96950,
"context_name": "",
"bgpLocalAs": 0,
"vrfLocalAs": null
},
{
"astext": "AS4200000004-MOCK-TEXT",
"bgpPeerIdentifier": "169.254.1.9",
"bgpPeerRemoteAs": 4200000004,
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpPeerLastErrorCode": 2,
"bgpPeerLastErrorSubCode": 2,
"bgpPeerLastErrorText": null,
"bgpPeerIface": null,
"bgpLocalAddr": "169.254.1.10",
"bgpPeerRemoteAddr": "0.0.0.0",
"bgpPeerDescr": "",
"bgpPeerInUpdates": 6,
"bgpPeerOutUpdates": 15,
"bgpPeerInTotalMessages": 8544,
"bgpPeerOutTotalMessages": 8518,
"bgpPeerFsmEstablishedTime": 97193,
"bgpPeerInUpdateElapsedTime": 97191,
"context_name": "",
"bgpLocalAs": 0,
"vrfLocalAs": null
}
]
}
}
}