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

[minigraph.py] Update minigraph parsing logic to include only active ports for mirror tables #3592

Merged
merged 2 commits into from
Oct 17, 2019

Conversation

daall
Copy link
Contributor

@daall daall commented Oct 11, 2019

[minigraph.py] Update minigraph parsing logic to include only active ports for mirror tables

  • Update minigraph.py to filter out front-panel ports that are not active
  • Update cfggen tests to reflect new behavior

Signed-off-by: Danny Allen [email protected]

- What I did
Described above.

- How I did it
Described above.

- How to verify it
See tests.

- Description for the changelog

Update minigraph parsing logic to include only active ports for mirror tables

- A picture of a cute animal (not mandatory but encouraged)
cute animal

…ports for mirror tables

- Update minigraph.py to filter out front-panel ports that are not active
- Update cfggen tests to reflect new behavior

Signed-off-by: Danny Allen <[email protected]>
src/sonic-config-engine/tests/test_cfggen.py Outdated Show resolved Hide resolved
src/sonic-config-engine/minigraph.py Outdated Show resolved Hide resolved
- Update t0 tests to include additional device neighbors
- Refactor xml parsing logic
@daall daall merged commit c184815 into sonic-net:master Oct 17, 2019
@daall daall deleted the acl_template_update branch October 17, 2019 23:29
daall added a commit to daall/sonic-buildimage that referenced this pull request Oct 18, 2019
…ports for mirror tables (sonic-net#3592)

* Update minigraph.py to filter out front-panel ports that are not active
* Update cfggen tests to reflect new behavior

Signed-off-by: Danny Allen <[email protected]>

* Incorporate PR comments
- Update t0 tests to include additional device neighbors
- Refactor xml parsing logic
@renukamanavalan
Copy link
Contributor

Dropped 'request for configlet' as could not be cherry-picked onto 201811.
A new PR created for 201811 -- #3634

renukamanavalan pushed a commit that referenced this pull request Oct 24, 2019
…ports for mirror tables (#3592) (#3634)

* Update minigraph.py to filter out front-panel ports that are not active
* Update cfggen tests to reflect new behavior

Signed-off-by: Danny Allen <[email protected]>

* Incorporate PR comments
- Update t0 tests to include additional device neighbors
- Refactor xml parsing logic
yxieca pushed a commit that referenced this pull request Nov 7, 2019
…ports for mirror tables (#3592) (#3634)

* Update minigraph.py to filter out front-panel ports that are not active
* Update cfggen tests to reflect new behavior

Signed-off-by: Danny Allen <[email protected]>

* Incorporate PR comments
- Update t0 tests to include additional device neighbors
- Refactor xml parsing logic
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.

4 participants