Commit 1c9ea92
committed
[tempershow] Fix multi-ASIC: initialize global DB config for namespace resolution
On multi-ASIC platforms, SonicDBConfig.load_sonic_global_db_config()
must be called before creating namespace-scoped SonicV2Connector
instances. Without this, connect_to_all_dbs_for_ns() fails with
'validateNamespace: Initialize global DB config' and SFP temperatures
from per-ASIC namespace STATE_DBs are not displayed.
Add the standard isGlobalInit/load_sonic_global_db_config guard in
TemperShow.__init__(), matching the pattern used by fdbshow, fdbclear,
and nbrshow.
Signed-off-by: Vasundhara Volam <vvolam@microsoft.com>1 parent 6baf219 commit 1c9ea92
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments