Update NAT conntrack entries from natmgr instead of natorch#1274
Update NAT conntrack entries from natmgr instead of natorch#1274arlakshm merged 4 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
|
need vs test for this feature. |
|
…NiC/blob/master/doc/nat/nat_design_spec.md" Signed-off-by: Akhilesh Samineni akhilesh.samineni@broadcom.com
|
| SWSS_LOG_ERROR("Update %s NAT entry [ip %s]", natIter->second.nat_type.c_str(), natIter->first.to_string().c_str()); | ||
| std::vector<FieldValueTuple> fvVector; | ||
| std::string key = natIter->first.to_string(); | ||
| setTimeoutNotifier->send("SET-SINGLE-NAT", key, fvVector); |
There was a problem hiding this comment.
It looks like the Timeout value is set to max for active entries in queryhitBits(), why do we need to update the timeout here again
There was a problem hiding this comment.
The timeout is set to max value (432000) when entries got added in NatMgr code, in queryhitBits() we are deleting the entries which are not active. Here in this section of code (funtion updateAllConntrackEntries() ) called for every 86400 secs (1 day) to set all dynamic active entries conntrack timeout to Max value (432000).
…ifferent PR. Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
@arlakshm Added a new test case to verify the conntrack entries timeout value. |
|
Retest this please. |
|
@AkhileshSamineni Please create PR for 201911. Cherry-pick has conflict |
…#1274) * [consutil] Add UT for consutil clear command * Fix test cases Signed-off-by: Jing Kan jika@microsoft.com
…onic-net#1274) * Update NAT conntrack entries from natmgr instead of natorch Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
Approach:
Code changes:
NatSync:
NatMgr:
NatOrch:
Depends on:
sonic-net/sonic-utilities#892
sonic-net/sonic-buildimage#4596
Signed-off-by: Akhilesh Samineni akhilesh.samineni@broadcom.com