OpenClovis / OpenYuma

Fork of the defacto standard Yuma project since it went proprietary. Netconf is a management protocol (similar to SNMP) defined in RFC4741.
68 stars 51 forks source link

get-config fails to retrieve config data #24

Closed Raaghavi closed 8 years ago

Raaghavi commented 8 years ago

Hi,

Initially I tried to do an edit-config operation on the candidate datastore through yangcli & I was able to retrieve the data through get-config. After I invoked a commit rpc, I could see that the get-config data either does not have any instance that is set through the previous edit or it displays some random values against each leaf/container.

Could you please explain the cause of this & suggest me the steps to resolve this issue? Thanks in advance.

Regards, Raaghavi

hoangle commented 8 years ago

What is default database to edit on netconf server? If default is 'candidate', you have to do copy from running to candidate before starting to edit configuration. Take a look at doc: OpenYuma/netconf/doc/yuma_docs/openyuma-dev-manual.odt (Chapter 5.2) to know how to change this target.

Raaghavi commented 8 years ago

I am using candidate as the default database on the netconf server.

Both the candidate & the running datastores are empty when I start the netconf server. I tried the method you suggested by copying the running configuration into candidate datastore before applying an edit. But still I am facing the same issue.

I also tried by making the running datastore as the default database for the netconf server. Here I made an edit into the running datastore directly without using the commit & found no difference. get-config didn't retrieve the data I posted.

I feel that the if the edit configuration data is of a simple built-in yang type like STRING, UINT8 etc., then the get-config works fine. But if it is of a complex type, like inet:ipv4-prefix (ietf-inet-types) etc., then the get-config on the running datastore fails to retrieve.

hoangle commented 8 years ago

If so, let's turn debug log at both netconfd and yangcli to identify a root cause.