Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
OpenXG
OpenXG-UPF
Commits
669f7bc7
Commit
669f7bc7
authored
Jun 28, 2021
by
wangyongshou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add param:N3_GW
parent
2c56626a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
etc/template/startup_debug.template
etc/template/startup_debug.template
+2
-1
etc/upf.yaml
etc/upf.yaml
+1
-0
scripts/run_upf.sh
scripts/run_upf.sh
+5
-1
No files found.
etc/template/startup_debug.template
View file @
669f7bc7
...
...
@@ -53,7 +53,8 @@ dpdk {
ipaddr @N3_IP@
netmask 24
gateway 192.168.2.197
gateway @N3_GW@
}
dev @PCI_ADDR_ID_EXPORT@
...
...
etc/upf.yaml
View file @
669f7bc7
...
...
@@ -3,6 +3,7 @@ vpp:
gtpu_entry_ip
:
192.168.2.182
gtpu_export_ip
:
192.168.2.22
ip_link
:
N3_GW
:
192.168.2.199
vppHostIP
:
192.168.2.1
gtpu_entry
:
ens33
gtpu_export
:
ens34
...
...
scripts/run_upf.sh
View file @
669f7bc7
...
...
@@ -29,7 +29,7 @@ SNAT_IP=""
VPPHOST
=
""
DPDK_EXPORT
=
""
DPDK_ENTRY
=
""
N3_GW
=
""
DPDK_ENTRY_PCI
=
""
DPDK_EXPORT_PCI
=
""
...
...
@@ -44,10 +44,14 @@ function init_configure(){
cp
$base
/plugin/yq
$current
# nat
SNAT_IP
=
$(
$current
/yq r
$yaml
vpp.ip_link.snatIP
)
N3_GW_IP
=
$(
$current
/yq r
$yaml
vpp.ip_link.N3_GW
)
VPPHOST
=
$(
$current
/yq r
$yaml
vpp.ip_link.vppHost
)
DPDK_EXPORT
=
$(
$current
/yq r
$yaml
vpp.ip_link.gtpu_export
)
DPDK_ENTRY
=
$(
$current
/yq r
$yaml
vpp.ip_link.gtpu_entry
)
CPUNUMBER
=
$(
$current
/yq r
$yaml
vpp.ip_link.cpu
)
sed
's/@N3_GW@/${N3_GW_IP}/'
/opt/5gc/startup_debug.conf
rm
-rf
$current
/yq
}
...
...
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