[sonic-device-data]: add port_type to OPTIONAL_PORT_ATTRIBUTES (#8370)

enable automated test suites to selectively run relevant tests ( or not run tests ) based upon a new port_type identifier in hwsku.json

How I did it
Modified the valid optional fields in validity check for hwsku.json per recommendation from Joe in
https://github.com/Azure/sonic-mgmt/pull/2654/files

Co-authored-by: Carl Keene <keene@nokia.com>
This commit is contained in:
carl-nokia 2021-08-11 05:13:15 -04:00 committed by Qi Luo
parent 1fc4cb1d48
commit 3b9b9462be

View File

@ -7,7 +7,7 @@ import sys
# Global variable
PORT_ATTRIBUTES = ["default_brkout_mode"]
OPTIONAL_PORT_ATTRIBUTES = ["fec", "autoneg"]
OPTIONAL_PORT_ATTRIBUTES = ["fec", "autoneg", "port_type"]
PORT_REG = "Ethernet(\d+)"
HWSKU_JSON = '*hwsku.json'
INTF_KEY = "interfaces"