Skip to content

[platform tests] test_xcvr_info_in_db.py failing on some platforms #4998

@dflynn-Nokia

Description

@dflynn-Nokia

Description

The following failure is seen when executing the test_xcvr_info_in_db.py platform test case on the Nokia marvell-armhf platform

E                   AssertionError: Expected field vendor_rev is not found in type
E                   SFP/SFP+/SFP28
E                   hardware_rev
E                   A.0
E                   serial
E                   BP194500040254
E                   manufacturer
E                   ACCELINK
E                   model
E                   RTXM228-551-C82
E                   vendor_oui
E                   00-1c-ad
E                   vendor_date
E                   2019-11-08 
E                   connector
E                   LC
E                   encoding
E                   64B/66B
E                   ext_identifier
E                   GBIC/SFP defined by twowire interface ID
E                   ext_rateselect_compliance
E                   Unspecified
E                   cable_type
E                   LengthOM3(UnitsOf10m)
E                   cable_length
E                   30
E                   specification_compliance
E                   {'10GEthernetComplianceCode': '10G Base-SR'}
E                   nominal_bit_rate
E                   103
E                   application_advertisement
E                   N/A
E                   is_replaceable
E                   True
E                   dom_capability
E                   N/A while checking Ethernet49

I believe this is due to the fact that sonic-mgmt PR# 4816 introduced an expectation that all platforms will have migrated from using hardware_rev to vendor_rev. This is not the case for the Nokia marvell-armhf platform currently based on the Sonic 202012 release.

Steps to reproduce the issue:

  1. Run the test_xcvr_info_in_db.py test case on the Nokia marvell-armhf platform

Describe the results you received:
See Assert above.

Describe the results you expected:
Test case pass

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions