Comments (16)
validate without using the default or range values
It is not possible to avoid the standard YANG validation, you can only add your own.
is it possible to write my validations check function ?
The direct approach is to write standard sysrepo module change callbacks when you have the option to validate and refuse the configuration changes on the SR_EV_CHANGE
event.
from sysrepo.
from sysrepo.
Yes, the configuration is fully refused (not reverted because it is not applied yet), see the docs. There are no specific examples of this because there is nothing to it. Just call sr_module_change_subscribe()
with your callback (an example of that can be found here) and return an error code (not SR_ERR_OK
) from the callback in case your validation fails. The rest is handled by sysrepo.
from sysrepo.
from sysrepo.
I am not here to explain NETCONF or YANG, please read the specs.
from sysrepo.
from sysrepo.
If you are asking about connecting and authenticating to netopeer2-server they yes, you need to configure the authentication mechanisms in its YANG configuration stored in sysrepo. You can manually edit the configuration using sysrepocfg -E vim -m ietf-netconf-server
, for example. You can find example segments of the supported configuration in netopeer2/example_configuration/ssh_listen.xml
.
from sysrepo.
from sysrepo.
In the current SSH server YANG module a specific single authentication method must be configured for each user. Meaning you need to select only one method for a user but each user can have a different authentication method.
from sysrepo.
from sysrepo.
from sysrepo.
You need to send a valid XML. The prefix is needed but it must also be defined. I am sorry but you really must know how XML works, look at a tutorial.
from sysrepo.
from sysrepo.
Yes, that is expected and works as specified. Please learn all these basics before asking anything.
from sysrepo.
from sysrepo.
Me neither, this is exactly the executed sequence of scripts during the installation. And it works fine there so I am not able to help.
from sysrepo.
Related Issues (20)
- Suggest configurable timeout for getting operational state data HOT 6
- Question: Force triggering change callback HOT 4
- Function sr_apply_changes is too slow HOT 10
- Can a plugin modify module B based on changes in module A? HOT 2
- sysrepoctl segmentation fault when installing module HOT 4
- Can a plugin modify module B based on changes in module A when validation of module A depends on module B? HOT 11
- inconsistent `location` leaf-list within the `ietf-yang-library` HOT 1
- Question: Public API to use NACM to filter data? HOT 4
- [ERR] Data model "ietf-netconf-monitoring@2010-10-04" not found in local searchdirs. HOT 1
- `sr_module_change_subscribe` appears to provide config data in the operational datastore HOT 3
- How to provide factory default datastore for sysrepo-plugind module in order to configure the plugin order? HOT 2
- Candidate datastore is not always validated HOT 2
- Question regarding srsn_filter_subtree2xpath HOT 1
- redis tests when no redis server installed HOT 1
- Question regarding order of the elements of a list in the state HOT 4
- Default value for config=false leafs HOT 4
- netopeer2-server crashing while establish-push notification generated HOT 7
- sysrepoctl -l [ERR] Data model "sysrepo-monitoring@2023-08-11" not found in local searchdirs. [ERR] Loading "sysrepo-monitoring" module failed. sysrepoctl error: Failed to connect (libyang error) For more details you may try to increase the verbosity up to "-v3". HOT 14
- Memory leak when subscribing to notifications filtered by NACM HOT 2
- Missing changes in subscriber callback HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sysrepo.