Skip to content

Getting Error as "Missing the operation node" #2109

@raman-in

Description

@raman-in

I am new to the libyang usage.
I am having below xml data which i need to set for o-ran-fm.yang using sysrepocfg command as mentioned below:

oran_fm.xml:

<active-alarm-list xmlns="urn:o-ran:fm:1.0">
  <active-alarms>
   <fault-id>1</fault-id>
   <fault-source>Network Element X</fault-source>
    <affected-objects>
      <name>Radio Unit</name>
    </affected-objects>
    <fault-severity>MAJOR</fault-severity>
    <is-cleared>true</is-cleared>
    <fault-text>Equipment Power supply</fault-text>
    <event-time>2021-09-27T18:05:26Z</event-time>
  </active-alarms>
</active-alarm-list>
> sysrepocfg --edit=oran_fm.xml --format=xml --datastore=running --module=o-ran-fm -v3
[INF] Connection 2 created.
[INF] Session 2 (user "root", CID 2) created.
libyang error: Unexpected data state node "active-alarm-list" found. (Schema location "/o-ran-fm:active-alarm-list", line number 2.)
sysrepocfg error: Data parsing failed

--> Not sure about this error 'Unexpected data state node'

3. When i try to run through yanglint in libyang i got below output.
> data -t reply /home/oran_fm_copy.xml
libyang[0]: Missing the operation node. (path: Line number 14.)

--> But there is no "operation" node available in "o-ran-fm.yang" file.

Kindly help me on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:questionIssue is actually a question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions