Commit 54ebfc8
Add a "-l/--load-sysinfo" option for "config reload" to merge the system info on device (sonic-net#324)
The information includes:
-- platform string
-- system mac
-- port configuration: alias, lanes, speed, index
This is useful when we first load the configuration from config_db.json generated
outside which does not have the information on the device.
The default behaviour is not changed, so it won't impact the system unless you use this option.
This can be used for ZTP to config the box the first time and avoid any addtional work
which could cause inconsistency.1 parent 34810df commit 54ebfc8
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
279 | 280 | | |
280 | | - | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
284 | 296 | | |
285 | 297 | | |
286 | 298 | | |
287 | 299 | | |
288 | 300 | | |
289 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
290 | 306 | | |
291 | 307 | | |
292 | 308 | | |
| |||
0 commit comments