Skip to content

Update sample graph for unit test against minigraph misconfig leaking into config_db.json#1725

Closed
wendani wants to merge 8 commits intomasterfrom
sample_graph_master
Closed

Update sample graph for unit test against minigraph misconfig leaking into config_db.json#1725
wendani wants to merge 8 commits intomasterfrom
sample_graph_master

Conversation

@wendani
Copy link
Copy Markdown
Contributor

@wendani wendani commented May 17, 2018

- What I did

  1. Update test cases to consider misconfig in minigraph.xml
  • PortChannelInterfaces that can leak into PORTCHANNEL in config_db.json
  • EthernetInterface that can leak into PORT in config_db.json
  • portchannel IPInterface that can leak into PORTCHANNEL_INTERFACE in config_db.json
  • DeviceInterfaceLinks that can leak into DEVICE_NEIGHBOR and PORT in config_db.json
  1. Add one test case to assert that DEVICE_NEIGHBOR does not have non-port_config.ini port

  2. Disallow non-port_config.ini port to get into PORT list even if it has non-zero Bandwidth attribute in DeviceInterfaceLink

  3. remove non-port_config.ini port from PORTCHANNEL, PORTCHANNEL_INTERFACE, and DEVICE_NEIGHBOR

- How I did it

- How to verify it

  1. pytest tests/test_cfggen.py

  2. 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)

Copy link
Copy Markdown
Contributor

@yxieca yxieca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

wendani added 2 commits May 17, 2018 23:09
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]>
@wendani
Copy link
Copy Markdown
Contributor Author

wendani commented May 18, 2018

You fully catch it.

@qiluo-msft
Copy link
Copy Markdown
Collaborator

Could you reformat your comment on this page with markdown syntax?

@wendani wendani closed this May 18, 2018
@wendani wendani deleted the sample_graph_master branch May 18, 2018 19:39
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants