Update sample graph for unit test against minigraph misconfig leaking into config_db.json#1725
Closed
Update sample graph for unit test against minigraph misconfig leaking into config_db.json#1725
Conversation
Signed-off-by: Wenda <[email protected]>
Add unit test against introducing ports not existing in port_config.ini into DEVICE_NEIGHBOR Signed-off-by: Wenda <[email protected]>
yxieca
reviewed
May 17, 2018
Contributor
yxieca
left a comment
There was a problem hiding this comment.
Thanks for adding the test. But if you don't add fix at the same time, the PR test will fail and you won't be able to check-in.
Am I missing something?
port_config.ini but contraining non-zero Bandwidth attribute Add noice config in simple-sample-graph.xml to capture the case that such a port is leaked into config_db.json Signed-off-by: Wenda <[email protected]>
…raph.xml as it is in PortChannel1001 Signed-off-by: Wenda <[email protected]>
Contributor
Author
|
You fully catch it. |
Signed-off-by: Wenda <[email protected]>
existing in port_config.ini Signed-off-by: Wenda <[email protected]>
Signed-off-by: Wenda <[email protected]>
Collaborator
|
Could you reformat your comment on this page with markdown syntax? |
abdosi
added a commit
that referenced
this pull request
Aug 6, 2021
97d971372fac773b98d46bb8f800df7b845e518e (HEAD -> 201911, origin/201911) [sfpshow] Gracefully handle improper 'specification_compliance' field (#1594) (#1729) 2099c73cea81ff4524e680b6f9335c0b0f13b94e [CLI] Implement null_route_helper script (#1740) b56659175986fe0e5b82c6bd6b3dde163164777b [minigraph][port_config] Consume port_config.json while reloading minigraph (#1725) e840c42da2a40db2bf993672271f6b75c51c426f Change the method name to align with master, reduce diverge issue (#1703) Signed-off-by: Abhishek Dosi <[email protected]>
patrickmacarthur
pushed a commit
to patrickmacarthur/sonic-buildimage
that referenced
this pull request
Dec 11, 2025
#### Why I did it Cisco-8800 Chassis: * Removed platform_mg_plugin for Lancer to support GCU * Move minigraph.xml file during XR to Sonic migration instead of copy. * Added 'show platform phy debug' command support * Log Cisco SAI error and higher-level logs to syslog file Signed-off-by: Anand Mehra [email protected]
mssonicbld
added a commit
that referenced
this pull request
Jan 31, 2026
…tically (#25251) #### Why I did it src/sonic-sairedis ``` * 8c3d40d5 - (HEAD -> master, origin/master, origin/HEAD) Add PORT_PHY_ATTR flex counter support (#1674) (9 hours ago) [Dhanasekar Rathinavel] * 5966a71b - Update SAI Header to latest (#1742) (2 days ago) [Tejaswini Chadaga] * 2752ad6c - [multi-asic][Mellanox] add support for Mellanox multi-asic (#1683) (3 days ago) [Yakiv Huryk] * c4e3c142 - Fix deadlock between syncd and orchagent syncd during initialization failure (#1723) (7 days ago) [DavidZagury] * 50c5626c - Fix dash meter COUNTERS_DB keys to use VID instead of RID (#1725) (8 days ago) [Mukesh Moopath Velayudhan] * 7632eebb - [Mellanox] Add phcsync activation for mellanox platforms. (#1734) (9 days ago) [Zili Bombach] * 9eeffe38 - fix docker slave name (#1730) (10 days ago) [yijingyan2] * 90670166 - Use matching slave container from the branch we're building against (#1743) (10 days ago) [Saikrishna Arcot] ``` #### How I did it #### How to verify it #### Description for the changelog
xincunli-sonic
pushed a commit
to xincunli-sonic/sonic-buildimage
that referenced
this pull request
Feb 2, 2026
…tically (sonic-net#25251) #### Why I did it src/sonic-sairedis ``` * 8c3d40d5 - (HEAD -> master, origin/master, origin/HEAD) Add PORT_PHY_ATTR flex counter support (sonic-net#1674) (9 hours ago) [Dhanasekar Rathinavel] * 5966a71b - Update SAI Header to latest (sonic-net#1742) (2 days ago) [Tejaswini Chadaga] * 2752ad6c - [multi-asic][Mellanox] add support for Mellanox multi-asic (sonic-net#1683) (3 days ago) [Yakiv Huryk] * c4e3c142 - Fix deadlock between syncd and orchagent syncd during initialization failure (sonic-net#1723) (7 days ago) [DavidZagury] * 50c5626c - Fix dash meter COUNTERS_DB keys to use VID instead of RID (sonic-net#1725) (8 days ago) [Mukesh Moopath Velayudhan] * 7632eebb - [Mellanox] Add phcsync activation for mellanox platforms. (sonic-net#1734) (9 days ago) [Zili Bombach] * 9eeffe38 - fix docker slave name (sonic-net#1730) (10 days ago) [yijingyan2] * 90670166 - Use matching slave container from the branch we're building against (sonic-net#1743) (10 days ago) [Saikrishna Arcot] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: Xincun Li <[email protected]>
FengPan-Frank
pushed a commit
to FengPan-Frank/sonic-buildimage
that referenced
this pull request
Mar 6, 2026
…tically (sonic-net#25251) #### Why I did it src/sonic-sairedis ``` * 8c3d40d5 - (HEAD -> master, origin/master, origin/HEAD) Add PORT_PHY_ATTR flex counter support (sonic-net#1674) (9 hours ago) [Dhanasekar Rathinavel] * 5966a71b - Update SAI Header to latest (sonic-net#1742) (2 days ago) [Tejaswini Chadaga] * 2752ad6c - [multi-asic][Mellanox] add support for Mellanox multi-asic (sonic-net#1683) (3 days ago) [Yakiv Huryk] * c4e3c142 - Fix deadlock between syncd and orchagent syncd during initialization failure (sonic-net#1723) (7 days ago) [DavidZagury] * 50c5626c - Fix dash meter COUNTERS_DB keys to use VID instead of RID (sonic-net#1725) (8 days ago) [Mukesh Moopath Velayudhan] * 7632eebb - [Mellanox] Add phcsync activation for mellanox platforms. (sonic-net#1734) (9 days ago) [Zili Bombach] * 9eeffe38 - fix docker slave name (sonic-net#1730) (10 days ago) [yijingyan2] * 90670166 - Use matching slave container from the branch we're building against (sonic-net#1743) (10 days ago) [Saikrishna Arcot] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: Feng Pan <[email protected]>
dprital
pushed a commit
that referenced
this pull request
Mar 19, 2026
…tically (#25251) #### Why I did it src/sonic-sairedis ``` * 8c3d40d5 - (HEAD -> master, origin/master, origin/HEAD) Add PORT_PHY_ATTR flex counter support (#1674) (9 hours ago) [Dhanasekar Rathinavel] * 5966a71b - Update SAI Header to latest (#1742) (2 days ago) [Tejaswini Chadaga] * 2752ad6c - [multi-asic][Mellanox] add support for Mellanox multi-asic (#1683) (3 days ago) [Yakiv Huryk] * c4e3c142 - Fix deadlock between syncd and orchagent syncd during initialization failure (#1723) (7 days ago) [DavidZagury] * 50c5626c - Fix dash meter COUNTERS_DB keys to use VID instead of RID (#1725) (8 days ago) [Mukesh Moopath Velayudhan] * 7632eebb - [Mellanox] Add phcsync activation for mellanox platforms. (#1734) (9 days ago) [Zili Bombach] * 9eeffe38 - fix docker slave name (#1730) (10 days ago) [yijingyan2] * 90670166 - Use matching slave container from the branch we're building against (#1743) (10 days ago) [Saikrishna Arcot] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: dprital <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
Add one test case to assert that DEVICE_NEIGHBOR does not have non-port_config.ini port
Disallow non-port_config.ini port to get into PORT list even if it has non-zero Bandwidth attribute in DeviceInterfaceLink
remove non-port_config.ini port from PORTCHANNEL, PORTCHANNEL_INTERFACE, and DEVICE_NEIGHBOR
- How I did it
- How to verify it
pytest tests/test_cfggen.py
load minigraph.py on DUT and confirm that config_db.json generated from a misconfig minigraph.xml does not have the false config.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)