-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[201911] Update nat entries to use nat_type to support DNAT Pool changes. #1297
Conversation
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
Retest this please. |
test this please. |
|
||
/* Add DnatPool entry to APPL_DB*/ | ||
SWSS_LOG_INFO("Adding dnat pool entry for %s", m_staticNaptEntry[key].local_ip.c_str()); | ||
addDnatPoolEntry(m_staticNaptEntry[key].local_ip); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need DNAT pool entry for the local_ip? I believe DNAT pool lookup is required only for the translated global ip before DNAT/DNAPT table lookup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User can configure the local IP as the translated source IP in the SNAT direction. Hence in the reverse DNAT direction, we need the DNAT Pool entry for the local IP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kperumalbfn, wondering if this PR looks OK? Thanks.
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
@rlhui @kperumalbfn Compilation is failing with below error which is unrelated to our PR changes, not sure what could be reason for this failure. [2020-05-31 02:02:27] [build] fpmsyncd.cpp:3:10: fatal error: logger.h: No such file or directory I see some other PR (#1305) also failing with same error. |
@rlhui Any known issue with "logger.h" include file? Can we restart the sanity?? |
Retest this please |
retest this please |
@AkhileshSamineni , please check LGTM failures, thanks. |
@kperumalbfn you are right that it is the same issue, @rlhui you can ignore the LGTM result for this PR as it is not properly set up to build with 201911. |
Remove redundant 'pcie-' prefix from subcommands Note this will also require an update to files/image_config/pcie-check/pcie-check.sh in sonic-buildimage. Also, since these commands require sudo, they need to be added to the read-only commands in the sudoers file, which they have not yet been.
Code changes:
NatMgr:
NatOrch:
Addressing the issue - #1234
Depends on :
sonic-net/sonic-utilities#921
sonic-net/sonic-sairedis#616
sonic-net/sonic-swss-common#354
Signed-off-by: Akhilesh Samineni akhilesh.samineni@broadcom.com