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
6120295b
Commit
6120295b
authored
Jul 16, 2021
by
wangyongshou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add upf.conf
parent
ebc94684
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
12 deletions
+30
-12
scripts/build_upf.sh
scripts/build_upf.sh
+11
-0
scripts/config_upf.sh
scripts/config_upf.sh
+7
-0
scripts/install_upf.sh
scripts/install_upf.sh
+12
-12
No files found.
scripts/build_upf.sh
View file @
6120295b
#!/bin/bash
#!/bin/bash
###########################
#Project name: build_upf.conf
#Author: bupt
#Date: 2020-07-16
###########################
current
=
"
$PWD
"
current
=
"
$PWD
"
base
=
$(
dirname
"
$PWD
"
)
base
=
$(
dirname
"
$PWD
"
)
VPPPATH
=
"
$base
/src/vppe"
VPPPATH
=
"
$base
/src/vppe"
...
@@ -51,6 +61,7 @@ function config_file(){
...
@@ -51,6 +61,7 @@ function config_file(){
#etc
#etc
cp
-f
$configure
/template/n4_config.yaml
$UPFINSTALL
/etc
cp
-f
$configure
/template/n4_config.yaml
$UPFINSTALL
/etc
cp
-f
$configure
/template/vppe.conf
$UPFINSTALL
/etc
cp
-f
$configure
/template/vppe.conf
$UPFINSTALL
/etc
cp
-f
$configure
/upf.conf
$UPFINSTALL
/etc
#tools
#tools
cp
-f
/sbin/ethtool
$UPFINSTALL
/tools
cp
-f
/sbin/ethtool
$UPFINSTALL
/tools
...
...
scripts/config_upf.sh
View file @
6120295b
#!/bin/bash
#!/bin/bash
###########################
#Project name: config_upf.conf
#Author: bupt
#Date: 2020-07-16
###########################
current
=
"
$PWD
"
current
=
"
$PWD
"
base
=
$(
dirname
"
$PWD
"
)
base
=
$(
dirname
"
$PWD
"
)
...
...
scripts/install_upf.sh
View file @
6120295b
#!/bin/bash
#!/bin/bash
###########################
#Project name: install_upf.conf
#Author: bupt
#Date: 2020-07-16
###########################
current
=
"
$PWD
"
current
=
"
$PWD
"
base
=
$(
dirname
"
$PWD
"
)
base
=
$(
dirname
"
$PWD
"
)
ROOT_PATH
=
/opt/5gc/test
ROOT_PATH
=
/opt/5gc/test
<<
!
install
buptvppe
;
!
#PWD="/opt/5gc/upf"
function
pre_install
()
function
pre_install
()
{
{
if
[
!
-d
$ROOT_PATH
]
;
then
if
[
!
-d
$ROOT_PATH
]
;
then
...
@@ -34,10 +35,9 @@ function install_n4()
...
@@ -34,10 +35,9 @@ function install_n4()
function
install_buptvppe
()
function
install_buptvppe
()
{
{
killall vpp_main
killall vpp_main
#unpack
#unpack
echo
"unpack buptvpp.tar.gz start..."
sudo tar
-zxvf
$base
/pkg/buptvppe.tar.gz
-C
$base
/pkg
>
/dev/null 2>&1
;
sudo tar
-zxvf
$base
/pkg/buptvppe.tar.gz
-C
$base
/pkg
>
/dev/null 2>&1
;
echo
"unpack buptvpp.tar.gz finished!!!"
sleep
1
;
sleep
1
;
#install
#install
...
@@ -50,7 +50,6 @@ function install_buptvppe ()
...
@@ -50,7 +50,6 @@ function install_buptvppe ()
sudo rm
-rf
$base
/pkg/vpp_install
;
sudo rm
-rf
$base
/pkg/vpp_install
;
sudo rm
-rf
$base
/pkg/buptvppe.tar.gz
;
sudo rm
-rf
$base
/pkg/buptvppe.tar.gz
;
#cp /usr/bin/vpp ->/opt/5gc/bin
cp
-f
/usr/bin/vpp /
$ROOT_PATH
/bin
;
cp
-f
/usr/bin/vpp /
$ROOT_PATH
/bin
;
sleep
1
;
sleep
1
;
...
@@ -62,9 +61,10 @@ function install_buptvppe ()
...
@@ -62,9 +61,10 @@ function install_buptvppe ()
function
help
()
function
help
()
{
{
echo
"help---"
echo
"help---"
echo
"Usage: run_upf [OPTION]..."
echo
"Usage: install_upf [OPTION]..."
echo
"--vpp path(buptvpp.tar.gz) RUN vpp"
echo
"--all (vpp and n4) install vpp n4"
echo
"--n4 path(main) RUN N4"
echo
"--vpp path(buptvpp.tar.gz) install vpp"
echo
"--n4 path(main) install N4"
}
}
function
main
()
{
function
main
()
{
...
...
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