[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
1fc4cb1d48
commit
3b9b9462be
@ -7,7 +7,7 @@ import sys
|
|||||||
|
|
||||||
# Global variable
|
# Global variable
|
||||||
PORT_ATTRIBUTES = ["default_brkout_mode"]
|
PORT_ATTRIBUTES = ["default_brkout_mode"]
|
||||||
OPTIONAL_PORT_ATTRIBUTES = ["fec", "autoneg"]
|
OPTIONAL_PORT_ATTRIBUTES = ["fec", "autoneg", "port_type"]
|
||||||
PORT_REG = "Ethernet(\d+)"
|
PORT_REG = "Ethernet(\d+)"
|
||||||
HWSKU_JSON = '*hwsku.json'
|
HWSKU_JSON = '*hwsku.json'
|
||||||
INTF_KEY = "interfaces"
|
INTF_KEY = "interfaces"
|
||||||
|
Reference in New Issue
Block a user