[updategraph] add support to use preset config instead of default minigraph#2050
[updategraph] add support to use preset config instead of default minigraph#2050lguohan merged 4 commits intosonic-net:masterfrom
Conversation
|
can you remove the minigraph.xml for all skus? |
There was a problem hiding this comment.
i am not sure if we need this path now? what purpose?
There was a problem hiding this comment.
not sure we need this else. in my opinion, we should get rid of the default minigraph.xml completely from the image.
There was a problem hiding this comment.
If we remove this else block, we'll need to make sure all the new platforms have a default_sku file in there device folder. I can create them for all existing ones, but we'd better communicate with community on this change for the future ones.
There was a problem hiding this comment.
You may create a unit test in sonic-buildimage/src/sonic-device-data/ to enforce any rule you want and later it will be added into PR check.
Another option: in stead of fallback to minigraph, how about fallback to the SKU with shortest name?
There was a problem hiding this comment.
@taoyl-ms , agree with you about the announcement. why not talk about this next community meeting?
lguohan
left a comment
There was a problem hiding this comment.
remove minigraph.xml for all skus.
|
can you resolve conflict? |
db8e47d to
6225d33
Compare
47c243e [show][muxcable] fix the sudo access error for show muxcable metrics (#2083) f872516 [muxcable][show] enhance show mux status to show last switchover time (#2067) d440df7 [warmboot] Migrate 10G ports during warm-reboot on s6100 (#2064) 494c6d7 [counterpoll] Display the correct default poll interval for watermark counters (#2082) 499988e [show][config] add muxcable command line support for retrieve / reset ICMP packet loss data (#2046) 8b01d3e Remove the warning message appear when there are no ports on CONFIG DB (#2050) ed6e66e [GCU] Supporting Groupings during path-xpath translation (#2044) 25b3455 [ci] Use official build debian pkg instead and parameterize source branch (#2079)
sonic-net#2050) #### What I did Remove the warning of "Configuration database contains no ports" when ports table is empty. Because when having a system with zero ports, this message appear per each access to ports tables on CONFIG DB For example: Run any cli command. For example "show boot" or "show int st" Observed behavior root@r-sn4800-simx:/home/admin# show boot Configuration database contains no ports Configuration database contains no ports Configuration database contains no ports #### How I did it Remove the warning and remove the unit test verify this warning #### How to verify it Remove all the ports and verify there is no such warning in case of running "show interface status" CLi command #### Previous command output (if the output of a command-line utility has changed) Configuration database contains no ports Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC ----------- ------- ------- ----- ----- ------- ------ ------ ------- ------ ---------- #### New command output (if the output of a command-line utility has changed) Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC ----------- ------- ------- ----- ----- ------- ------ ------ ------- ------ ----------
- What I did
Each platform now does not need to provide a default minigraph. Instead, it could specify a default SKU and preset name, and
updategraphservice will generate a preset configuration accordingly.Depends on #2039.