-
Notifications
You must be signed in to change notification settings - Fork 274
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
[vslib]Fix check_object_default_state on objlist. #984
base: master
Are you sure you want to change the base?
Conversation
SAI_NULL_OBJECT_ID present in objlist.
i don't remember where there would be use case for a object_list to contain null object id's, could you explain more what exact issue/scenario are you addressing here ? |
Updated issue #983 (comment) describing the scenario. |
not sure if i follow this exactly, port attribute with objlits should not have null objects list (not null) it should be empty (in SAI vendor), code you pointes is using MAX list size since after that there is a GET api called, and objlist object should be resized to ad list.count received from SAI (which is not, which is a bug here which you are tryin to address? :P) |
it should be more like this:
|
…tual size is not zero.
Done |
Hi @kcudnik I don't have write access to the repo, can you please help me merge the PR? Thanks! |
please add some unittests to cover at least 50% of the code, we have policy now to enforce that |
Return error only when non SAI_NULL_OBJECT_ID present in objlist.
For issue#983