Repository navigation
feat(conf): make the E2AP and E42 ports configurable - #9
Merged
teodora-vladic merged 2 commits intoNov 18, 2026
Merged
Conversation
Collaborator
|
CI Build: #49 | Passed |
teodora-vladic
requested changes
Oct 19, 2026
teodora-vladic
left a comment
Collaborator
There was a problem hiding this comment.
Remove
ctest fails 2 of 13 cases on this base commit for an unrelated reason (the
agent-ric tests load the installed service model plugins from
/usr/local/lib/flexric, which came from a different build); the same 2 fail
before and after, with no new failures.
from the commit message. And anything additional unnecessary produced by AI
Collaborator
Thecave3
added a commit
to Thecave3/openairinterface5g
that referenced
this pull request
Oct 27, 2026
Add an optional near_ric_port parameter to the e2_agent section, next to near_ric_ip_addr, and pass it to FlexRIC as fr_args_t.e2ap_port in nr-softmodem and nr-cuup. When it is not set the value stays 0 and FlexRIC applies its own default (36421), so existing configurations are unchanged. Values outside 1..65535 are rejected. The README documents the parameter and, in the O-RAN SC section, replaces the instruction to edit e2ap_server_port and recompile. The paramdef table is wrapped in clang-format off/on like the other *_paramdef.h tables. Requires the FlexRIC change that adds e2ap_port to fr_args_t (duranta-project/flexric#9); the submodule has to be bumped past it. Assisted-by: Claude:Sonnet 5.5 Signed-off-by: Andrea Lacava <thecave003@gmail.com>
Thecave3
force-pushed
the
configurable-e2ap-port
branch
from
October 27, 2026 15:12
dc73850 to
1700478
Compare
Thecave3
force-pushed
the
configurable-e2ap-port
branch
from
October 27, 2026 15:15
1700478 to
a6cf2b2
Compare
Collaborator
|
CI Build: #66 | Passed |
Thecave3
force-pushed
the
configurable-e2ap-port
branch
from
November 2, 2026 23:26
a6cf2b2 to
473c68b
Compare
Collaborator
|
CI Build: #80 | Passed |
teodora-vladic
left a comment
Collaborator
There was a problem hiding this comment.
Please address two comments below, rebase and I'll merge.
Thecave3
force-pushed
the
configurable-e2ap-port
branch
from
November 13, 2026 16:05
473c68b to
4bc9d10
Compare
Thecave3
force-pushed
the
configurable-e2ap-port
branch
from
November 13, 2026 16:07
4bc9d10 to
9afcbe7
Compare
Thecave3
added a commit
to Thecave3/openairinterface5g
that referenced
this pull request
Nov 13, 2026
Add an optional near_ric_port parameter to the e2_agent section, next to near_ric_ip_addr, and pass it to FlexRIC as fr_args_t.e2ap_port in nr-softmodem and nr-cuup. It defaults to 36421, so existing configurations are unchanged. Values outside 1..65535 are rejected. The README documents the parameter and, in the O-RAN SC section, replaces the instruction to edit e2ap_server_port and recompile. The paramdef table is wrapped in clang-format off/on like the other *_paramdef.h tables. Requires the FlexRIC change that adds e2ap_port to fr_args_t (duranta-project/flexric#9); the submodule has to be bumped past it. fr_args_t has no unset value there, so the port is always set here. Assisted-by: Claude:Sonnet 5.5 Signed-off-by: Andrea Lacava <thecave003@gmail.com>
Collaborator
|
CI Build: #97 | Passed |
Thecave3
force-pushed
the
configurable-e2ap-port
branch
from
November 16, 2026 14:44
9afcbe7 to
bc9bd7d
Compare
teodora-vladic
left a comment
Collaborator
There was a problem hiding this comment.
Please don't put noreply emails - i.e. Co-authored-by: Teodora Vladić <179130800+teodora-vladic@users.noreply.github.com>
Also, please split the commit into two - first moving config file reading parse_conf_file_arg() and second implementation of port args
Move the -c handling out of parse_args() into parse_conf_file_arg(), called first by init_fr_args(). No functional change. Assisted-by: Claude:Sonnet 5.5 Signed-off-by: Andrea Lacava <thecave003@gmail.com>
Add E2AP_PORT and E42_PORT to flexric.conf and the -e and -x flags. Precedence: defaults (36421, 36422), config file, command line. Callers that fill fr_args_t themselves must now set the ports. Assisted-by: Claude:Sonnet 5.5 Co-authored-by: Teodora Vladić <teodora.vladic@openairinterface.org> Signed-off-by: Andrea Lacava <thecave003@gmail.com>
Thecave3
force-pushed
the
configurable-e2ap-port
branch
from
November 17, 2026 15:49
bc9bd7d to
6582d05
Compare
Collaborator
|
CI Build: #100 | Passed |
teodora-vladic
approved these changes
Nov 18, 2026
Thecave3
added a commit
to Thecave3/openairinterface5g
that referenced
this pull request
Nov 18, 2026
…ric#9 Assisted-by: Claude:Sonnet 5.5 Signed-off-by: Andrea Lacava <thecave003@gmail.com>
Thecave3
added a commit
to Thecave3/openairinterface5g
that referenced
this pull request
Nov 24, 2026
…ric#9 Assisted-by: Claude:Sonnet 5.5 Signed-off-by: Andrea Lacava <thecave003@gmail.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nearRT-RIC IP address is read from
flexric.conf, but the ports are literals in the initfunctions (36421 in
near_ric.cande2_agent_api.c, 36422 ine42_iapp.cande42_xapp.c).Other nearRT-RICs use different ports (the O-RAN SC one listens on 36422), and
README.md§6.1already tells users to "set the
e2ap_server_port", which is a local variable, not a setting.This adds
E2AP_PORTandE42_PORTunder[NEAR-RIC]and the-e/-xflags. They resolvelike the IP address: flag, then config file, then the previous defaults (36421 / 36422), so an
existing
flexric.confbehaves as before.fr_args_tgets twouint16_tfields, where 0 meansunset, and
init_e42_iapp()/init_iapp_api()take the port as a parameter.Unlike
get_near_ric_ip(), a missing config file or key falls back to the default instead ofexiting, because RAN processes that embed the E2 agent fill
fr_args_tthemselves.The matching
near_ric_portkey for the OAIe2_agentsection is induranta-project/openairinterface5g#891 (draft until this merges).