Skip to content

Commit fd26d87

Browse files
committed
Updated prefix-list yang model desc
Signed-off-by: Mukul Chodhary <70460358+Muckthebuck@users.noreply.github.com>
1 parent 3e0b7f8 commit fd26d87

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/sonic-yang-models/tests/yang_model_tests/tests_config/bgp_prefix_list.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"sonic-bgp-prefix-list:PREFIX_LIST": {
55
"PREFIX_LIST_LIST": [
66
{
7-
"name": "ANCHOR_PREFIX",
7+
"prefix_type": "ANCHOR_PREFIX",
88
"ip-prefix": "10.0.0.0/8"
99
}
1010
]
@@ -16,7 +16,7 @@
1616
"sonic-bgp-prefix-list:PREFIX_LIST": {
1717
"PREFIX_LIST_LIST": [
1818
{
19-
"name": "ANCHOR_PREFIX",
19+
"prefix_type": "ANCHOR_PREFIX",
2020
"ip-prefix": "fc00::/48"
2121
}
2222
]
@@ -28,7 +28,7 @@
2828
"sonic-bgp-prefix-list:PREFIX_LIST": {
2929
"PREFIX_LIST_LIST": [
3030
{
31-
"name": "ANCHOR_PREFIX",
31+
"prefix_type": "ANCHOR_PREFIX",
3232
"ip-prefix": "invalid_prefix"
3333
}
3434
]

src/sonic-yang-models/yang-models/sonic-bgp-prefix-list.yang

+9-5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ module sonic-bgp-prefix-list {
1616

1717
description "SONIC Device-specfifc BGP prefix lists data";
1818

19+
revision 2025-02-17 {
20+
description "Updated description and leafs for PREFIX_LIST_LIST";
21+
}
22+
1923
revision 2025-02-05 {
2024
description "Initial revision.";
2125
}
@@ -24,17 +28,17 @@ module sonic-bgp-prefix-list {
2428

2529
container PREFIX_LIST {
2630

27-
description "PREFIX_LIST part of config_db.json";
31+
description "PREFIX_LIST container consumed in BGP";
2832

2933
list PREFIX_LIST_LIST {
3034

31-
description "PREFIX_LIST part of config_db.json with prefix";
35+
description "PREFIX_LIST part of config_db.json with prefix_type and ip-prefix";
3236

33-
key "name ip-prefix";
37+
key "prefix_type ip-prefix";
3438

35-
leaf name {
39+
leaf prefix_type {
3640
type string;
37-
description "Name of the prefix list";
41+
description "Prefix type";
3842
}
3943

4044
leaf ip-prefix {

0 commit comments

Comments
 (0)