Skip to content

[conn_graph] Fix the fanout connection parsing error#2780

Merged
bingwang-ms merged 2 commits intosonic-net:masterfrom
neethajohn:fanout_fix
Jan 8, 2021
Merged

[conn_graph] Fix the fanout connection parsing error#2780
bingwang-ms merged 2 commits intosonic-net:masterfrom
neethajohn:fanout_fix

Conversation

@neethajohn
Copy link
Contributor

Description of PR

Fanout graph parsing was broken due to #2517
Following errors were seen while running pfcwd tests
E RunAnsibleModuleFail: run module conn_graph_facts failed, Ansible Results =>
E {
E "changed": false,
E "failed": true,
E "invocation": {
E "module_args": {
E "anchor": null,
E "filename": "/var/nejo/Networking-acs-sonic-mgmt/tests/common/fixtures/../../../ansible/files/starlab_connection_graph.xml",
E "filepath": null,
E "host": "str-7260cx3-acs-fan-05",
E "hosts": null
E }
E },
E "msg": "Did not find port for Ethernet23/1 in the ports based on hwsku 'Arista-7260CX3' for host str-7260cx3-acs-fan-05"
E }

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

How did you do it?

Parsing logic added in #2517 was for SONIC duts. Retained the old logic when dev type is FanoutLeaf

How did you verify/test it?

Ran one of the pfcwd tests and it passed

@neethajohn neethajohn requested review from a team and lolyu January 8, 2021 03:19
Copy link
Collaborator

@lolyu lolyu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Signed-off-by: Neetha John <[email protected]>
@bingwang-ms bingwang-ms merged commit 315987c into sonic-net:master Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants