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
1
Merge Requests
1
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-RAN
Commits
07bab2a7
Commit
07bab2a7
authored
Feb 03, 2025
by
Teodora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get the current sync status from operational datastore
parent
fb670db9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
radio/fhi_72/mplane/init-mplane.c
radio/fhi_72/mplane/init-mplane.c
+8
-0
No files found.
radio/fhi_72/mplane/init-mplane.c
View file @
07bab2a7
...
...
@@ -22,6 +22,7 @@
#include "init-mplane.h"
#include "radio/fhi_72/oran-params.h"
#include "get-mplane.h"
#include "xml/get-xml.h"
#include <libyang/libyang.h>
#include <nc_client.h>
...
...
@@ -139,6 +140,13 @@ bool manage_ru(ru_session_t *ru_session, const openair0_config_t *oai, const siz
success
=
get_mplane
(
ru_session
,
&
operational_ds
);
AssertError
(
success
,
return
false
,
"[MPLANE] Unable to continue: could not get RU answer via get_mplane().
\n
"
);
bool
ptp_state
=
false
;
const
char
*
sync_state
=
get_ru_xml_node
(
operational_ds
,
"sync-state"
);
if
(
strcmp
(
sync_state
,
"LOCKED"
)
==
0
)
{
MP_LOG_I
(
"RU is already PTP synchronized.
\n
"
);
ptp_state
=
true
;
}
free
(
operational_ds
);
return
true
;
...
...
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