summaryrefslogtreecommitdiff
path: root/yang
diff options
context:
space:
mode:
authorvdhingra <vdhingra@vmware.com>2021-01-09 23:22:32 -0800
committervdhingra <vdhingra@vmware.com>2021-01-09 23:22:32 -0800
commitad6149e39d1e5b6163396620a1694e1f075bdff8 (patch)
treef5e87a3b7d952370e0e1328dea86dddf73ca7073 /yang
parente11922f0e9a21e5f8df8b1a70de2332574baf3f6 (diff)
staticd: make table-id as the key for path-list
modified the yang model for path-list. table-id should be a key, as one route can have multiple table-ids. Signed-off-by: vishaldhingra <vdhingra@vmware.com>
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-staticd.yang15
1 files changed, 7 insertions, 8 deletions
diff --git a/yang/frr-staticd.yang b/yang/frr-staticd.yang
index 281b4903c0..98ff3a83c6 100644
--- a/yang/frr-staticd.yang
+++ b/yang/frr-staticd.yang
@@ -63,7 +63,13 @@ module frr-staticd {
grouping staticd-prefix-attributes {
list path-list {
- key "distance";
+ key "table-id distance";
+ leaf table-id {
+ type uint32;
+ description
+ "Table-id";
+ }
+
leaf distance {
type frr-rt:administrative-distance;
description
@@ -77,13 +83,6 @@ module frr-staticd {
"Route tag";
}
- leaf table-id {
- type uint32;
- default "0";
- description
- "Table-id";
- }
-
uses frr-nexthop:frr-nexthop;
}
}