Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oai-cn5g-fed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
cn5g
oai-cn5g-fed
Commits
5cec841e
Commit
5cec841e
authored
3 years ago
by
Sagar Arora
Browse files
Options
Downloads
Patches
Plain Diff
(docs) updated typo
parent
83090e80
No related branches found
No related tags found
1 merge request
!37
(docs) Static ue ip-address tutorial
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/DEPLOY_SA5G_BASIC_STATIC_UE_IP.md
+1
-1
1 addition, 1 deletion
docs/DEPLOY_SA5G_BASIC_STATIC_UE_IP.md
scripts/tutorial_check.py
+0
-104
0 additions, 104 deletions
scripts/tutorial_check.py
with
1 addition
and
105 deletions
docs/DEPLOY_SA5G_BASIC_STATIC_UE_IP.md
+
1
−
1
View file @
5cec841e
...
...
@@ -7,7 +7,7 @@
</a>
</td>
<td
style=
"border-collapse: collapse; border: none; vertical-align: center;"
>
<b><font
size =
"5"
>
OpenAirInterface 5G Core Network
Basic Deployment using Docker-Compose
</font></b>
<b><font
size =
"5"
>
OpenAirInterface 5G Core Network
Static UE IP Address Allocation
</font></b>
</td>
</tr>
</table>
...
...
This diff is collapsed.
Click to expand it.
scripts/tutorial_check.py
deleted
100644 → 0
+
0
−
104
View file @
83090e80
"""
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the
"
License
"
); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an
"
AS IS
"
BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
------------------------------------------------------------------------------
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
------------------------------------------------------------------------------
"""
from
subprocess
import
PIPE
,
STDOUT
import
time
import
subprocess
import
logging
import
argparse
import
re
import
markdown
from
bs4
import
BeautifulSoup
,
NavigableString
,
Tag
DOCUMENT_FOLDER
=
'
../docs
'
SLEEP_BETWEEN_COMMANDS
=
5
SLEEP_BETWEEN_HEADERS
=
30
filename
=
'
../docs/DEPLOY_SA5G_BASIC_STATIC_UE_IP.md
'
def
subprocess_call
(
command
,
cwd
=
None
):
'''
:command: list
:cwd str current working directory
return resp dict
'''
print
(
command
)
try
:
if
cwd
is
not
None
:
process
=
subprocess
.
run
(
command
,
cwd
=
cwd
,
stdout
=
PIPE
,
stderr
=
STDOUT
,
check
=
True
)
else
:
process
=
subprocess
.
run
(
command
,
stdout
=
PIPE
,
stderr
=
STDOUT
,
check
=
True
)
except
Exception
as
e
:
reason
=
"
Exception <<{}>> while executing the command {}
"
.
format
(
str
(
e
),
command
)
resp
=
{
'
status
'
:
1
,
'
reason
'
:
reason
}
return
resp
if
process
.
returncode
==
0
:
resp
=
{
'
status
'
:
0
,
'
output
'
:
""
}
if
process
.
stdout
is
not
None
:
out
=
process
.
stdout
.
decode
()
resp
=
{
'
status
'
:
0
,
'
output
'
:
out
}
else
:
if
process
.
stdout
is
not
None
:
out
=
process
.
stdout
.
decode
()
resp
=
{
'
status
'
:
1
,
'
reason
'
:
out
}
elif
process
.
stderr
is
not
None
:
error
=
process
.
stderr
.
decode
()
resp
=
{
'
status
'
:
1
,
'
reason
'
:
error
}
else
:
resp
=
{
'
status
'
:
1
,
'
reason
'
:
'
Undetermine
'
}
return
resp
with
open
(
filename
,
'
r
'
)
as
f
:
text
=
f
.
read
()
html
=
markdown
.
markdown
(
text
)
soup
=
BeautifulSoup
(
html
,
'
html.parser
'
)
for
header
in
soup
.
find_all
(
'
h2
'
):
print
(
header
.
get_text
())
nextNode
=
header
while
True
:
nextNode
=
nextNode
.
nextSibling
if
nextNode
is
None
:
break
if
isinstance
(
nextNode
,
NavigableString
):
pass
if
isinstance
(
nextNode
,
Tag
):
if
nextNode
.
name
==
"
h2
"
:
break
text
=
nextNode
.
get_text
()
if
text
.
split
(
'
\n
'
)[
0
]
==
'
shell
'
:
commands
=
re
.
findall
(
r
"
docker-compose-host \$: (.*)
"
,
text
)
for
command
in
commands
:
print
(
"
Executing the command %s
"
%
(
command
))
output
=
subprocess_call
(
command
=
command
.
split
(
'
'
),
cwd
=
'
../docker-compose
'
)
print
(
"
Output of the command %s
"
%
(
output
))
time
.
sleep
(
SLEEP_BETWEEN_COMMANDS
)
time
.
sleep
(
SLEEP_BETWEEN_HEADERS
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment