Comments (8)
It all depends on the YANG modules you are using, I am guessing that address
has a different key than ip
or something like that.
from sysrepo.
It all depends on the YANG modules you are using, I am guessing that
address
has a different key thanip
or something like that.
The yang content like this, address only have one key: ip
container ipv4 {
description
"Parameters for the IPv4 address family.";
container addresses {
description
"Enclosing container for address list";
list address {
key "ip";
description
"The list of configured IPv4 addresses on the interface.";
leaf ip {
type leafref {
path "../config/ip";
}
description "References the configured IP address";
}
container config {
description "Configuration data for each configured IPv4
address on the interface";
uses ipv4-address-config;
}
container state {
config false;
description "Operational state data for each IPv4 address
configured on the interface";
uses ipv4-address-config;
uses ipv4-address-state;
}
}
}
grouping ipv4-address-config {
description
"Per IPv4 adresss configuration data for the
interface.";
leaf ip {
type oc-inet:ipv4-address;
description
"The IPv4 address on the interface.";
}
leaf prefix-length {
type uint8 {
range "0..32";
}
description
"The length of the subnet prefix.";
}
leaf gwaddr {
type oc-inet:ipv4-address;
description
"The IPv4 gwaddress on the interface.";
}
}
Is there any other possible reason?@michalvasko
from sysrepo.
If you provide the YANG modules (and all their imports) I can tell you exactly because I could not reproduce it (have tried it with some revisions that did not define mtu
node).
from sysrepo.
My yang file is in the compressed file, thank you very much @michalvasko
Or you can delete mtu attribute
from sysrepo.
My version (current) prints the error
[ERR]: SR: Unsatisfied pattern - "8.8.177.28" does not conform to "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$". (Data location "/openconfig-interfaces:interfaces/interface[name='Ethernet4']/subinterfaces/subinterface[index='0']/openconfig-if-ip:ipv4/addresses/address/ip".)
and the reason being discussed in openconfig/public#44.
from sysrepo.
Thansk for you replay!
I cannot upgrade to the latest version. When I upgrade, I have encountered issues, such as OpenSSL and libyang have already been used by other modules in the linux system.
Are there any other suggestions ? Which patch in sysrepo or libyang I merge to, maybe can solve this problem? @michalvasko
from sysrepo.
When I upgrade, I have encountered issues, such as OpenSSL and libyang have already been used by other modules in the linux system.
I do not understand, why should a newer version cause problems, you have packages that depend on an exact libyang version instead of specifying a minimal supported version?
But, strictly speaking, an update will not solve your problem, the value will still fail to load because the pattern
is in an unsupported format (described in the issue I have referenced, please read it).
from sysrepo.
I upgrade to this version tag: netopeer v2.1.71, sysrepo v2.2.105, libyang v2.1.111, and now prints the pattern error. For this issue you have referenced above, I will try some methods mentioned in that issue.
Thanks for your help.
from sysrepo.
Related Issues (20)
- 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 5
- 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 15
- Memory leak when subscribing to notifications filtered by NACM HOT 2
- Missing changes in subscriber callback HOT 5
- sysrepocfg issues Libyang errors when trying to import some config data HOT 4
- Error with get-schema format not supported when connecting to netopeer2 server HOT 1
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.