}
import frr-vrf {
- prefix "frr-vrf";
+ prefix frr-vrf;
}
organization
}
typedef optional-ip-address {
- type union {
- type inet:ip-address;
- type string {
- pattern
- '';
- }
- }
+ type union {
+ type inet:ip-address;
+ type string {
+ pattern '';
+ }
+ }
}
/*
when "../nh-type = 'ip4-ifindex' or
../nh-type = 'ip6-ifindex'";
type boolean;
- default false;
+ default "false";
description
"Nexthop is directly connected.";
}
+
uses rt-types:mpls-label-stack {
description
"Nexthop's MPLS label stack.";
*/
grouping frr-nexthop-operational {
leaf duplicate {
- config false;
type empty;
+ config false;
description
"Duplicate nexthop";
}
+
leaf recursive {
- config false;
type empty;
+ config false;
description
"Nexthop resolved through another gateway.";
}
+
leaf active {
- config false;
type empty;
+ config false;
description
"Nexthop is active.";
}
+
leaf fib {
- config false;
type empty;
+ config false;
description
"Nexthop is installed in fib.";
}
+
+ leaf weight {
+ type uint8;
+ config false;
+ description
+ "Weight to be used by the nexthop for purposes of ECMP";
+ }
}
/*
key "nh-type gateway interface";
description
"A list of nexthop objects.";
-
uses frr-nexthop-attributes;
}
}
container frr-nexthop-group {
description
"A nexthop-group, represented as a list of nexthop objects.";
-
uses frr-nexthop-grouping;
}
+ typedef nexthop-group-ref {
+ type leafref {
+ require-instance false;
+ path "/frr-nexthop:frr-nexthop-group/frr-nexthop:nexthop-group/frr-nexthop:name";
+ }
+ }
+
/*
- * Agument weight attributes to nexthop group.
+ * Augment weight attributes to nexthop group.
*/
augment "/frr-nexthop-group/nexthop-group/frr-nexthops/nexthop" {
leaf weight {