---
title: BFD
slug: aidc/R7w_-bfd
createdAt: 2025-12-29T10:33:21.956Z
---

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                                                               | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ------------------------------------------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/bfd                                                                  | Y       | N        | Y         | N       | Y          |
| /rest/v1/running/bfd/accelerate-profile/&#x7B;name}                                   | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/bfd/multi-hop-session/&#x7B;dest-addr}/&#x7B;source-addr}/&#x7B;vrf} | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/bfd/profile/&#x7B;profile-name}                                      | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/bfd/single-hop-session/&#x7B;dest-addr}/&#x7B;vrf}/&#x7B;interface}  | Y       | Y        | Y         | N       | Y          |
| /rest/v1/rpc/clear-bfd-counters                                                       | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-bfd-brief                                                           | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-bfd-counters                                                        | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-bfd-peer                                                            | N       | Y        | N         | N       | N          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Clear BFD session counters.</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/clear-bfd-counters
```

### <font color="#1d50a2">Show BFD session brief information.</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-bfd-brief
{"vrf": "default"}
```

### <font color="#1d50a2">Show BFD session counters.</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-bfd-counters
```

### <font color="#1d50a2">Show BFD peer</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-bfd-peer
{"dest-addr": "10.169.1.1"}
```

### <font color="#1d50a2">Get all BFD information.</font>

```json
GET HTTPS://{switch IP}/rest/v1/running/bfd
```

### <font color="#1d50a2">Create a BFD accelerate profile.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/bfd/accelerate-profile
{
    "name": "test",
    "detect-multiplier": "15",
    "required-receive-interval": "1000",
    "desired-transmit-interval": "1000",
    "shutdown": "false"
}
```

### <font color="#1d50a2">Create a BFD normal profile.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/bfd/profile
{
    "profile-name": "test333",
    "detect-multiplier": 100,
    "required-receive-interval": 200,
    "desired-transmit-interval": 300,
    "shutdown": "true",
    "passive-mode": "true",
    "required-echo-receive-interval": 400,
    "desired-echo-transmit-interval": 500,
    "minimum-ttl": 123,
    "echo-mode": "false"
}
```

### <font color="#1d50a2">Create a BFD multi-hop session.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/bfd/multi-hop-session
{
    "dest-addr": "2.2.2.2",
    "source-addr": "1.2.3.4",
    "vrf": "Vrftest",
    "profile-name": "test111",
    "detect-multiplier": 3,
    "required-receive-interval": 300,
    "desired-transmit-interval": 300,
    "shutdown": "false",
    "minimum-ttl": 254,
    "passive-mode": "false"
}
```

### <font color="#1d50a2">Create a BFD single-hop session.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/bfd/single-hop-session
{
    "dest-addr": "3.3.3.3",
    "vrf": "Vrftest",
    "interface": "Ethernet15",
    "profile-name": "testcreate",
    "detect-multiplier": 253,
    "required-receive-interval": 400,
    "desired-transmit-interval": 500,
    "shutdown": "true",
    "passive-mode": "true",
    "required-echo-receive-interval": 600,
    "desired-echo-transmit-interval": 700,
    "echo-mode": "false"
}
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">BFD single hop sessions</font>

**Tree Diagrams**

```plaintext
  +--rw bfd
     +--rw single-hop-session* [dest-addr vrf interface]
     |  +--rw dest-addr
     |  +--rw vrf
     |  +--rw interface
     |  +--rw source-addr?
     |  +--rw profile-name?
     |  +--rw detect-multiplier?
     |  +--rw required-receive-interval?
     |  +--rw desired-transmit-interval?
     |  +--rw shutdown?
     |  +--rw passive-mode?
     |  +--rw required-echo-receive-interval?
     |  +--rw desired-echo-transmit-interval?
     |  +--rw echo-mode?
```

**Table of Properties**

| **Name**                       | **Required** | **Type/Range**                                                                                                           | **Description**                                                                                                                                                                 |
| ------------------------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| bfd                            | M            |                                                                                                                          | Path-only node, has no configurable value.                                                                                                                                      |
| single-hop-session             | M            |                                                                                                                          | (sub-property of bfd)<br />Path-only node, has no configurable value.                                                                                                           |
| dest-addr                      | M            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of single-hop-session)<br />BFD remote IP address.                                                                                                                |
| vrf                            | M            | "default"<br />vrf name                                                                                                  | (sub-property of single-hop-session)<br />Name of VRF instance. The default VRF is "default"                                                                                    |
| interface                      | M            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of single-hop-session)<br />Name of interface.                                                                                                                    |
| source-addr                    | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of single-hop-session)<br />BFD local IP address.                                                                                                                 |
| profile-name                   | O            | string                                                                                                                   | (sub-property of single-hop-session)<br />BFD profile name                                                                                                                      |
| detect-multiplier              | O            | 2..255                                                                                                                   | (sub-property of single-hop-session)<br />peer detection multiplier<br />Default value: 3                                                                                       |
| required-receive-interval      | O            | 10..60000                                                                                                                | (sub-property of single-hop-session)<br />Minimum desired control packet receive interval<br />Default value: 300                                                               |
| desired-transmit-interval      | O            | 10..60000                                                                                                                | (sub-property of single-hop-session)<br />Minimum desired control packet transmit interval<br />Default value: 300                                                              |
| shutdown                       | O            | "true"<br />"false"                                                                                                      | (sub-property of single-hop-session)<br />BFD state of profile or session<br />Default value: "false"                                                                           |
| passive-mode                   | O            | "true"<br />"false"                                                                                                      | (sub-property of single-hop-session)<br />Don't attempt to start session establishment.<br />Default value: "false"                                                             |
| required-echo-receive-interval | O            | 0<br />10..60000                                                                                                         | (sub-property of single-hop-session)<br />Minimum required echo packet receive interval<br />Default value: 50                                                                  |
| desired-echo-transmit-interval | O            | 10..60000                                                                                                                | (sub-property of single-hop-session)<br />Minimum desired echo packet transmission interval, this parameter only takes effect when configuring echo mode<br />Default value: 50 |
| echo-mode                      | O            | "true"<br />"false"                                                                                                      | (sub-property of single-hop-session)<br />Use echo packets to detect failures<br />Default value: "false"                                                                       |

### <font color="#1d50a2">BFD multiple hop sessions</font>

**Tree Diagrams**

```plaintext
  +--rw bfd
     +--rw multi-hop-session* [dest-addr source-addr vrf]
     |  +--rw dest-addr
     |  +--rw vrf
     |  +--rw source-addr
     |  +--rw profile-name?
     |  +--rw detect-multiplier?
     |  +--rw required-receive-interval?
     |  +--rw desired-transmit-interval?
     |  +--rw shutdown?
     |  +--rw minimum-ttl?
     |  +--rw passive-mode?
```

**Table of Properties**

| **Name**                  | **Required** | **Type/Range**                              | **Description**                                                                                                    |
| ------------------------- | ------------ | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| bfd                       | M            |                                             | Path-only node, has no configurable value.                                                                         |
| multi-hop-session         | M            |                                             | (sub-property of bfd)<br />Path-only node, has no configurable value.                                              |
| dest-addr                 | M            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of multi-hop-session)<br />BFD remote IP address.                                                    |
| vrf                       | M            | "default"<br />vrf name                     | (sub-property of multi-hop-session)<br />Name of VRF instance. The default VRF is "default"                        |
| source-addr               | M            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of multi-hop-session)<br />BFD local IP address.                                                     |
| profile-name              | O            | string                                      | (sub-property of multi-hop-session)<br />BFD profile name                                                          |
| detect-multiplier         | O            | 2..255                                      | (sub-property of multi-hop-session)<br />peer detection multiplier<br />Default value: 3                           |
| required-receive-interval | O            | 10..60000                                   | (sub-property of multi-hop-session)<br />Minimum desired control packet receive interval<br />Default value: 300   |
| desired-transmit-interval | O            | 10..60000                                   | (sub-property of multi-hop-session)<br />Minimum desired control packet transmit interval<br />Default value: 300  |
| shutdown                  | O            | "true"<br />"false"                         | (sub-property of multi-hop-session)<br />BFD state of profile or session<br />Default value: "false"               |
| minimum-ttl               | O            | 1..254                                      | (sub-property of multi-hop-session)<br />Minimum expected TTL on received packets.<br />Default value: 254         |
| passive-mode              | O            | "true"<br />"false"                         | (sub-property of multi-hop-session)<br />Don't attempt to start session establishment.<br />Default value: "false" |

### <font color="#1d50a2">BFD normal profiles</font>

**Tree Diagrams**

```plaintext
  +--rw bfd
     +--rw profile* [profile-name]
     |  +--rw profile-name
     |  +--rw detect-multiplier?
     |  +--rw required-receive-interval?
     |  +--rw desired-transmit-interval?
     |  +--rw shutdown?
     |  +--rw passive-mode?
     |  +--rw required-echo-receive-interval?
     |  +--rw desired-echo-transmit-interval?
     |  +--rw minimum-ttl?
     |  +--rw echo-mode?
```

**Table of Properties**

| **Name**                       | **Required** | **Type/Range**      | **Description**                                                                                                                                                      |
| ------------------------------ | ------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| bfd                            | M            |                     | Path-only node, has no configurable value.                                                                                                                           |
| profile                        | M            |                     | (sub-property of bfd)<br />Path-only node, has no configurable value.                                                                                                |
| profile-name                   | M            | string              | (sub-property of profile)<br />BFD profile name                                                                                                                      |
| detect-multiplier              | O            | 2..255              | (sub-property of profile)<br />peer detection multiplier<br />Default value: 3                                                                                       |
| required-receive-interval      | O            | 10..60000           | (sub-property of profile)<br />Minimum desired control packet receive interval<br />Default value: 300                                                               |
| desired-transmit-interval      | O            | 10..60000           | (sub-property of profile)<br />Minimum desired control packet transmit interval<br />Default value: 300                                                              |
| shutdown                       | O            | "true"<br />"false" | (sub-property of profile)<br />BFD state of profile or session<br />Default value: "false"                                                                           |
| passive-mode                   | O            | "true"<br />"false" | (sub-property of profile)<br />Don't attempt to start session establishment.<br />Default value: "false"                                                             |
| required-echo-receive-interval | O            | 0<br />10..60000    | (sub-property of profile)<br />Minimum required echo packet receive interval<br />Default value: 50                                                                  |
| desired-echo-transmit-interval | O            | 10..60000           | (sub-property of profile)<br />Minimum desired echo packet transmission interval, this parameter only takes effect when configuring echo mode<br />Default value: 50 |
| minimum-ttl                    | O            | 1..254              | (sub-property of profile)<br />Minimum expected TTL on received packets.<br />Default value: 254                                                                     |
| echo-mode                      | O            | "true"<br />"false" | (sub-property of profile)<br />Use echo packets to detect failures<br />Default value: "false"                                                                       |

### <font color="#1d50a2">BFD accelerate profiles</font>

**Tree Diagrams**

```plaintext
  +--rw bfd
     +--rw accelerate-profile* [name]
        +--rw name
        +--rw detect-multiplier?
        +--rw required-receive-interval?
        +--rw desired-transmit-interval?
        +--rw shutdown?
```

**Table of Properties**

| **Name**                  | **Required** | **Type/Range**      | **Description**                                                                                                    |
| ------------------------- | ------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------ |
| bfd                       | M            |                     | Path-only node, has no configurable value.                                                                         |
| accelerate-profile        | M            |                     | (sub-property of bfd)<br />Path-only node, has no configurable value.                                              |
| name                      | M            | string              | (sub-property of accelerate-profile)<br />BFD accelerate profile name                                              |
| detect-multiplier         | O            | 1..15               | (sub-property of accelerate-profile)<br />peer detection multiplier<br />Default value: 3                          |
| required-receive-interval | O            | 1..1000             | (sub-property of accelerate-profile)<br />Minimum desired control packet receive interval<br />Default value: 300  |
| desired-transmit-interval | O            | 1..1000             | (sub-property of accelerate-profile)<br />Minimum desired control packet transmit interval<br />Default value: 300 |
| shutdown                  | O            | "true"<br />"false" | (sub-property of accelerate-profile)<br />BFD state of profile or session<br />Default value: "false"              |

### <font color="#1d50a2">Show-bfd-counters</font>

**Tree Diagrams**

```plaintext
    +---x show-bfd-counters
    |  +---w input
    |  |  +---w vrf?
    |  |  +---w (peer)?
    |  |     +--:(single-peer)
    |  |        +---w dest-addr?
    |  |        +---w source-addr?
    |  |        +---w multihop?
    |  |        +---w interface?
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**          | **Required** | **Type/Range**                                                                                                           | **Description**                                                                  |
| ----------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| show-bfd-counters | M            |                                                                                                                          | Path-only node, has no configurable value.<br />show bfd counters information    |
| vrf               | O            | "default"<br />vrf name                                                                                                  | (sub-property of input)<br />Name of VRF instance.<br />Default value: "default" |
| dest-addr         | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of input)<br />BFD remote IP address.                              |
| source-addr       | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of input)<br />BFD local IP address.                               |
| multihop          | O            | "true"<br />"false"                                                                                                      | (sub-property of input)<br />BFD multihop<br />Default value: "false"            |
| interface         | O            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of input)<br />Name of interface.                                  |
| data              | RO           | \<anydata>                                                                                                               | (sub-property of output)                                                         |

### <font color="#1d50a2">Show-bfd-brief</font>

**Tree Diagrams**

```plaintext
    +---x show-bfd-brief
    |  +---w input
    |  |  +---w vrf?
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**       | **Required** | **Type/Range**          | **Description**                                                                    |
| -------------- | ------------ | ----------------------- | ---------------------------------------------------------------------------------- |
| show-bfd-brief | M            |                         | Path-only node, has no configurable value.<br />show bfd peers information briefly |
| vrf            | O            | "default"<br />vrf name | (sub-property of input)<br />Name of VRF instance.<br />Default value: "default"   |
| data           | RO           | \<anydata>              | (sub-property of output)                                                           |

### <font color="#1d50a2">Show-bfd-peer</font>

**Tree Diagrams**

```plaintext
    +---x show-bfd-peer
    |  +---w input
    |  |  +---w vrf?
    |  |  +---w (peer)?
    |  |     +--:(single-peer)
    |  |        +---w dest-addr?
    |  |        +---w source-addr?
    |  |        +---w multihop?
    |  |        +---w interface?
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**      | **Required** | **Type/Range**                                                                                                           | **Description**                                                                  |
| ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| show-bfd-peer | M            |                                                                                                                          | Path-only node, has no configurable value.<br />show bfd peer information        |
| vrf           | O            | "default"<br />vrf name                                                                                                  | (sub-property of input)<br />Name of VRF instance.<br />Default value: "default" |
| dest-addr     | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of input)<br />BFD remote IP address.                              |
| source-addr   | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of input)<br />BFD local IP address.                               |
| multihop      | O            | "true"<br />"false"                                                                                                      | (sub-property of input)<br />BFD multihop<br />Default value: "false"            |
| interface     | O            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of input)<br />Name of interface.                                  |
| data          | RO           | \<anydata>                                                                                                               | (sub-property of output)                                                         |

### <font color="#1d50a2">Clear-bfd-counters</font>

**Tree Diagrams**

```plaintext
    +---x clear-bfd-counters
       +---w input
          +---w vrf?
          +---w (peer)?
             +--:(single-peer)
                +---w dest-addr?
                +---w source-addr?
                +---w multihop?
                +---w interface?
```

**Table of Properties**

| **Name**           | **Required** | **Type/Range**                                                                                                           | **Description**                                                                  |
| ------------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| clear-bfd-counters | M            |                                                                                                                          | Path-only node, has no configurable value.<br />Clear bfd peer counters          |
| vrf                | O            | "default"<br />vrf name                                                                                                  | (sub-property of input)<br />Name of VRF instance.<br />Default value: "default" |
| dest-addr          | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of input)<br />BFD remote IP address.                              |
| source-addr        | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX                                                                              | (sub-property of input)<br />BFD local IP address.                               |
| multihop           | O            | "true"<br />"false"                                                                                                      | (sub-property of input)<br />BFD multihop<br />Default value: "false"            |
| interface          | O            | Ethernet name<br />Lag1..9999<br />Vlan1..4094<br />Ethernet sub-interface name<br />Link-aggregation sub-interface name | (sub-property of input)<br />Name of interface.                                  |

