Add E2SM-CCC implementation#7
Open
Noemi2001 wants to merge 1 commit into
Open
Conversation
aferaudo
reviewed
May 27, 2026
Collaborator
aferaudo
left a comment
There was a problem hiding this comment.
There some things to be fixed. I will do it.
Comment on lines
+1
to
+11
| """ | ||
| E2SM-CCC REPORT decorator for the xDevSM-dApp framework. | ||
|
|
||
| Implements the periodic REPORT Style 2 (cell-level) flow: | ||
| - subscribe(): builds Event Trigger Definition Format 3 + Action | ||
| Definition Format 2 as JSON and ships them via the OSC subscription | ||
| manager. | ||
| - decode_message(): parses the JSON indication header/message bytes | ||
| received from the FlexRIC ccc_sm plugin and dispatches them to the | ||
| user-registered callback. | ||
| """ |
Collaborator
There was a problem hiding this comment.
I think we need to delete some comments here. I'll do it
Comment on lines
+20
to
+34
| from sm_framework.py_oran.ccc.constants import ( | ||
| SM_CCC_ID, | ||
| STRUCT_O_NRCELLDU, | ||
| REPORT_TYPE_ALL, | ||
| REPORT_STYLE_CELL_LEVEL, | ||
| ) | ||
| from sm_framework.py_oran.ccc.ccc_encoder import ( | ||
| encode_event_trigger_periodic, | ||
| encode_action_definition_cell_level, | ||
| ) | ||
| from sm_framework.py_oran.ccc.ccc_decoder import ( | ||
| CccIndicationHeader, | ||
| CccIndicationMessage, | ||
| ) | ||
|
|
Collaborator
There was a problem hiding this comment.
maybe we can leave the same notation as above
|
|
||
| def subscribe( | ||
| self, | ||
| gnb, |
Collaborator
There was a problem hiding this comment.
@Noemi2001 can you tell me what passes the xapp here? Is it the json object or the inventory name? In case I change it to a JSON object (just to use the same notation as kpm).
Comment on lines
+186
to
+193
| def subscribe_arfcn_bw_bwps(self, gnb, period_ms: int = 1000): | ||
| """One-call helper for the three target metrics of this iteration.""" | ||
| return self.subscribe( | ||
| gnb=gnb, | ||
| period_ms=period_ms, | ||
| ran_cfg_structure_name=STRUCT_O_NRCELLDU, | ||
| attributes=["arfcnDL", "bSChannelBwDL", "bWPList"], | ||
| ) |
Collaborator
There was a problem hiding this comment.
@Noemi2001 how is this used in the xApp? So I can add a better description :)
Comment on lines
+1
to
+8
| """ | ||
| Pure-Python JSON decoders for the E2SM-CCC IEs received from the RIC. | ||
|
|
||
| The FlexRIC ccc_sm plugin forwards the on-wire JSON bytes verbatim into | ||
| the indication header / message OCTET STRINGs, so on the dApp side we | ||
| just need `json.loads`. Two thin wrappers expose the decoded dicts and | ||
| a few helpers to drill into Indication Message Format 2 (cell-level). | ||
| """ |
Collaborator
There was a problem hiding this comment.
this comment should be deleted
Comment on lines
+1
to
+5
| """ | ||
| Pure-Python JSON encoders for the E2SM-CCC IEs that ride inside the | ||
| E2AP OCTET STRINGs. The dApp builds Python dicts that mirror the JSON | ||
| Schema in O-RAN.WG3.TS.E2SM-CCC §9.4.2 and ships them to the SM as bytes. | ||
| """ |
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.
No description provided.