Skip to content

Commit

Permalink
Multi-Db changes for NAT feature. (#1202)
Browse files Browse the repository at this point in the history
* Multi-Db changes for NAT feature in sonic-swss repo.

Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
  • Loading branch information
AkhileshSamineni authored Mar 8, 2020
1 parent 884507b commit 586886b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 586886b

Please sign in to comment.