Skip to content

Commit 586886b

Browse files
Multi-Db changes for NAT feature. (#1202)
* Multi-Db changes for NAT feature in sonic-swss repo. Signed-off-by: Akhilesh Samineni <[email protected]>
1 parent 884507b commit 586886b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cfgmgr/natmgrd.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ int main(int argc, char **argv)
118118
CFG_ACL_RULE_TABLE_NAME
119119
};
120120

121-
DBConnector cfgDb(CONFIG_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
122-
DBConnector appDb(APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
123-
DBConnector stateDb(STATE_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
121+
DBConnector cfgDb("CONFIG_DB", 0);
122+
DBConnector appDb("APPL_DB", 0);
123+
DBConnector stateDb("STATE_DB", 0);
124124

125125
cleanupNotifier = std::make_shared<swss::NotificationProducer>(&appDb, "NAT_DB_CLEANUP_NOTIFICATION");
126126

natsyncd/natsyncd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ int main(int argc, char **argv)
1515
{
1616
Logger::linkToDbNative("natsyncd");
1717

18-
DBConnector appDb(APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
18+
DBConnector appDb("APPL_DB", 0);
19+
DBConnector stateDb("STATE_DB", 0);
1920
RedisPipeline pipelineAppDB(&appDb);
20-
DBConnector stateDb(STATE_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
2121
NfNetlink nfnl;
2222

2323
nfnl.registerRecvCallbacks();

orchagent/natorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ NatOrch::NatOrch(DBConnector *appDb, DBConnector *stateDb, vector<table_name_wit
4545
Orch(appDb, tableNames),
4646
m_neighOrch(neighOrch),
4747
m_routeOrch(routeOrch),
48-
m_countersDb(COUNTERS_DB, DBConnector::DEFAULT_UNIXSOCKET, 0),
48+
m_countersDb("COUNTERS_DB", 0),
4949
m_countersNatTable(&m_countersDb, COUNTERS_NAT_TABLE),
5050
m_countersNaptTable(&m_countersDb, COUNTERS_NAPT_TABLE),
5151
m_countersTwiceNatTable(&m_countersDb, COUNTERS_TWICE_NAT_TABLE),

0 commit comments

Comments
 (0)