Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oai-upf-6g
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
OpenXG
oai-upf-6g
Commits
fbb35713
Commit
fbb35713
authored
Apr 11, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: fix small issue with the healthcheck
parent
fe6b8b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
scripts/healthcheck.sh
scripts/healthcheck.sh
+4
-4
No files found.
scripts/healthcheck.sh
View file @
fbb35713
...
...
@@ -71,7 +71,7 @@ check_configuration_file() {
check_n3_xdp_program
()
{
local
interface_name
=
"
$1
"
# Retrieve the XDP program ID associated with the n3 interface
XDP_PROGRAM_ID
=
$(
ip
link
show
$interface_name
|
grep
-oP
'prog/xdp id \K\d+'
)
XDP_PROGRAM_ID
=
$(
ip
link
show
dev
$interface_name
|
grep
-oP
'prog/xdp id \K\d+'
)
if
[[
-z
"
$XDP_PROGRAM_ID
"
]]
;
then
echo
"Healthcheck error: XDP program ID not found for
$interface_name
interface."
...
...
@@ -79,7 +79,7 @@ check_n3_xdp_program() {
fi
# Retrieve the program name associated with the XDP program ID from bpftool
XDP_PROGRAM_NAME
=
$(
/openair-upf/bin/bpftool prog list |
grep
-
B
0
"
$XDP_PROGRAM_ID
"
|
awk
'{print $4}'
)
XDP_PROGRAM_NAME
=
$(
/openair-upf/bin/bpftool prog list |
grep
-
w
"
$XDP_PROGRAM_ID
"
|
awk
'{print $4}'
)
if
[[
-z
"
$XDP_PROGRAM_NAME
"
]]
;
then
echo
"Healthcheck error: XDP program name not found for
$interface_name
interface."
...
...
@@ -101,7 +101,7 @@ check_n3_xdp_program() {
check_n6_xdp_program
()
{
local
interface_name
=
"
$1
"
# Retrieve the XDP program ID associated with the n6 interface
XDP_PROGRAM_ID
=
$(
ip
link
show
$interface_name
|
grep
-oP
'prog/xdp id \K\d+'
)
XDP_PROGRAM_ID
=
$(
ip
link
show
dev
$interface_name
|
grep
-oP
'prog/xdp id \K\d+'
)
if
[[
-z
"
$XDP_PROGRAM_ID
"
]]
;
then
echo
"Healthcheck error: XDP program ID not found for
$interface_name
interface."
...
...
@@ -109,7 +109,7 @@ check_n6_xdp_program() {
fi
# Retrieve the program name associated with the XDP program ID from bpftool
XDP_PROGRAM_NAME
=
$(
/openair-upf/bin/bpftool prog list |
grep
-
B
0
"
$XDP_PROGRAM_ID
"
|
awk
'{print $4}'
)
XDP_PROGRAM_NAME
=
$(
/openair-upf/bin/bpftool prog list |
grep
-
w
"
$XDP_PROGRAM_ID
"
|
awk
'{print $4}'
)
if
[[
-z
"
$XDP_PROGRAM_NAME
"
]]
;
then
echo
"Healthcheck error: XDP program name not found for interface_name interface."
...
...
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