-
Notifications
You must be signed in to change notification settings - Fork 590
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
fix(agw): Creating unique port number for all dedicated bearers #11969
fix(agw): Creating unique port number for all dedicated bearers #11969
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the Semantic PR after the last commit. |
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the Python Format Check after the last commit. |
7cb9c06
to
091ef4e
Compare
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the DCO check after the last commit. |
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
091ef4e
to
31c250a
Compare
@@ -128,20 +128,21 @@ def test_attach_detach_maxbearers_twopdns(self): | |||
|
|||
print("Sleeping for 5 seconds") | |||
time.sleep(5) | |||
for i in range(loop): | |||
num_flows_per_bearer = 4 | |||
for idx in range(loop): |
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.
Can we rename loop
to a more intuitive variable name, such as num_ims_dedicated_bearers
?
After this change, flow rules are getting mapped correctly
Earlier flow rules were not getting loaded correctly
|
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.
Lgtm, verified that make integ_test
is passing with this change.
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…a#11969) Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
fix(agw): Creating unique port number for all dedicated bearers
Summary
On master code base, test case, test test_attach_detach_maxbearers_twopdns.py was failing because, as part of this TC, first PDN is created as part of attach and the dedicated bearer is created with 4 packet filters with port number 5001, 5002, 5003 and 5004.
In next step, secondary PDN is created along with 8 dedicated bearers starting same port numbers.
Since port numbers are same; most of the packet filters have loaded to secondary PDN's default bearer.
Now added logic to assign unique port number for all packet filters of dedicated bearer
Test Plan
Executed test_attach_detach_maxbearers_twopdns.py multiple times
Additional Information
Checking for other test case for which same port numbers are assigned for different dedicated bearer