From gnmi path -> sonic-port:sonic-port/PORT/PORT_LIST[name={interface_name}]
get following parameters store them in DB and display in UI as well-
[ ] alias (already in DB)
[ ] lanes (already in DB)
[ ] valid_speeds (already being stored in DB but unit needs to be converted according to scale 1000=1GB)
[ ] adv_speeds
[ ] link_training
[ ] autoneg
[ ] UI must display the above interface properties.
[ ] speed drop down on interface UI must show speeds from valid_speeds array only currently it shows all the speeds, Also the current speed that is set on interface should be displayed as selected by default.
[ ] For testing device should be discovered and the interface nodes must have above properties in the neo4j, and similar is reflected in UI.
From gnmi path -> sonic-port:sonic-port/PORT/PORT_LIST[name={interface_name}] get following parameters store them in DB and display in UI as well-
A gnmi equivalent Restconf path for interface of switch can be used to see the output json - Restconf equivalent path - https://{device_ip_list[0]}/restconf/data/sonic-port:sonic-port/PORT/PORT_LIST={interface_name} Sample JSON output -