Skip to content

Commit 58e4b38

Browse files
authored
allow func_len to be 0 in sonic-srv6.yang (sonic-net#21672)
Why I did it Previously, we didn't allow the func_len to zero in YANG model, which conflicts with our use case. Work item tracking Microsoft ADO (number only): How I did it Change the lower bound of the func_len's range. How to verify it Configure a locator entry in CONFIG_DB and then do a config reload.
1 parent 678f1c2 commit 58e4b38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sonic-yang-models/yang-models/sonic-srv6.yang

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module sonic-srv6 {
3535
type uint8 {
3636
range "1..128";
3737
}
38-
38+
3939
default 32;
4040
}
4141

@@ -49,7 +49,7 @@ module sonic-srv6 {
4949

5050
leaf func_len {
5151
type uint8 {
52-
range "1..128";
52+
range "0..128";
5353
}
5454

5555
default 16;
@@ -127,6 +127,6 @@ module sonic-srv6 {
127127
substring-before(/srv6:sonic-srv6/SRV6_MY_LOCATORS/SRV6_MY_LOCATORS_LIST[current()/locator]/prefix, "::"))';
128128
}
129129
}
130-
130+
131131
}
132132
}

0 commit comments

Comments
 (0)