summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2020-07-21 06:47:03 +0200
committerChirag Shah <chirag@cumulusnetworks.com>2020-08-01 01:21:45 +0200
commit37746447c1cfe8835304b72895b0f97ad9d8ada6 (patch)
treef57efad2e7418707052e7194c9d02859bc7575c5 /yang
parentMerge pull request #6778 from mjstapp/fix_topo_route_scale (diff)
downloadfrr-37746447c1cfe8835304b72895b0f97ad9d8ada6.tar.xz
frr-37746447c1cfe8835304b72895b0f97ad9d8ada6.zip
yang: create route-map leafref reference type
Create leafref reference type for route-map name. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-route-map.yang9
1 files changed, 9 insertions, 0 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang
index 734b984d7..8f4ba608e 100644
--- a/yang/frr-route-map.yang
+++ b/yang/frr-route-map.yang
@@ -64,6 +64,15 @@ module frr-route-map {
type string;
}
+ typedef route-map-ref {
+ type leafref {
+ path "/frr-route-map:lib/frr-route-map:route-map/frr-route-map:name";
+ require-instance false;
+ }
+ description
+ "Reference to a route-map.";
+ }
+
/*
* Operational data.
*/