Skip to content

Commit b1102ad

Browse files
authoredNov 14, 2022
Remove LOGLEVEL DB since is no longer used (#12657)
This PR is part of the following HLD: Persistent loglevel HLD: sonic-net/SONiC#1041 - Why I did it After the Logger tables moved from the LOGLEVEL_DB to the CONFIG_DB and the jinja2_cache was deleted the LOGLEVEL_DB is not in use. - How I did it Removed the LOGLEVEL_DB from the SONiC code - How to verify it All tests were passed
1 parent 7de0450 commit b1102ad

File tree

10 files changed

+1
-46
lines changed

10 files changed

+1
-46
lines changed
 

‎platform/vs/docker-sonic-vs/database_config.json

-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
"separator": ":",
2929
"instance" : "redis"
3030
},
31-
"LOGLEVEL_DB" : {
32-
"id" : 3,
33-
"separator": ":",
34-
"instance" : "redis"
35-
},
3631
"CONFIG_DB" : {
3732
"id" : 4,
3833
"separator": "|",

‎src/sonic-config-engine/tests/mock_tables/asic0/database_config.json

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

‎src/sonic-config-engine/tests/mock_tables/asic1/database_config.json

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

‎src/sonic-config-engine/tests/mock_tables/asic2/database_config.json

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

‎src/sonic-config-engine/tests/mock_tables/asic3/database_config.json

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

‎src/sonic-config-engine/tests/mock_tables/database_config.json

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

‎src/sonic-eventd/tests/redis_multi_db_ut_config/database_config.json

-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@
4242
"separator": ":",
4343
"instance" : "redis"
4444
},
45-
"LOGLEVEL_DB" : {
46-
"id" : 3,
47-
"separator": ":",
48-
"instance" : "redis"
49-
},
5045
"CONFIG_DB" : {
5146
"id" : 4,
5247
"separator": "|",

‎src/sonic-eventd/tests/redis_multi_db_ut_config/database_config0.json

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

‎src/sonic-eventd/tests/redis_multi_db_ut_config/database_config1.json

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

‎src/sonic-py-common/sonic_py_common/sonic_db_dump_load.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def do_load(options, args):
113113
parser.add_option('-A', '--use-expireat', help='use EXPIREAT rather than TTL/EXPIRE', action='store_true')
114114
else:
115115
parser.add_option('-l', '--load', help='load data into redis (default is to dump data from redis)', action='store_true')
116-
parser.add_option('-n', '--dbname', help='dump DATABASE (APPL_DB/ASIC_DB/COUNTERS_DB/LOGLEVEL_DB/CONFIG_DB...)')
116+
parser.add_option('-n', '--dbname', help='dump DATABASE (APPL_DB/ASIC_DB/COUNTERS_DB/CONFIG_DB...)')
117117
parser.add_option('-t', '--conntype', help='indicate redis connection type (tcp[default] or unix_socket)', default='tcp')
118118
parser.add_option('-k', '--keys', help='dump only keys matching specified glob-style pattern')
119119
parser.add_option('-o', '--output', help='write to OUTPUT instead of stdout (dump mode only)')

0 commit comments

Comments
 (0)
Please sign in to comment.