[intfsorch] Retrieve Port object before setting NAT zone on router in…#1372
[intfsorch] Retrieve Port object before setting NAT zone on router in…#1372arlakshm merged 7 commits intosonic-net:masterfrom
Conversation
|
retest this please |
|
restest this please |
|
|
||
| /* Set nat zone id */ | ||
| if ((!nat_zone.empty()) and (port.m_nat_zone_id != nat_zone_id)) | ||
| if (gPortsOrch->getPort(alias, port)) |
There was a problem hiding this comment.
this gPortsOrch->getPort(alias, port))check is already done above( line 665). Why do we need to do the check here again ?
There was a problem hiding this comment.
@arlakshm RIF objects are created in setIntf() before calling set_nat_zone API and the RIF object handle is set in port.m_rif_id. To get the Port object with rif handle, getPort() is invoked before setting the NAT zone.
|
Retest vs please |
|
retest this please |
2 similar comments
|
retest this please |
|
retest this please |
|
looks like this is required for 201911 as well, correct? |
@prsunny, yes this is required for 201911. I have added the label. |
|
retest this please |
|
retest this please |
|
@arlakshm Will wait for PR#1411 for 201911 first and then cherry-pick this. |
…terfaces. (#1372) Method(setRouterIntfsNatZoneId) is called using local Port object that causes orchagent to crash on config reload with non-zero NAT zone configuration. Orchagent: Retrieve Port object using getPort method before setting NAT zone on Router interfaces. Addressing the issue : #1312 Signed-off-by: Kumaresh Perumal [email protected]
- What I did Added unit tests for ecnconfig command Updated 'show ecn' command to use run_command wrapper Updated 'config ecn' command to allow configuration of drop probabilities Cleanup trailing spaces in ecnconfig script and add hooks to support unit tests - How to verify it Ran the new ecn_test.py and it passed Signed-off-by: Neetha John <[email protected]>
…terfaces. (sonic-net#1372) Method(setRouterIntfsNatZoneId) is called using local Port object that causes orchagent to crash on config reload with non-zero NAT zone configuration. Orchagent: Retrieve Port object using getPort method before setting NAT zone on Router interfaces. Addressing the issue : sonic-net#1312 Signed-off-by: Kumaresh Perumal [email protected]
Method(setRouterIntfsNatZoneId) is called using local Port object that causes orchagent to crash on config reload with non-zero NAT zone configuration.
Orchagent:
Retrieve Port object using getPort method before setting NAT zone on Router interfaces.
Addressing the issue : #1312
Signed-off-by: Kumaresh Perumal [email protected]