+// SPDX-License-Identifier: BSD-2-Clause
module frr-nexthop {
yang-version 1.1;
namespace "http://frrouting.org/yang/nexthop";
type union {
type inet:ip-address;
type string {
- pattern '';
+ length "0";
}
}
}
description
"The nexthop vrf name, if different from the route.";
}
+
leaf gateway {
type frr-nexthop:optional-ip-address;
description
}
leaf bh-type {
- when "../nh-type = 'blackhole'";
type blackhole-type;
description
"A blackhole sub-type, if the nexthop is a blackhole type.";
}
leaf onlink {
- when "../nh-type = 'ip4-ifindex' or
- ../nh-type = 'ip6-ifindex'";
type boolean;
default "false";
description