Skip to content

Enhancing vs support to mock based on platform#8685

Merged
kcudnik merged 1 commit intosonic-net:masterfrom
dgsudharsan:vs_mock_platform
Sep 9, 2021
Merged

Enhancing vs support to mock based on platform#8685
kcudnik merged 1 commit intosonic-net:masterfrom
dgsudharsan:vs_mock_platform

Conversation

@dgsudharsan
Copy link
Collaborator

Why I did it

Updated sai_vs profile based on fake platform provided. Currently vs initializes platform and data structures based on vs profile which is fixed. However, when fake platform env is set , vslib needs to initialize to a different platform.

How I did it

Created new sai profile for mellanox and when fake_platform is mellanox, this would override the sai.profile file.

How to verify it

Ran test cases with fake_platform and without it confirming it works.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@dgsudharsan dgsudharsan requested a review from lguohan as a code owner September 4, 2021 00:18
@kcudnik
Copy link
Contributor

kcudnik commented Sep 4, 2021

please check build errors

@dgsudharsan
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yozhao101
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan
Copy link
Collaborator Author

@kcudnik @lguohan Build is now passing. Can we merge this?

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