Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cfgmgr/natmgrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ int main(int argc, char **argv)
CFG_ACL_RULE_TABLE_NAME
};

DBConnector cfgDb(CONFIG_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
DBConnector appDb(APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
DBConnector stateDb(STATE_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
DBConnector cfgDb("CONFIG_DB", 0);
DBConnector appDb("APPL_DB", 0);
DBConnector stateDb("STATE_DB", 0);

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

Expand Down
4 changes: 2 additions & 2 deletions natsyncd/natsyncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ int main(int argc, char **argv)
{
Logger::linkToDbNative("natsyncd");

DBConnector appDb(APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
DBConnector appDb("APPL_DB", 0);
DBConnector stateDb("STATE_DB", 0);
RedisPipeline pipelineAppDB(&appDb);
DBConnector stateDb(STATE_DB, DBConnector::DEFAULT_UNIXSOCKET, 0);
NfNetlink nfnl;

nfnl.registerRecvCallbacks();
Expand Down
2 changes: 1 addition & 1 deletion orchagent/natorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ NatOrch::NatOrch(DBConnector *appDb, DBConnector *stateDb, vector<table_name_wit
Orch(appDb, tableNames),
m_neighOrch(neighOrch),
m_routeOrch(routeOrch),
m_countersDb(COUNTERS_DB, DBConnector::DEFAULT_UNIXSOCKET, 0),
m_countersDb("COUNTERS_DB", 0),
m_countersNatTable(&m_countersDb, COUNTERS_NAT_TABLE),
m_countersNaptTable(&m_countersDb, COUNTERS_NAPT_TABLE),
m_countersTwiceNatTable(&m_countersDb, COUNTERS_TWICE_NAT_TABLE),
Expand Down