freeconf/restconf

Edit a leaf with `config false`

pj-99 opened this issue · 2 comments

Hello, I try to use the following yang file to test config-false:

module hello {
	leaf message {
		type string;
	}

	leaf config-false-message {
		type string;
		config false;
	}
}

And then I POST to http://localhost:8080/restconf/data/hello: with the body:

{"config-false-message":"test"}

I observed that the POST method successfully edited the "config-false-message".

However, based my understanding from dicussion and RFC 6020-YANG, the leaf marked with config false cannot be manipulated by POST or other method.

Could you please confirm if this behavior is expected?

Thank you very much.

confirmed this is an issue. great catch, hard to believe this wasn't caught sooner. Should have fix in next 24hrs on master branch.

fixed and pushed to master, would be great if you could verify. thanks!