Comments (5)
Thanks for putting attention on this.
But no, [email protected] in the clixon repo is an effort to recreate RFC5277 create-subscription and the types around that. RFC5277 does not contain a Yang model, just XML schema, so the yang model was manually created from the RFC.
[email protected] on the other hand, (eg https://github.com/YangModels/yang/blob/master/standard/ietf/RFC/[email protected]) is RFC 6470, so is a completely different yang model. The confusion is that they are names (almost) the same.
I see Cisco has the original RFC5277 at, for example https://github.com/YangModels/yang/blob/master/vendor/cisco/xr/651/notifications.yang.
There is a relatively recent model at draft-ietf-netconf-rfc5277bis-01 which is modeled by Cisco in for example https://github.com/YangModels/yang/blob/master/vendor/cisco/xe/1681/ietf-event-notifications.yang where create-subscription is still defined. There are also new rpc:s for subscribed-notifications.
So there are a number of different options:
- keep the original (maybe rename it for avoiding similar confusion)
- Use cisco's "notification.yang" (I would want to have a proper source though)
- Upgrade to draft-ietf-netconf-rfc5277bis-01. I have no idea how much work that is.
- Follow the more recent work,eg at https://github.com/netconf-wg/rfc5277bis for subscribed-notifications. But there I think create-subscription is obsolete.
- someting else?
from clixon.
name confusion noted.
the simplest change is to fix two instances of date-and-time types that are missing the yang: prefix and should be yang:date-and-time (see patch below)
from clixon.
This opened up some other issues:
- clixon hardcoded some yang types such as date-and-time, ipv4-address, etc. thus bypassing the yang date-and-time regexp. This has now been removed.
- cligen didnt properly support time-zone designators (eg 'Z' or +01:00). CLIgen now supports it.
- cligen uses posix regex while yang uses XSD. It differs in some aspects. A translator function has been added.
from clixon.
Note that the yang module has been renamed: ietf-netconf-notifications -> clixon-rfc5277.
from clixon.
thank you!
from clixon.
Related Issues (20)
- Add debug levels in YANG as bits
- NACM create rules do not work properly on objects with default values
- "error-message" customization within "must" statement HOT 1
- Autolock HOT 1
- linescrolling not work HOT 3
- Duplicate config files in configdir causes merge problems -> set ? = NULL
- restconf HOT 2
- Unexpected behavior when re-entering top level command for the list element HOT 3
- Auto commit enable HOT 2
- Abort callback order HOT 6
- FR: new type of callback is required
- clixon_netconf_ssh_callhome.c HOT 5
- Expansion removes the double quote HOT 4
- The domain name is entered without restrictions, but at the same time, if you enter the ip address, the command does not pass.
- AUTOEXPAND: union with leafref
- FATAL: Invalid api-path errors when attempting to show qfx config HOT 1
- Doesn't reply with message-id HOT 1
- Netconf delete/remove operation doesn‘t work? HOT 3
- Clixon-backend lacks rfc 6242 <hello> protocol HOT 2
- NETCONF error reply from failed leafref require-instance does not comply to RFC 7950 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 clixon.