Skip to content

[vslib]: Remove invalid lane when create ports#938

Merged
Pterosaur merged 2 commits intosonic-net:masterfrom
Pterosaur:fix_partial_ports2
Sep 24, 2021
Merged

[vslib]: Remove invalid lane when create ports#938
Pterosaur merged 2 commits intosonic-net:masterfrom
Pterosaur:fix_partial_ports2

Conversation

@Pterosaur
Copy link
Contributor

@Pterosaur Pterosaur commented Sep 22, 2021

To make the virtual SAI supports partial ports enabled.

Here is the qemu xml example that only enables two interfaces.
image

The SWSS will exit with an unexpected error as follow
image
image

I check the availability of eth-x ports at creating port.

Signed-off-by: Ze Gan ganze718@gmail.com

Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur merged commit db403f4 into sonic-net:master Sep 24, 2021
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
* [vslib]: Remove invalid lane when create ports

Signed-off-by: Ze Gan <ganze718@gmail.com>

* refactor function

Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur deleted the fix_partial_ports2 branch January 12, 2023 04:24
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.

2 participants