Giter Club home page Giter Club logo

Comments (6)

robbynet avatar robbynet commented on August 17, 2024

It must be noted that whatever the revision of ietf-crypto-types, namespace remain the same :
namespace "urn:ietf:params:xml:ns:yang:ietf-crypto-types";
So without model number at the end, like it could be :
namespace "urn:ietf:params:xml:ns:yang:ietf-crypto-types:1.0";
So only remaining solution to map the NC Client to the targeted ietf-crypto-module of the NC Server is to use the revision

from netopeer2.

michalvasko avatar michalvasko commented on August 17, 2024

Does specification of a module revision is supported in an xml payload via usage of xmlns ?

No, it is not possible at all. There can be several revisions of a single module loaded into a YANG context but only one is implemented. This revision is then used for parsing all the data of the module. The 2023 revision must be implemented because there are features and identities. So, if you also require the 2019 revision to be implemented, you have a problem because such a context cannot be created.

from netopeer2.

robbynet avatar robbynet commented on August 17, 2024

Ok, understood for IETF modules embedded into Netopeer2 NC Server.
But what about pure application modules, if an application has set two modules with same name, same prefix, but with different iteration of the namescape : "urn:application:1.0" and "urn:application:1.1"

Does Netopeer2 is able to map xml NETCONF payload from NC Client to each module loaded in NC Server ?

<color> xmlnx:app="urn:application:1.0">app::bleu</color>
<color> xmlnx:app="urn:application:1.1">app::bleu</color>

from netopeer2.

michalvasko avatar michalvasko commented on August 17, 2024

You should fail to load such modules, a YANG module cannot change its namespace (meaning a single module name used for 2 namespaces).

from netopeer2.

robbynet avatar robbynet commented on August 17, 2024

As said, in the scenario described above, there are two modules loaded in NC Server :

  • application.yang in revision x having namescape "urn:application:1.0", prefix app
  • application.yang in revision y having namespace "urn:application:1.1", prefix app
    Expectation is that NC Client can select the module to be used into the NC Server ( revision x or y ) just by declaring the proper namescape in the xml payload

from netopeer2.

michalvasko avatar michalvasko commented on August 17, 2024

Like I said, this is not supported or in any way possible in YANG/NETCONF.

from netopeer2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.