Skip to content

Commit c2406e6

Browse files
authored
[chassis][voq] Remove the leaf ref for the ifname in sonic-system-port.yang (#18855)
Microsoft ADO 27934751: Fixes #18854 Update the sonic-system-port.yang to remove the check to have ifname as leafref in the port table The system-port config table will have all the ports in the chassis not only to one linecard, so in case of the chassis with different linecards sku with different number of ports this leafref will not work.
1 parent 4863b0b commit c2406e6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/sonic-yang-models/yang-models/sonic-system-port.yang

+2-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@ module sonic-system-port {
4040
}
4141

4242
leaf ifname {
43-
type union {
44-
type leafref {
45-
path /port:sonic-port/port:PORT/port:PORT_LIST/port:name;
46-
}
47-
type string {
48-
pattern "Cpu0";
49-
}
43+
type string {
44+
length 1..128;
5045
}
5146
}
5247

0 commit comments

Comments
 (0)