CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
291 stars 186 forks source link

edit config self-defined yang model failed #1468

Closed Ray123456a closed 10 months ago

Ray123456a commented 10 months ago

Hello , I defined a yang model as a augment of o-ran-performance-management.yang. And I have installed it sucessfully, but it failed when I want to enabled the augment nodes. Here is the augment node as below: 1

The "netopeer2-cli" occured an error printing as below: 2

michalvasko commented 10 months ago

You have not included the content of N3_antenna_kpi_config.xml but I assume you have not used the XML namespace of vendor-specific-performance-management.yang and kept the namespace of o-ran-performance-management.yang. That is the problem, augment nodes need to be in the namespace of their module.

Ray123456a commented 10 months ago

xml content as below: image

michalvasko commented 10 months ago

Yes, the problem is exactly what I described in my previous reply, fix it accordingly.

Ray123456a commented 10 months ago

So , I have changed the xmlns as "urn:vs:performance-management:1.0", it still error occured: image

Ray123456a commented 10 months ago

image

michalvasko commented 10 months ago

Look, these are complete basics of XML so I should not have to be explaining this to you. I said change the namespace of the augmented nodes only, keep the namespace of performance-measurement-objects the way it was. Just put xmlns="urn:vs:performance-management:1.0 on vendor-specific-measurement-objects and it will work.

Ray123456a commented 10 months ago

Got it, my problem solved, thank you so much!!!