---
title: nexthop
slug: enterprise-v6p1/nexthop
createdAt: 2025-12-17T08:18:08.667Z
---

AsterNOS Model for static routes nexthops

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
module: asternos-nexthop
  +--rw nexthop-group
     +--rw (nexthop)
        +--:(blackhole)
        |  +--rw blackhole-nexthop
        |     +--rw bh-type     blackhole-type
        |     +--rw distance?   uint8
        |     +--rw tag?        uint32
        +--:(non-blackhole)
           +--rw ifindex-nexthops* [interface]
           |  +--rw interface    if:interface-ref
           |  +--rw bfd
           |  |  +--rw enable?   boolean
           |  |  +--rw mhop?     boolean
           |  |  +--rw local?    inet:ip-address
           |  +--rw track?       uint32
           |  +--rw distance?    uint8
           |  +--rw tag?         uint32
           +--rw ip-nexthops* [nh-vrf gateway]
           |  +--rw nh-vrf      vrf:vrf-ref
           |  +--rw gateway     inet:ip-address-no-zone
           |  +--rw distance?   uint8
           |  +--rw tag?        uint32
           |  +--rw bfd
           |  |  +--rw enable?   boolean
           |  |  +--rw mhop?     boolean
           |  |  +--rw local?    inet:ip-address
           |  +--rw track?      uint32
           +--rw ip-ifindex-nexthops* [gateway interface]
              +--rw gateway      inet:ip-address-no-zone
              +--rw interface    if:interface-ref
              +--rw distance?    uint8
              +--rw tag?         uint32
              +--rw bfd
              |  +--rw enable?   boolean
              |  +--rw mhop?     boolean
              |  +--rw local?    inet:ip-address
              +--rw track?       uint32
```

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

## <font color="#1d50a2">Resource List</font>

| **Path**                                                            | **Access** |
| ------------------------------------------------------------------- | ---------- |
| /nexthop-group                                                      | Read-Write |
| /nexthop-group/nexthop                                              | Read-Write |
| /nexthop-group/nexthop/blackhole                                    | Read-Write |
| /nexthop-group/nexthop/blackhole/blackhole-nexthop                  | Read-Write |
| /nexthop-group/nexthop/blackhole/blackhole-nexthop/bh-type          | Read-Write |
| /nexthop-group/nexthop/blackhole/blackhole-nexthop/distance         | Read-Write |
| /nexthop-group/nexthop/blackhole/blackhole-nexthop/tag              | Read-Write |
| /nexthop-group/nexthop/non-blackhole                                | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops               | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/interface     | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd           | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/enable    | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/mhop      | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/local     | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/track         | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/distance      | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ifindex-nexthops/tag           | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops                    | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/nh-vrf             | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/gateway            | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/distance           | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/tag                | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd                | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/enable         | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/mhop           | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/local          | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-nexthops/track              | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops            | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/gateway    | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/interface  | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/distance   | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/tag        | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd        | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/enable | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/mhop   | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/local  | Read-Write |
| /nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/track      | Read-Write |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/nexthop-group</font>

**Path**

/nexthop-group

**Node Type**

container

**Description**

A nexthop-group, represented as a list of nexthop objects.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop</font>

**Path**

/nexthop-group/nexthop

**Node Type**

choice

**Access**

Read-Write

**Mandatory**

Yes

### <font color="#1d50a2">/nexthop-group/nexthop/blackhole</font>

**Path**

/nexthop-group/nexthop/blackhole

**Node Type**

choice-case

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/blackhole/blackhole-nexthop</font>

**Path**

/nexthop-group/nexthop/blackhole/blackhole-nexthop

**Node Type**

container

**Description**

For blackhole type nexthops, there is only one configurable.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/blackhole/blackhole-nexthop/bh-type</font>

**Path**

/nexthop-group/nexthop/blackhole/blackhole-nexthop/bh-type

**Node Type**

leaf

**Description**

A blackhole sub-type, if the nexthop is a blackhole type.

**Access**

Read-Write

**Data Type**

\<YANG type blackhole-type>

**Constraints**

Enumeration with options:

- unspec
- null
- reject
- prohibited

**Mandatory**

Yes

### <font color="#1d50a2">/nexthop-group/nexthop/blackhole/blackhole-nexthop/distance</font>

**Path**

/nexthop-group/nexthop/blackhole/blackhole-nexthop/distance

**Node Type**

leaf

**Description**

Admin distance associated with this route.

**Access**

Read-Write

**Data Type**

\<YANG type uint8>

**Constraints**

Valid range: 1 to 255

### <font color="#1d50a2">/nexthop-group/nexthop/blackhole/blackhole-nexthop/tag</font>

**Path**

/nexthop-group/nexthop/blackhole/blackhole-nexthop/tag

**Node Type**

leaf

**Description**

Route tag

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole</font>

**Path**

/nexthop-group/nexthop/non-blackhole

**Node Type**

choice-case

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops

**Node Type**

list

**Description**

A list of nexthop objects.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/interface</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/interface

**Node Type**

leaf

**Description**

The nexthop egress interface.

**Access**

Read-Write

**Data Type**

\<YANG type interface-ref>

**Constraints**

LeafRef pointing to: asternos-interfaces\:interface-ref

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd

**Node Type**

container

**Description**

FRR nexthop bfd object.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/enable</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/enable

**Node Type**

leaf

**Description**

Nexthop open bfd

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/mhop</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/mhop

**Node Type**

leaf

**Description**

Open bfd multihop mode

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/local</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/local

**Node Type**

leaf

**Description**

The bfd local-address.

**Access**

Read-Write

**Data Type**

\<YANG type ip-address>

**Constraints**

Multiple constraints:

- The ipv6-address type represents an IPv6 address in full, mixed, shortened, and shortened-mixed notation. The IPv6 address may include a zone index, separated by a % sign.

If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format of IPv6 addresses uses the textual representation defined in Section 4 of RFC 5952. The canonical format for the zone index is the numerical format as described in Section 11.2 of RFC 4007.

- The ipv4-address type represents an IPv4 address in dotted-quad notation. The IPv4 address may include a zone index, separated by a % sign. If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format for the zone index is the numerical format

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/track</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/track

**Node Type**

leaf

**Description**

Route track

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/distance</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/distance

**Node Type**

leaf

**Description**

Admin distance associated with this route.

**Access**

Read-Write

**Data Type**

\<YANG type uint8>

**Constraints**

Valid range: 1 to 255

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/tag</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/tag

**Node Type**

leaf

**Description**

Route tag

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops

**Node Type**

list

**Description**

A list of nexthop objects of type ip4 or ip6.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/nh-vrf</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/nh-vrf

**Node Type**

leaf

**Description**

The nexthop vrf name, if different from the route.

**Access**

Read-Write

**Data Type**

\<YANG type vrf-ref>

**Constraints**

LeafRef pointing to: asternos-vrf\:vrf-ref

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/gateway</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/gateway

**Node Type**

leaf

**Description**

The nexthop gateway address.

**Access**

Read-Write

**Data Type**

\<YANG type ip-address-no-zone>

**Constraints**

Multiple constraints:

- An IPv6 address without a zone index. This type, derived from the type ipv6-address, may be used in situations where the zone is known from the context and no zone index is needed.
- An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/distance</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/distance

**Node Type**

leaf

**Description**

Admin distance associated with this route.

**Access**

Read-Write

**Data Type**

\<YANG type uint8>

**Constraints**

Valid range: 1 to 255

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/tag</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/tag

**Node Type**

leaf

**Description**

Route tag

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd

**Node Type**

container

**Description**

FRR nexthop bfd object.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/enable</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/enable

**Node Type**

leaf

**Description**

Nexthop open bfd

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/mhop</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/mhop

**Node Type**

leaf

**Description**

Open bfd multihop mode

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/local</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/local

**Node Type**

leaf

**Description**

The bfd local-address.

**Access**

Read-Write

**Data Type**

\<YANG type ip-address>

**Constraints**

Multiple constraints:

- The ipv6-address type represents an IPv6 address in full, mixed, shortened, and shortened-mixed notation. The IPv6 address may include a zone index, separated by a % sign.

If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format of IPv6 addresses uses the textual representation defined in Section 4 of RFC 5952. The canonical format for the zone index is the numerical format as described in Section 11.2 of RFC 4007.

- The ipv4-address type represents an IPv4 address in dotted-quad notation. The IPv4 address may include a zone index, separated by a % sign. If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format for the zone index is the numerical format

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-nexthops/track</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-nexthops/track

**Node Type**

leaf

**Description**

Route track

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops

**Node Type**

list

**Description**

A list of nexthop objects of type ip4-ifindex or ip6-ifindex.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/gateway</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/gateway

**Node Type**

leaf

**Description**

The nexthop gateway address.

**Access**

Read-Write

**Data Type**

\<YANG type ip-address-no-zone>

**Constraints**

Multiple constraints:

- An IPv6 address without a zone index. This type, derived from the type ipv6-address, may be used in situations where the zone is known from the context and no zone index is needed.
- An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/interface</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/interface

**Node Type**

leaf

**Description**

The nexthop egress interface.

**Access**

Read-Write

**Data Type**

\<YANG type interface-ref>

**Constraints**

LeafRef pointing to: asternos-interfaces\:interface-ref

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/distance</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/distance

**Node Type**

leaf

**Description**

Admin distance associated with this route.

**Access**

Read-Write

**Data Type**

\<YANG type uint8>

**Constraints**

Valid range: 1 to 255

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/tag</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/tag

**Node Type**

leaf

**Description**

Route tag

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd

**Node Type**

container

**Description**

FRR nexthop bfd object.

**Access**

Read-Write

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/enable</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/enable

**Node Type**

leaf

**Description**

Nexthop open bfd

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/mhop</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/mhop

**Node Type**

leaf

**Description**

Open bfd multihop mode

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/local</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/local

**Node Type**

leaf

**Description**

The bfd local-address.

**Access**

Read-Write

**Data Type**

\<YANG type ip-address>

**Constraints**

Multiple constraints:

- The ipv6-address type represents an IPv6 address in full, mixed, shortened, and shortened-mixed notation. The IPv6 address may include a zone index, separated by a % sign.

If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format of IPv6 addresses uses the textual representation defined in Section 4 of RFC 5952. The canonical format for the zone index is the numerical format as described in Section 11.2 of RFC 4007.

- The ipv4-address type represents an IPv4 address in dotted-quad notation. The IPv4 address may include a zone index, separated by a % sign. If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format for the zone index is the numerical format

### <font color="#1d50a2">/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/track</font>

**Path**

/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/track

**Node Type**

leaf

**Description**

Route track

**Access**

Read-Write

**Data Type**

\<YANG type uint32>
