Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
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
canghaiwuhen
OpenXG-RAN
Commits
a9dd2b28
Commit
a9dd2b28
authored
Nov 27, 2020
by
Remi Hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding files for fr1 semi auto
parent
6b8eb372
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
0 deletions
+129
-0
ci-scripts/build_fr1_from_yaml.py
ci-scripts/build_fr1_from_yaml.py
+83
-0
ci-scripts/build_fr1_template.yaml
ci-scripts/build_fr1_template.yaml
+46
-0
No files found.
ci-scripts/build_fr1_from_yaml.py
0 → 100755
View file @
a9dd2b28
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 7 23:04:51 2020
@author: hardy
"""
import
yaml
import
sys
import
subprocess
def
main
():
f_yaml
=
sys
.
argv
[
1
]
f_sh
=
sys
.
argv
[
2
]
#filename='py_params_template.yaml'
with
open
(
f_yaml
,
'r'
)
as
file
:
# The FullLoader parameter handles the conversion from YAML
# scalar values to Python the dictionary format
print
(
'Loading '
+
f_yaml
)
params
=
yaml
.
load
(
file
,
Loader
=
yaml
.
FullLoader
)
with
open
(
f_sh
,
'w'
)
as
f
:
f
.
write
(
'#!/bin/sh
\n
'
)
for
i
in
range
(
0
,
len
(
params
[
'steps'
])):
step
=
params
[
'steps'
][
i
].
split
(
','
)
mode
=
step
[
0
]
f_xml
=
step
[
1
]
line
=
'python3 main.py '
+
\
'--mode='
+
mode
+
' '
+
\
'--ranRepository='
+
params
[
'ranRepository'
]
+
' '
+
\
'--ranBranch='
+
params
[
'ranBranch'
]
+
' '
+
\
'--ranCommitID='
+
params
[
'ranCommitID'
]
+
' '
+
\
'--ranAllowMerge='
+
params
[
'ranAllowMerge'
]
+
' '
+
\
'--ranTargetBranch='
+
params
[
'ranTargetBranch'
]
+
' '
+
\
\
'--ADBIPAddress='
+
params
[
'ADB'
][
'ADBIPAddress'
]
+
' '
+
\
'--ADBUserName='
+
params
[
'ADB'
][
'ADBUserName'
]
+
' '
+
\
'--ADBPassword='
+
params
[
'ADB'
][
'ADBPassword'
]
+
' '
+
\
\
'--UEIPAddress='
+
params
[
'UE'
][
'UEIPAddress'
]
+
' '
+
\
'--UEUserName='
+
params
[
'UE'
][
'UEUserName'
]
+
' '
+
\
'--UEPassword='
+
params
[
'UE'
][
'UEPassword'
]
+
' '
+
\
'--UESourceCodePath='
+
params
[
'UE'
][
'UESourceCodePath'
]
+
' '
+
\
\
'--EPCIPAddress='
+
params
[
'EPC'
][
'EPCIPAddress'
]
+
' '
+
\
'--EPCUserName='
+
params
[
'EPC'
][
'EPCUserName'
]
+
' '
+
\
'--EPCPassword='
+
params
[
'EPC'
][
'EPCPassword'
]
+
' '
+
\
'--EPCSourceCodePath='
+
params
[
'EPC'
][
'EPCSourceCodePath'
]
+
' '
+
\
'--EPCType='
+
params
[
'EPC'
][
'EPCType'
]
+
' '
+
\
\
'--eNBIPAddress='
+
params
[
'RAN'
][
0
][
'eNBIPAddress'
]
+
' '
+
\
'--eNBUserName='
+
params
[
'RAN'
][
0
][
'eNBUserName'
]
+
' '
+
\
'--eNBPassword='
+
params
[
'RAN'
][
0
][
'eNBPassword'
]
+
' '
+
\
'--eNBSourceCodePath='
+
params
[
'RAN'
][
0
][
'eNBSourceCodePath'
]
+
' '
+
\
\
'--eNB1IPAddress='
+
params
[
'RAN'
][
1
][
'eNB1IPAddress'
]
+
' '
+
\
'--eNB1UserName='
+
params
[
'RAN'
][
1
][
'eNB1UserName'
]
+
' '
+
\
'--eNB1Password='
+
params
[
'RAN'
][
1
][
'eNB1Password'
]
+
' '
+
\
'--eNB1SourceCodePath='
+
params
[
'RAN'
][
1
][
'eNB1SourceCodePath'
]
+
' '
if
mode
!=
"InitiateHtml"
:
line
+=
'--XMLTestFile='
+
f_xml
#if mode is InitiateHTML we have a special processing to mention all xml files from the list
#loop starting at 1 to avoid the xml file mentioned with InitiateHtml in yaml file (file is none)
else
:
for
i
in
range
(
1
,
len
(
params
[
'steps'
])):
step
=
params
[
'steps'
][
i
].
split
(
','
)
f_xml
=
step
[
1
]
line
+=
'--XMLTestFile='
+
f_xml
+
' '
line
+=
'
\n
'
print
(
line
)
f
.
write
(
line
)
subprocess
.
call
([
'chmod'
,
'777'
,
f_sh
])
if
__name__
==
"__main__"
:
main
()
ci-scripts/build_fr1_template.yaml
0 → 100755
View file @
a9dd2b28
ranRepository
:
https://gitlab.eurecom.fr/oai/openairinterface5g.git
ranBranch
:
integration_wk48_2
ranCommitID
:
b16d7b2eedae6cb3bd44ea91f2efddc2d132dfbe
ranAllowMerge
:
'
true'
ranTargetBranch
:
develop
steps
:
-
InitiateHtml,none
-
TesteNB,xml_files/fr1_multi_node_build.xml
-
TesteNB,xml_files/fr1_epc_start.xml
-
TesteNB,xml_files/fr1_ran_ue_proc.xml
#ue toggle, nodes initialize, ue toggle, ping, nodes terminate
-
TesteNB,xml_files/fr1_epc_closure.xml
ADB
:
#on Caracal
ADBIPAddress
:
192.168.18.196
ADBUserName
:
oaici
ADBPassword
:
KkexF6CErOi1fNuebCPsuIVK
RAN
:
-
eNBIPAddress
:
192.168.18.199
#eNB on Minimassive
eNBUserName
:
oaicicd
eNBPassword
:
HzB*nkryaITdVd08TKlT#2Z5a!7M#~qn
eNBSourceCodePath
:
/tmp/CI-FR1-eNB
-
eNB1IPAddress
:
192.168.18.198
#gNB on Mozart
eNB1UserName
:
oaicicd
eNB1Password
:
7zkDOFgh@w3HvRBMPTMh@BAx
eNB1SourceCodePath
:
/tmp/CI-FR1-gNB
EPC
:
#on Nikaia
EPCIPAddress
:
192.168.18.99
EPCUserName
:
nikaia
EPCPassword
:
linux
EPCSourceCodePath
:
/tmp/CI-FR1-EPC
EPCType
:
ltebox
UE
:
UEIPAddress
:
none
UEUserName
:
none
UEPassword
:
none
UESourceCodePath
:
none
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