Skip to content

Commit

Permalink
[chassis][voq] Remove the leaf ref for the ifname in sonic-system-por…
Browse files Browse the repository at this point in the history
…t.yang (sonic-net#18855)

Microsoft ADO 27934751:

Fixes sonic-net#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.
  • Loading branch information
arlakshm authored and gechiang committed Jun 4, 2024
1 parent d41fb92 commit b0d97cb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/sonic-yang-models/yang-models/sonic-system-port.yang
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,8 @@ module sonic-system-port {
}

leaf ifname {
type union {
type leafref {
path /port:sonic-port/port:PORT/port:PORT_LIST/port:name;
}
type string {
pattern "Cpu0";
}
type string {
length 1..128;
}
}

Expand Down

0 comments on commit b0d97cb

Please sign in to comment.