[sonic-cfggen] Minigraph parser must generate port lanes and speed #9676
Labels
sonic-cfggen
SONiC Configuration Generator Tool
Triaged
this issue has been triaged
YANG
YANG model related changes
Description
Please refer to #9553
Config db schema generated by minigraph can’t pass yang validation, PORT table does not have 'lanes' field.
We will add a new constraint for minigraph parser: if PORT table does not have 'lanes' field, minigraph parser will raise an exception.
When we invoke sonic-cfggen, must provide '-p' or '-S' for minigraph parser to make sure PORT table has 'lanes' field.
https://github.com/Azure/sonic-buildimage/blob/master/files/image_config/topology/topology.sh#L14
Above line should be updated to use '-p' or '-S' to provide port_config.ini or platform.json, so that new constraint will not block anything.
Steps to reproduce the issue:
Describe the results you received:
sonic-cfggen can generate config db schema, and there's no lanes field in PORT table.
Describe the results you expected:
sonic-cfggen should raise an exception.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: