# Class BfdStatus (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    BfdStatus(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Next free: 15

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `bfd_session_initialization_mode` | `str` The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. Check the BfdSessionInitializationMode enum for the list of possible values. This field is a member of `oneof`_ `_bfd_session_initialization_mode`. |
| `config_update_timestamp_micros` | `int` Unix timestamp of the most recent config update. This field is a member of `oneof`_ `_config_update_timestamp_micros`. |
| `control_packet_counts` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.BfdStatusPacketCounts` Control packet counts for the current BFD session. This field is a member of `oneof`_ `_control_packet_counts`. |
| `control_packet_intervals` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.PacketIntervals]` Inter-packet time interval statistics for control packets. |
| `local_diagnostic` | `str` The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 ofRFC5880 Check the LocalDiagnostic enum for the list of possible values. This field is a member of `oneof`_ `_local_diagnostic`. |
| `local_state` | `str` The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 ofRFC5880 Check the LocalState enum for the list of possible values. This field is a member of `oneof`_ `_local_state`. |
| `negotiated_local_control_tx_interval_ms` | `int` Negotiated transmit interval for control packets. This field is a member of `oneof`_ `_negotiated_local_control_tx_interval_ms`. |
| `rx_packet` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.BfdPacket` The most recent Rx control packet for this BFD session. This field is a member of `oneof`_ `_rx_packet`. |
| `tx_packet` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.BfdPacket` The most recent Tx control packet for this BFD session. This field is a member of `oneof`_ `_tx_packet`. |
| `uptime_ms` | `int` Session uptime in milliseconds. Value will be 0 if session is not up. This field is a member of `oneof`_ `_uptime_ms`. |

## Classes

### BfdSessionInitializationMode

    BfdSessionInitializationMode(value)

The BFD session initialization mode for this BGP peer.
If set to ACTIVE, the Cloud Router will initiate the BFD session
for this BGP peer. If set to PASSIVE, the Cloud Router will wait
for the peer router to initiate the BFD session for this BGP
peer. If set to DISABLED, BFD is disabled for this BGP peer.

### LocalDiagnostic

    LocalDiagnostic(value)

The diagnostic code specifies the local system's reason for
the last change in session state. This allows remote systems to
determine the reason that the previous session failed, for
example. These diagnostic codes are specified in section 4.1
ofRFC5880

### LocalState

    LocalState(value)

The current BFD session state as seen by the transmitting
system. These states are specified in section 4.1 ofRFC5880