BGP_NEIGHBOR_STATE_CHANGED

Dec 14 12:08:59 HOSTNAME Bgp: %BGP-5-ADJCHANGE: peer 192.0.2.2 (VRF default AS 12345) old state Established event AdminReset new state Idle Dec 14 12:09:00 HOSTNAME Bgp: %BGP-5-ADJCHANGE: peer 192.0.2.2 (VRF default AS 12345) old state OpenConfirm event Established new state Established This error tag corresponds to syslog messages notifying that the configured bgp neighbor has changed state

Maps to the openconfig-bgp YANG model.

Implemented for

  • eos
  • netiron
  • junos
  • sonic

Syslog message example

<13>Dec 14 12:08:59 HOSTNAME Bgp: %BGP-5-ADJCHANGE: peer 192.0.2.2 (VRF default AS 12345) old state Established event AdminReset new state Idle

Structured message example

{
  "error": "BGP_NEIGHBOR_STATE_CHANGED",
  "facility": 1,
  "host": "HOSTNAME",
  "ip": "127.0.0.1",
  "message_details": {
      "date": "Dec 14",
      "facility": 1,
      "host": "HOSTNAME",
      "message": ": peer 192.0.2.2 (VRF default AS 12345) old state Established event AdminReset new state Idle",
      "pri": "13",
      "processName": "Bgp",
      "severity": 5,
      "tag": "BGP-5-ADJCHANGE",
      "time": "12:08:59"
  },
  "os": "eos",
  "severity": 5,
  "timestamp": 1526706119764,
  "yang_message": {
      "bgp": {
          "neighbors": {
              "neighbor": {
                  "192.0.2.2": {
                      "state": {
                          "peer_as": "12345",
                          "session-state": "IDLE",
                          "session-state-change-event": "AdminReset",
                          "session-state-old": "ESTABLISHED"
                      }
                  }
              }
          }
      }
  },
  "yang_model": "openconfig-bgp"
}