Files
Charly Forot e34e6e07a5 BGP unnumbered support for Cumulus (#13785)
* Add Cumulus-BGPUN-MIB
* Add bgpPeerIface column into bgpPeers table
* update mysql database for BGP unnumbered support
* Rename BGP unumbered MIB for Cumulus
* remove duplicate Cumulus BGPUM mib
* Use custom BGPUN minb for Cumulus while polling bgp peers
* Update BGP peers discovery for Cumulus with unumbered support
* Update BGP peers polling for Cumulus with unumbered support
* Correct typing error
* Add BGP unumbered Cumulus tests units
* Remove unused SQL file
* Update migrations databse by adding bgpPeerIface into bgpPeers table
* Correct spacing error for continous integration
* Update DB column bgpPeerIface to point to ifIndex
* fix: bgpPeerIface column exist
* fix: use Eloquent instead of dbFetch deprecated
* fix: delete unused namespace
* fix: type bgpPeerIface
* fix: add root cumulus mib lacking
* move root cumulus mib into mibs/
* fix: missing root cumulus MIB
* fix: bgpPeerIface not expected for other OS
* fix: add bgpPeerIface into json tests for other OS
* fix: add bgpPeerIface for poller tests OS
* add relathionship between bgpPeers and Ports tables
* Revert "fix: bgpPeerIface not expected for other OS"
This reverts commit f979482106.
* fix: HasOne not imported
* fix: CI php placement of use line
* fix: bgpPeerIface has not default value
* updates way to fill bgpPeerIface
* remove relationship between BgpPeer and Ipv4Address/Ipv6Address
* fix: CI php syntax
fix: CI php syntax
fix: CI php syntax
fix: CI php syntax
* updates cumulus tests
* updates bgpPeerIface already filled
* fix : bgpPeerIface wrong ifIndex
* fix: update cumulus test for polling bgpPeerIface
* fix: CI PHP syntax
* fix: update cumulus test for polling bgpPeerIface
* fix: update cumulus test for polling bgpPeerIface
* Fix Fortigate Test
* Tests
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2022-05-22 14:27:28 +02:00

125 lines
4.9 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,
"os": "pfsense",
"type": "firewall",
"serial": null,
"icon": "pfsense.svg",
"location": null
}
]
},
"poller": "matches discovery"
},
"bgp-peers": {
"discovery": {
"bgpPeers": [
{
"astext": "",
"bgpPeerIdentifier": "169.254.1.1",
"bgpPeerRemoteAs": 4200000000,
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
"bgpPeerLastErrorCode": null,
"bgpPeerLastErrorSubCode": null,
"bgpPeerLastErrorText": 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,
"bgpPeerIface": null
},
{
"astext": "",
"bgpPeerIdentifier": "169.254.1.9",
"bgpPeerRemoteAs": 4200000004,
"bgpPeerState": "idle",
"bgpPeerAdminStatus": "stop",
"bgpPeerLastErrorCode": null,
"bgpPeerLastErrorSubCode": null,
"bgpPeerLastErrorText": 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,
"bgpPeerIface": null
}
]
},
"poller": {
"bgpPeers": [
{
"astext": "",
"bgpPeerIdentifier": "169.254.1.1",
"bgpPeerRemoteAs": 4200000000,
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpPeerLastErrorCode": 4,
"bgpPeerLastErrorSubCode": 0,
"bgpPeerLastErrorText": 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,
"bgpPeerIface": null
},
{
"astext": "",
"bgpPeerIdentifier": "169.254.1.9",
"bgpPeerRemoteAs": 4200000004,
"bgpPeerState": "established",
"bgpPeerAdminStatus": "start",
"bgpPeerLastErrorCode": 2,
"bgpPeerLastErrorSubCode": 2,
"bgpPeerLastErrorText": 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,
"bgpPeerIface": null
}
]
}
}
}