Skip to content
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

Merged

Conversation

rsarwad
Copy link
Contributor

@rsarwad rsarwad commented Mar 4, 2022

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

@rsarwad rsarwad requested review from a team and VinashakAnkitAman March 4, 2022 16:06
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines. label Mar 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2022

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: agw Access gateway-related issue label Mar 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2022

Oops! Looks like you failed the Semantic PR check.

Howto

♻️ Updated: ✅ The check is passing the Semantic PR after the last commit.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2022

Oops! Looks like you failed the Python Format Check.

Howto

♻️ Updated: ✅ The check is passing the Python Format Check after the last commit.

@rsarwad rsarwad force-pushed the rsarwad_fix_flow_verification_multi_pdn branch from 7cb9c06 to 091ef4e Compare March 4, 2022 16:14
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2022

Oops! Looks like you failed the DCO check. Be sure to sign all your commits.

Howto

♻️ Updated: ✅ The check is passing the DCO check after the last commit.

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
@rsarwad rsarwad force-pushed the rsarwad_fix_flow_verification_multi_pdn branch from 091ef4e to 31c250a Compare March 4, 2022 16:17
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2022

feg-workflow

    2 files  202 suites   33s ⏱️
363 tests 363 ✔️ 0 💤 0
377 runs  377 ✔️ 0 💤 0

Results for commit 31c250a.

@@ -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):
Copy link
Collaborator

@ssanadhya ssanadhya Mar 4, 2022

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?

@rsarwad
Copy link
Contributor Author

rsarwad commented Mar 4, 2022

After this change, flow rules are getting mapped correctly
dedicated, is the file in which flow rules are captured using below command

sudo ovs-ofctl dump-flows gtp_br0 table=0 >dedicated
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0xb dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0xc dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0xd dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0xe dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0xf dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0x10 dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0x11 dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4/8_ded$ grep -w load:0x12 dedicated | grep -c LOCAL
4

Earlier flow rules were not getting loaded correctly

vagrant@magma-dev-focal:~/2_bearer4$ grep load:0x2 dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4$ grep load:0x3 dedicated | grep -c LOCAL
21
vagrant@magma-dev-focal:~/2_bearer4$ grep load:0x4 dedicated | grep -c LOCAL
3
vagrant@magma-dev-focal:~/2_bearer4$ grep load:0x5 dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4$ grep load:0x6 dedicated | grep -c LOCAL
4
vagrant@magma-dev-focal:~/2_bearer4$ grep load:0x7 dedicated | grep -c LOCAL
25

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2022

agw-workflow

  54 files    84 suites   4m 20s ⏱️
738 tests 729 ✔️ 9 💤 0
923 runs  914 ✔️ 9 💤 0

Results for commit 31c250a.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@ssanadhya ssanadhya left a 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.

@ssanadhya ssanadhya merged commit c9aafd9 into magma:master Mar 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2022

Unit Test Results

157 files  157 suites   2h 10m 53s ⏱️
307 tests 303 ✔️ 3 💤 1

For more details on these failures, see this check.

Results for commit c9aafd9.

♻️ This comment has been updated with latest results.

@ssanadhya ssanadhya added the backport-v1.7 MME fixes to be backported for 1.7 label Mar 11, 2022
ardzoht pushed a commit that referenced this pull request Mar 30, 2022
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
emakeev pushed a commit to emakeev/magma that referenced this pull request Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v1.7 MME fixes to be backported for 1.7 component: agw Access gateway-related issue size/XS Denotes a PR that changes 0-9 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants