-
Notifications
You must be signed in to change notification settings - Fork 51
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
[UPG-NAT] Controlled CG-NAT #122
Changes from all commits
1266c4e
cd605c5
df03b2b
7274c27
5cbd250
356c734
006f706
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,10 @@ def tdf_setup_cmds(cls): | |
r"^https?://(.*\\.)*(example)\\.com/", | ||
"upf application TST rule 3001 add ipfilter " + | ||
"permit out ip from %s to assigned" % APP_RULE_IP_V4, | ||
"nat44 enable sessions 1024 endpoint-dependent", | ||
"upf nat pool 78.32.0.2 - 78.32.0.25 block_size 512 nwi sgi name testing", | ||
"upf nat pool 78.32.20.2 - 78.32.20.25 block_size 512 nwi sgi name not-testing", | ||
"upf ueip pool nwi sgi id mypool", | ||
] | ||
|
||
@classmethod | ||
|
@@ -114,6 +118,10 @@ def pgw_setup_cmds(cls): | |
(cls.if_sgi.remote_ip4, cls.if_sgi.name), | ||
"upf gtpu endpoint ip %s nwi cp teid 0x80000000/2" % cls.if_cp.local_ip4, | ||
"upf gtpu endpoint ip %s nwi epc teid 0x80000000/2" % cls.if_grx.local_ip4, | ||
"nat44 enable sessions 1024 endpoint-dependent", | ||
"upf nat pool 78.32.0.2 - 78.32.0.25 block_size 512 nwi sgi name testing", | ||
"upf nat pool 78.32.20.2 - 78.32.20.25 block_size 512 nwi sgi name not-testing", | ||
"upf ueip pool nwi sgi id mypool", | ||
] | ||
|
||
@property | ||
|
@@ -359,7 +367,10 @@ def associate(self): | |
IE_NodeId(id_type="FQDN", id="ergw") | ||
]), PFCPAssociationSetupResponse) | ||
self.assertEqual(CauseValues[resp[IE_Cause].cause], "Request accepted") | ||
self.assertIn(b"vpp", resp[IE_EnterpriseSpecific].data) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this change somehow related to this PR? This is actually a problem (#104), as the build id should contain There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In general, association setup response checks should be enhanced with:
|
||
#FIXME: There are new 3GPP and BBF PFCP IEs introduced, need changes to | ||
# scapy pfcp module since decoding is done wrong for TP/BBF IEs | ||
#FIXME: Proper build ID handling required | ||
#self.assertIn(b"vpp", resp[IE_EnterpriseSpecific].data) | ||
if IE_NodeId in resp: | ||
if resp[IE_NodeId].id_type is 2: | ||
self.assertEqual(resp[IE_NodeId].id, b"upg") | ||
|
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.
vendor IEs should go after 3GPP IEs
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.
moved