telemetry_port_speed_test - openconfig/featureprofiles GitHub Wiki
Validate port speed telemetry used by controller infrastructure.
- For each port speed to be supported by the device:
- Connect single port to ATE, validate that the port speed (
/interfaces/interface/ethernet/state/port-speed) and negotiated port speed (/interfaces/interface/ethernet/state/negotiated-port-speed, when auto-negotiate is enabled) reported in telemetry match the expected port speed. - Turn port down at ATE, validate that operational status of the port is reported as down.
- Connect single port to ATE, validate that the port speed (
- For each port speed to be supported by the device:
- Connect N ports between ATE and DUT configured as part of a LACP bundle. Validate /interfaces/interface/aggregation/state/lag-speed is reported as N*port speed.
- Disable each port at ATE and determine that the effective speed is reduced by the expected amount.
- Turn ports sequentially up at the ATE, and determine that the effective speed is increased as expected.
{
"interfaces": {
"interface": [
{
"config": {
"description": "port1",
"enabled": true,
"name": "eth1",
"type": "ethernetCsmacd"
},
"ethernet": {
"config": {
"aggregate-id": "Port-Channel1",
"auto-negotiate": true,
"port-speed": "SPEED_100GB"
},
"state": {
"auto-negotiate": true,
"negotiated-port-speed": "SPEED_100GB",
"port-speed": "SPEED_100GB"
}
},
"name": "eth1",
"state": {
"oper-status": "UP"
}
},
{
"aggregation": {
"config": {
"lag-type": "LACP",
"min-links": 1
},
"state": {
"lag-speed": 200000
}
},
"config": {
"description": "LAG To ATE",
"enabled": true,
"name": "Port-Channel1",
"type": "ieee8023adLag"
},
"name": "Port-Channel1"
}
]
}
}The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.
TODO(OCPATHS): Config paths TBD
paths:
## Config Paths ##
# TBD
## State Paths ##
/interfaces/interface/state/oper-status:
/interfaces/interface/ethernet/state/port-speed:
/interfaces/interface/ethernet/state/negotiated-port-speed:
/interfaces/interface/aggregation/state/lag-speed:
rpcs:
gnmi:
gNMI.Subscribe:vRX