Skip to content

Commit

Permalink
allow func_len to be 0 in sonic-srv6.yang (sonic-net#21672)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BYGX-wcr authored Feb 11, 2025
1 parent 678f1c2 commit 58e4b38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sonic-yang-models/yang-models/sonic-srv6.yang
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module sonic-srv6 {
type uint8 {
range "1..128";
}

default 32;
}

Expand All @@ -49,7 +49,7 @@ module sonic-srv6 {

leaf func_len {
type uint8 {
range "1..128";
range "0..128";
}

default 16;
Expand Down Expand Up @@ -127,6 +127,6 @@ module sonic-srv6 {
substring-before(/srv6:sonic-srv6/SRV6_MY_LOCATORS/SRV6_MY_LOCATORS_LIST[current()/locator]/prefix, "::"))';
}
}

}
}

0 comments on commit 58e4b38

Please sign in to comment.