The newer SONiC versions have a different string to match to extract the version. Add that. Plus, fix a bug in extracting the version during device init.
Set develop as target branch of this PR (delete this line before issuing the PR)
Description
Fix detection of SONiC devices and version extraction of newer SONiC versions.
Type of change
Please delete options that are not relevant.
Bug fix (non-breaking change which fixes an issue)
New Behavior
SONiC newer versions are correctly detected as SONiC, and version correctly extracted for all versions, old and new.
...
Proposed Release Note Entry
Fix SONiC auto detect for newer versions, and fix version extraction for SONiC devices
Double Check
[X] I have read the comments and followed the CONTRIBUTING.md.
[X] I have explained my PR according to the information in the comments or in a linked issue.
[X] My PR source branch is created from the develop branch.
The newer SONiC versions have a different string to match to extract the version. Add that. Plus, fix a bug in extracting the version during device init.
Set
develop
as target branch of this PR (delete this line before issuing the PR)Description
Fix detection of SONiC devices and version extraction of newer SONiC versions.
Type of change
Please delete options that are not relevant.
New Behavior
SONiC newer versions are correctly detected as SONiC, and version correctly extracted for all versions, old and new. ...
Proposed Release Note Entry
Double Check
develop
branch.develop
branch.--signoff
applied