I configured restconf management api on vEOS 4.22.0F. Fetching data (GET) works fine, but now I’m dealing with changing some configuration (PUT, PATCH, POST) and nothing happens. It’s probably my fault, but I can’t find what I’m doing wrong.
PUT & POST /restconf/data/interfaces/interface=Management1/config
It works the same when I try to send full body:
You did it the right way, unfortunately when using PUT and POST currently the CLI commands are not generated after the updates are registered in the YANG server. We’re tracking this under BUG398831 and will be fixed in an upcoming release. If you’d be interested in a patch for a specific release, best would be to open a support case by sending an email to firstname.lastname@example.org
Is this already fixed? I'm using Eos 4.23.1F and I have the same issue
I am having the same issue
PUT/POST are working starting from 4.23.1F in RESTCONF, however there are some caveats, like it would fail if "ip address unnumbered" is configured on any interfaces, which is being worked on now. Netconf is a bit different, and should be discussed in a different topic. Might be better to open a case, send us your nc script if you're using python or the ssh command and running-config. Thanks, Tamas
Post your Answer
You must be logged in to post an answer.