跳转到内容
Ask AI

nexthop

此内容尚不支持你的语言。

AsterNOS Model for static routes nexthops

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
PathAccess
/nexthop-groupRead-Write
/nexthop-group/nexthopRead-Write
/nexthop-group/nexthop/blackholeRead-Write
/nexthop-group/nexthop/blackhole/blackhole-nexthopRead-Write
/nexthop-group/nexthop/blackhole/blackhole-nexthop/bh-typeRead-Write
/nexthop-group/nexthop/blackhole/blackhole-nexthop/distanceRead-Write
/nexthop-group/nexthop/blackhole/blackhole-nexthop/tagRead-Write
/nexthop-group/nexthop/non-blackholeRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthopsRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/interfaceRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfdRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/enableRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/mhopRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/localRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/trackRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/distanceRead-Write
/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/tagRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthopsRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/nh-vrfRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/gatewayRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/distanceRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/tagRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfdRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/enableRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/mhopRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/localRead-Write
/nexthop-group/nexthop/non-blackhole/ip-nexthops/trackRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthopsRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/gatewayRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/interfaceRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/distanceRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/tagRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfdRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/enableRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/mhopRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/localRead-Write
/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/trackRead-Write

Path

/nexthop-group

Node Type

container

Description

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

Access

Read-Write

Path

/nexthop-group/nexthop

Node Type

choice

Access

Read-Write

Mandatory

Yes

Path

/nexthop-group/nexthop/blackhole

Node Type

choice-case

Access

Read-Write

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

Section titled “/nexthop-group/nexthop/blackhole/blackhole-nexthop”

Path

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

Node Type

container

Description

For blackhole type nexthops, there is only one configurable.

Access

Read-Write

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

Section titled “/nexthop-group/nexthop/blackhole/blackhole-nexthop/bh-type”

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

Constraints

Enumeration with options:

  • unspec
  • null
  • reject
  • prohibited

Mandatory

Yes

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

Section titled “/nexthop-group/nexthop/blackhole/blackhole-nexthop/distance”

Path

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

Node Type

leaf

Description

Admin distance associated with this route.

Access

Read-Write

Data Type

Constraints

Valid range: 1 to 255

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

Section titled “/nexthop-group/nexthop/blackhole/blackhole-nexthop/tag”

Path

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

Node Type

leaf

Description

Route tag

Access

Read-Write

Data Type

Path

/nexthop-group/nexthop/non-blackhole

Node Type

choice-case

Access

Read-Write

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops”

Path

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

Node Type

list

Description

A list of nexthop objects.

Access

Read-Write

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/interface”

Path

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

Node Type

leaf

Description

The nexthop egress interface.

Access

Read-Write

Data Type

Constraints

LeafRef pointing to: asternos-interfaces:interface-ref

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd”

Path

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

Node Type

container

Description

FRR nexthop bfd object.

Access

Read-Write

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/enable”

Path

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

Node Type

leaf

Description

Nexthop open bfd

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/mhop”

Path

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

Node Type

leaf

Description

Open bfd multihop mode

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/bfd/local”

Path

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

Node Type

leaf

Description

The bfd local-address.

Access

Read-Write

Data Type

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

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/track”

Path

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

Node Type

leaf

Description

Route track

Access

Read-Write

Data Type

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/distance”

Path

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

Node Type

leaf

Description

Admin distance associated with this route.

Access

Read-Write

Data Type

Constraints

Valid range: 1 to 255

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

Section titled “/nexthop-group/nexthop/non-blackhole/ifindex-nexthops/tag”

Path

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

Node Type

leaf

Description

Route tag

Access

Read-Write

Data Type

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops”

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

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/nh-vrf”

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

Constraints

LeafRef pointing to: asternos-vrf:vrf-ref

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/gateway”

Path

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

Node Type

leaf

Description

The nexthop gateway address.

Access

Read-Write

Data Type

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.

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/distance”

Path

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

Node Type

leaf

Description

Admin distance associated with this route.

Access

Read-Write

Data Type

Constraints

Valid range: 1 to 255

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/tag”

Path

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

Node Type

leaf

Description

Route tag

Access

Read-Write

Data Type

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd”

Path

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

Node Type

container

Description

FRR nexthop bfd object.

Access

Read-Write

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/enable”

Path

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

Node Type

leaf

Description

Nexthop open bfd

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/mhop”

Path

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

Node Type

leaf

Description

Open bfd multihop mode

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/bfd/local”

Path

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

Node Type

leaf

Description

The bfd local-address.

Access

Read-Write

Data Type

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

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-nexthops/track”

Path

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

Node Type

leaf

Description

Route track

Access

Read-Write

Data Type

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops”

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

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/gateway”

Path

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

Node Type

leaf

Description

The nexthop gateway address.

Access

Read-Write

Data Type

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.

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/interface”

Path

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

Node Type

leaf

Description

The nexthop egress interface.

Access

Read-Write

Data Type

Constraints

LeafRef pointing to: asternos-interfaces:interface-ref

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/distance”

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

Constraints

Valid range: 1 to 255

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/tag”

Path

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

Node Type

leaf

Description

Route tag

Access

Read-Write

Data Type

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd”

Path

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

Node Type

container

Description

FRR nexthop bfd object.

Access

Read-Write

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/enable”

Path

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

Node Type

leaf

Description

Nexthop open bfd

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/mhop”

Path

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

Node Type

leaf

Description

Open bfd multihop mode

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/bfd/local”

Path

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

Node Type

leaf

Description

The bfd local-address.

Access

Read-Write

Data Type

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

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

Section titled “/nexthop-group/nexthop/non-blackhole/ip-ifindex-nexthops/track”

Path

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

Node Type

leaf

Description

Route track

Access

Read-Write

Data Type