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
ZhouShuya
OpenXG-RAN
Commits
f17fc6da
Commit
f17fc6da
authored
Jun 27, 2020
by
MaheshK1995
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VNF/PNF mode set using --vnf --pnf options
parent
abefe1a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
.vscode/launch.json
.vscode/launch.json
+2
-2
common/config/config_load_configmodule.c
common/config/config_load_configmodule.c
+12
-0
executables/nr-softmodem.c
executables/nr-softmodem.c
+0
-2
No files found.
.vscode/launch.json
View file @
f17fc6da
...
...
@@ -26,7 +26,7 @@
"args"
:
[
"-E"
,
"-O "
,
"/home/glab/NR_nfapi/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/rcc.band78.tm1.106PRB.nfapi.conf"
,
"
2
"
],
"
--vnf
"
],
"stopAtEntry"
:
false
,
"cwd"
:
"${workspaceFolder}"
,
"environment"
:
[],
...
...
@@ -49,7 +49,7 @@
"args"
:
[
"-E"
,
"-O "
,
"/home/glab/NR_nfapi/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/oaiL1.nfapi.usrpx300.conf"
,
"
1
"
],
"
--pnf
"
],
"stopAtEntry"
:
false
,
"cwd"
:
"${workspaceFolder}"
,
"environment"
:
[],
...
...
common/config/config_load_configmodule.c
View file @
f17fc6da
...
...
@@ -44,6 +44,7 @@
#include "../utils/LOG/log.h"
#define CONFIG_SHAREDLIBFORMAT "libparams_%s.so"
extern
uint8_t
nfapi_mode
;
int
load_config_sharedlib
(
configmodule_interface_t
*
cfgptr
)
{
void
*
lib_handle
;
...
...
@@ -212,6 +213,17 @@ configmodule_interface_t *load_configmodule(int argc,
if
(
(
strcmp
(
argv
[
i
]
+
1
,
"h"
)
==
0
)
||
(
strstr
(
argv
[
i
]
+
1
,
"help_"
)
!=
NULL
)
)
{
tmpflags
=
CONFIG_HELP
;
}
if
(
strcmp
(
argv
[
i
],
"--vnf"
)
==
0
){
printf
(
"
\n
VNF ENABLED
\n
"
);
nfapi_mode
=
2
;
}
if
(
strcmp
(
argv
[
i
],
"--pnf"
)
==
0
){
printf
(
"
\n
PNF ENABLED
\n
"
);
nfapi_mode
=
1
;
}
}
/* look for the OAI_CONFIGMODULE environment variable */
...
...
executables/nr-softmodem.c
View file @
f17fc6da
...
...
@@ -794,8 +794,6 @@ int main( int argc, char **argv )
{
int
ru_id
,
CC_id
=
0
;
nfapi_mode
=
(
int
)
(
argv
[
argc
-
1
][
0
]
-
'0'
);
start_background_system
();
///static configuration for NR at the moment
...
...
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