[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:
parent
ba7e50aded
commit
7432e477c0
@ -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"
|
||||
|
Reference in New Issue
Block a user