summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-09-08 20:06:46 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2020-09-17 17:00:06 +0200
commit806defc8fe4fc35fa2b53a4ffd2c719f29e8ddbc (patch)
tree25e9deba89bc7389da6a599593a2d467f2b1da1d /yang
parentMerge pull request #7114 from donaldsharp/tip_count (diff)
downloadfrr-806defc8fe4fc35fa2b53a4ffd2c719f29e8ddbc.tar.xz
frr-806defc8fe4fc35fa2b53a4ffd2c719f29e8ddbc.zip
yang: use leafref instead of string
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-bfdd.yang15
-rw-r--r--yang/frr-eigrpd.yang14
-rw-r--r--yang/frr-isisd.yang16
-rw-r--r--yang/frr-nexthop.yang6
-rw-r--r--yang/frr-ripd.yang20
-rw-r--r--yang/frr-ripngd.yang16
-rw-r--r--yang/frr-routing.yang2
-rw-r--r--yang/frr-test-module.yang4
-rw-r--r--yang/frr-zebra.yang2
9 files changed, 55 insertions, 40 deletions
diff --git a/yang/frr-bfdd.yang b/yang/frr-bfdd.yang
index 4b7785e69..5b434162d 100644
--- a/yang/frr-bfdd.yang
+++ b/yang/frr-bfdd.yang
@@ -12,6 +12,9 @@ module frr-bfdd {
import frr-interface {
prefix frr-interface;
}
+ import frr-vrf {
+ prefix frr-vrf;
+ }
import frr-route-types {
prefix frr-route-types;
}
@@ -396,14 +399,12 @@ module frr-bfdd {
}
leaf interface {
- type string {
- length "0..16";
- }
+ type frr-interface:interface-ref;
description "Interface to use to contact peer";
}
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description "Virtual Routing Domain name";
}
@@ -441,14 +442,12 @@ module frr-bfdd {
}
leaf interface {
- type string {
- length "0..16";
- }
+ type frr-interface:interface-ref;
description "Interface to use to contact peer";
}
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description "Virtual Routing Domain name";
}
diff --git a/yang/frr-eigrpd.yang b/yang/frr-eigrpd.yang
index 3d1bf3baa..2127ac498 100644
--- a/yang/frr-eigrpd.yang
+++ b/yang/frr-eigrpd.yang
@@ -12,6 +12,12 @@ module frr-eigrpd {
import frr-interface {
prefix frr-interface;
}
+ import frr-vrf {
+ prefix frr-vrf;
+ }
+ import frr-route-map {
+ prefix frr-route-map;
+ }
import frr-route-types {
prefix frr-route-types;
}
@@ -109,9 +115,7 @@ module frr-eigrpd {
leaf vrf {
description "Virtual Routing Domain name";
- type string {
- length "0..16";
- }
+ type frr-vrf:vrf-ref;
}
/*
@@ -235,9 +239,7 @@ module frr-eigrpd {
"Applies the conditions of the specified route-map to
routes that are redistributed into the EIGRP routing
instance";
- type string {
- length "1..max";
- }
+ type frr-route-map:route-map-ref;
}
container metrics {
diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang
index cc959bd9f..79941a50e 100644
--- a/yang/frr-isisd.yang
+++ b/yang/frr-isisd.yang
@@ -15,6 +15,14 @@ module frr-isisd {
prefix frr-interface;
}
+ import frr-vrf {
+ prefix frr-vrf;
+ }
+
+ import frr-route-map {
+ prefix frr-route-map;
+ }
+
import frr-route-types {
prefix frr-route-types;
}
@@ -240,9 +248,7 @@ module frr-isisd {
description
"Common optional attributes of any redistribute entry.";
leaf route-map {
- type string {
- length "1..max";
- }
+ type frr-route-map:route-map-ref;
description
"Applies the conditions of the specified route-map to routes that
are redistributed into this routing instance.";
@@ -341,7 +347,7 @@ module frr-isisd {
}
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
default "default";
description
"VRF NAME.";
@@ -830,7 +836,7 @@ module frr-isisd {
}
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description
"VRF NAME.";
}
diff --git a/yang/frr-nexthop.yang b/yang/frr-nexthop.yang
index 0cb0f93ee..52155dcd1 100644
--- a/yang/frr-nexthop.yang
+++ b/yang/frr-nexthop.yang
@@ -156,7 +156,7 @@ module frr-nexthop {
}
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description
"The nexthop vrf name, if different from the route.";
}
@@ -167,7 +167,7 @@ module frr-nexthop {
}
leaf interface {
- type string;
+ type frr-interface:interface-ref;
description
"The nexthop egress interface.";
}
@@ -275,7 +275,7 @@ module frr-nexthop {
description
"List of nexthop groups, each contains group of nexthops";
leaf name {
- type string;
+ type nexthop-group-ref;
description
"The nexthop-group name.";
}
diff --git a/yang/frr-ripd.yang b/yang/frr-ripd.yang
index f5775ab96..929c91606 100644
--- a/yang/frr-ripd.yang
+++ b/yang/frr-ripd.yang
@@ -12,6 +12,12 @@ module frr-ripd {
import frr-interface {
prefix frr-interface;
}
+ import frr-vrf {
+ prefix frr-vrf;
+ }
+ import frr-route-map {
+ prefix frr-route-map;
+ }
import frr-route-types {
prefix frr-route-types;
}
@@ -72,7 +78,7 @@ module frr-ripd {
"RIP routing instance.";
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description
"VRF name.";
}
@@ -227,9 +233,7 @@ module frr-ripd {
must '. != "rip"';
}
leaf route-map {
- type string {
- length "1..max";
- }
+ type frr-route-map:route-map-ref;
description
"Applies the conditions of the specified route-map to
routes that are redistributed into the RIP routing
@@ -396,7 +400,7 @@ module frr-ripd {
"Next hop IPv4 address.";
}
leaf interface {
- type string;
+ type frr-interface:interface-ref;
description
"The interface that the route uses.";
}
@@ -587,7 +591,7 @@ module frr-ripd {
input {
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description
"VRF name identifying a specific RIP instance.
This leaf is optional for the rpc.
@@ -608,7 +612,7 @@ module frr-ripd {
receives a PDU with the wrong authentication type
field.";
leaf interface-name {
- type string;
+ type frr-interface:interface-ref;
description
"Describes the name of the RIP interface.";
}
@@ -624,7 +628,7 @@ module frr-ripd {
receives a PDU with the wrong authentication
information.";
leaf interface-name {
- type string;
+ type frr-interface:interface-ref;
description
"Describes the name of the RIP interface.";
}
diff --git a/yang/frr-ripngd.yang b/yang/frr-ripngd.yang
index 52e208b2c..07d38bd41 100644
--- a/yang/frr-ripngd.yang
+++ b/yang/frr-ripngd.yang
@@ -12,6 +12,12 @@ module frr-ripngd {
import frr-interface {
prefix frr-interface;
}
+ import frr-vrf {
+ prefix frr-vrf;
+ }
+ import frr-route-map {
+ prefix frr-route-map;
+ }
import frr-route-types {
prefix frr-route-types;
}
@@ -71,7 +77,7 @@ module frr-ripngd {
"RIPng routing instance.";
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description
"VRF name.";
}
@@ -170,9 +176,7 @@ module frr-ripngd {
must '. != "ripng"';
}
leaf route-map {
- type string {
- length "1..max";
- }
+ type frr-route-map:route-map-ref;
description
"Applies the conditions of the specified route-map to
routes that are redistributed into the RIPng routing
@@ -298,7 +302,7 @@ module frr-ripngd {
"Next hop IPv6 address.";
}
leaf interface {
- type string;
+ type frr-interface:interface-ref;
description
"The interface that the route uses.";
}
@@ -359,7 +363,7 @@ module frr-ripngd {
input {
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description
"VRF name identifying a specific RIPng instance.
This leaf is optional for the rpc.
diff --git a/yang/frr-routing.yang b/yang/frr-routing.yang
index 52607f9ad..f8441669a 100644
--- a/yang/frr-routing.yang
+++ b/yang/frr-routing.yang
@@ -249,7 +249,7 @@ module frr-routing {
instance.";
}
leaf vrf {
- type string;
+ type frr-vrf:vrf-ref;
description
"vrf for control-plane protocol";
}
diff --git a/yang/frr-test-module.yang b/yang/frr-test-module.yang
index 61915b134..2f89ebca8 100644
--- a/yang/frr-test-module.yang
+++ b/yang/frr-test-module.yang
@@ -57,7 +57,7 @@ module frr-test-module {
}
container interfaces {
leaf-list interface {
- type string;
+ type frr-interface:interface-ref;
}
}
container routes {
@@ -69,7 +69,7 @@ module frr-test-module {
type inet:ipv4-address;
}
leaf interface {
- type string;
+ type frr-interface:interface-ref;
}
leaf metric {
type uint8;
diff --git a/yang/frr-zebra.yang b/yang/frr-zebra.yang
index 2efc45c14..782e0a4b7 100644
--- a/yang/frr-zebra.yang
+++ b/yang/frr-zebra.yang
@@ -2137,7 +2137,7 @@ module frr-zebra {
"The admin distance to use for imported routes.";
}
leaf route-map {
- type string;
+ type frr-route-map:route-map-ref;
description
"A route-map to filter imported routes.";
}