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
  • junos
  • sonic
  • netiron

Syslog message example

<28>Jun 21 14:03:12  vmx01 rpd[2902]: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer 1.1.1.1 (External AS 2222) changed state from Connect to Idle (event Stop) (instance master)

Structured message example

{
  "error": "BGP_NEIGHBOR_STATE_CHANGED",
  "facility": 3,
  "host": "vmx01",
  "ip": "127.0.0.1",
  "message_details": {
      "date": "Jun 21",
      "facility": 3,
      "host": "vmx01",
      "hostPrefix": null,
      "message": "BGP peer 1.1.1.1 (External AS 2222) changed state from Connect to Idle (event Stop) (instance master)",
      "pri": "28",
      "processId": "2902",
      "processName": "rpd",
      "severity": 4,
      "tag": "RPD_BGP_NEIGHBOR_STATE_CHANGED",
      "time": "14:03:12"
  },
  "os": "junos",
  "severity": 4,
  "timestamp": 1498053792,
  "yang_message": {
      "bgp": {
          "neighbors": {
              "neighbor": {
                  "1.1.1.1": {
                      "state": {
                          "peer_as": "2222",
                          "session-state": "IDLE",
                          "session-state-change-event": "Stop",
                          "session-state-old": "CONNECT"
                      }
                  }
              }
          }
      }
  },
  "yang_model": "openconfig-bgp"
}