Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chassis] Yang validation fails for the system port yang #18854

Closed
arlakshm opened this issue May 2, 2024 · 0 comments · Fixed by #18855
Closed

[chassis] Yang validation fails for the system port yang #18854

arlakshm opened this issue May 2, 2024 · 0 comments · Fixed by #18855
Assignees
Labels
MSFT Triaged this issue has been triaged

Comments

@arlakshm
Copy link
Contributor

arlakshm commented May 2, 2024

Description

Steps to reproduce the issue:

1.During the testing of incremental configuration of sonic chassis the application of the patch fails with below error

Failed to apply patch due to: Failed to apply patch on the following scopes:
- localhost: Given patch will produce invalid config. Error: Data Loading Failed
Invalid value "Ethernet-IB0" in "ifname" element.
- asic0: Given patch will produce invalid config. Error: Data Loading Failed
Invalid value "Ethernet-IB0" in "ifname" element.
- asic1: Given patch will produce invalid config. Error: Data Loading Failed
Invalid value "Ethernet-IB0" in "ifname" element.

Output of show version:

202205

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

@arlakshm arlakshm self-assigned this May 2, 2024
@neethajohn neethajohn added Triaged this issue has been triaged MSFT labels May 8, 2024
lguohan pushed a commit that referenced this issue May 17, 2024
…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.
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this issue Jun 5, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MSFT Triaged this issue has been triaged
Projects
Status: Done
2 participants