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>
This commit is contained in:
vdhingra 2021-01-09 23:22:32 -08:00
parent e11922f0e9
commit ad6149e39d

View File

@ -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;
}
}