Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-Spgwu-Tiny-Simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-Spgwu-Tiny-Simple
Commits
4e909658
Commit
4e909658
authored
Aug 28, 2020
by
lionelgo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Config file: hardcoded instance to 0, changed SGi iface name prefix from SGW to PGW
parent
99d49e4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
ci-scripts/generateConfigFiles.py
ci-scripts/generateConfigFiles.py
+2
-2
etc/spgw_u.conf
etc/spgw_u.conf
+3
-7
No files found.
ci-scripts/generateConfigFiles.py
View file @
4e909658
...
...
@@ -61,7 +61,7 @@ class spgwuConfigGen():
spgwuFile
.
write
(
'SPGWU_CONF[@SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP@]=
\'
'
+
self
.
s1u_name
+
'
\'\n
'
)
spgwuFile
.
write
(
'SPGWU_CONF[@SGW_INTERFACE_NAME_FOR_SX@]=
\'
'
+
self
.
sxu_name
+
'
\'\n
'
)
# SGI is fixed on SGI
spgwuFile
.
write
(
'SPGWU_CONF[@
S
GW_INTERFACE_NAME_FOR_SGI@]=
\'
eth0
\'\n
'
)
spgwuFile
.
write
(
'SPGWU_CONF[@
P
GW_INTERFACE_NAME_FOR_SGI@]=
\'
eth0
\'\n
'
)
spgwuFile
.
write
(
'SPGWU_CONF[@SPGWC0_IP_ADDRESS@]=
\'
'
+
self
.
spgwc0_ip_addr
+
'
\'\n
'
)
spgwuFile
.
write
(
'
\n
'
)
spgwuFile
.
write
(
'for K in "${!SPGWU_CONF[@]}"; do
\n
'
)
...
...
@@ -78,7 +78,7 @@ class spgwuConfigGen():
spgwuFile
.
write
(
'PID_DIRECTORY=/var/run
\n
'
)
spgwuFile
.
write
(
'SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP='
+
self
.
s1u_name
+
'
\n
'
)
spgwuFile
.
write
(
'SGW_INTERFACE_NAME_FOR_SX='
+
self
.
sxu_name
+
'
\n
'
)
spgwuFile
.
write
(
'
S
GW_INTERFACE_NAME_FOR_SGI=eth0
\n
'
)
spgwuFile
.
write
(
'
P
GW_INTERFACE_NAME_FOR_SGI=eth0
\n
'
)
spgwuFile
.
write
(
'SPGWC0_IP_ADDRESS='
+
self
.
spgwc0_ip_addr
+
'
\n
'
)
spgwuFile
.
close
()
...
...
etc/spgw_u.conf
View file @
4e909658
...
...
@@ -20,7 +20,7 @@
################################################################################
SPGW
-
U
=
{
INSTANCE
=
@
INSTANCE
@
;
# 0 is the default
INSTANCE
=
0
;
# 0 is the default
PID_DIRECTORY
=
"@PID_DIRECTORY@"
;
# /var/run is the default
#ITTI_TASKS :
...
...
@@ -82,7 +82,7 @@ SPGW-U =
SGI
:
{
# No config to set, the software will set the SGi interface to the interface used for the default route.
INTERFACE_NAME
=
"@
S
GW_INTERFACE_NAME_FOR_SGI@"
;
# STRING, interface name or "default_gateway"
INTERFACE_NAME
=
"@
P
GW_INTERFACE_NAME_FOR_SGI@"
;
# STRING, interface name or "default_gateway"
IPV4_ADDRESS
=
"read"
;
# STRING, CIDR or "read" to let app read interface configured IP address
#SCHED_PARAMS :
#{
...
...
@@ -94,11 +94,7 @@ SPGW-U =
};
PDN_NETWORK_LIST
= (
{
NETWORK_IPV4
=
"12.1.1.0/24"
;
NETWORK_IPV6
=
"2001:1:2::0/64"
;
SNAT
=
"yes"
;},
{
NETWORK_IPV4
=
"12.1.2.0/24"
;
SNAT
=
"no"
;},
{
NETWORK_IPV4
=
"192.169.0.0/24"
;
SNAT
=
"no"
;},
{
NETWORK_IPV4
=
"192.170.0.0/24"
;
SNAT
=
"no"
;},
{
NETWORK_IPV4
=
"192.171.0.0/24"
;
SNAT
=
"no"
;}
{
NETWORK_IPV4
=
"@NETWORK_UE_IP@"
;
SNAT
=
"no"
;}
);
SPGW
-
C_LIST
= (
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment