[sysrepo-devel] verification options

Joan Landry JoLandry at advaoptical.com
Mon Aug 1 13:01:46 UTC 2016


Thanks,
Do you know the time frame for when this might be available as it would seem to be a mandatory piece in order to avoid a system with invalid configuration.
Thanks for the quick response.
Joan


From: Rastislav Szabó [mailto:rastislav.szabo at pantheon.tech]
Sent: Monday, August 01, 2016 8:54 AM
To: Joan Landry <JoLandry at advaoptical.com>; sysrepo-devel at sysrepo.org
Subject: Re: verification options


Hi Joan,



We do plan to support this, but it is not yet implemented.


Currently sysrepo supports only post-commit notifications, meaning that callback is called AFTER the change has happened. Thi is signalled in the callback as
event == SR_EV_NOTIFY. Any errors returned from the callback are ignored in this case. In the future, we would like to support callbacks being called even before the change has happened. This would require to specify
SR_SUBSCR_VERIFIER flag in the subscription and it will be signalled as event == SR_EV_VERIFY in the callback. If that callback returns an error, the commit would fail.



Regards,

Rastislav



________________________________
From: Joan Landry <JoLandry at advaoptical.com<mailto:JoLandry at advaoptical.com>>
Sent: Monday, August 1, 2016 2:50 PM
To: sysrepo-devel at sysrepo.org<mailto:sysrepo-devel at sysrepo.org>
Subject: [sysrepo-devel] verification options

When a user changes configuration objects to the candidate data store via a series of edit-config Netconf calls, after doing so issues a commit.

Is there a mechanism provided by sysrepo to allow the device to reject the commit if the combination of changes would result in an invalid configuration of the device?
Or does sysrepo just automatically commit the changes per the request?

I was not able to find any info on this - would greatly appreciate any info you could provide on how the device can verify the datastore before it is allowed to be commited?

Thanks,
Joan Landry

RastislavSzabó
Senior Software Engineer

Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia
R&D centrum / Janka Kráľa 9 /  974 01 Banská Bystrica / Slovakia
+421 918 462 530 / rastislav.szabo at pantheon.tech<mailto:rastislav.szabo at pantheon.tech>
reception: +421 2 206 65 114 / www.pantheon.sk<http://www.pantheon.sk>

[logo]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sysrepo.org/archives/sysrepo-devel/attachments/20160801/a2bd79a5/attachment.html>


More information about the sysrepo-devel mailing list