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 (#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.
  • Loading branch information
arlakshm authored May 17, 2024
1 parent 4863b0b commit c2406e6
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 c2406e6

Please sign in to comment.