Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify submodule when overriding capabilities? #2121

Open
ludomikula opened this issue Jan 23, 2025 · 1 comment
Open

How to specify submodule when overriding capabilities? #2121

ludomikula opened this issue Jan 23, 2025 · 1 comment

Comments

@ludomikula
Copy link

This is more of an ODL question but anyway.

Using lighty 21 RNC app I am trying to connect to a device that sends back crap instead of its capabilities. Thus I am trying to override it while connecting like this (using RESTCONF):

{
    "network-topology:node": [
    {
        "node-id": "mynode",
        "netconf-node-topology:netconf-node": {
            "yang-module-capabilities": {
                  "override": true,
                  "capability": [
                        ...
                        ... other module dependencies
                        ...
                        "http://tail-f.com/yang/common?revision=2023-02-21&module=tailf-common"
                  ]
            }
        }
    } 
    ]
}

However, schema creation build fails with:

unsatisfied imports: {SourceIdentifier [tailf-common@2023-02-21]=[Include[name=Unqualified{localName=tailf-meta-extensions}, revision=2017-03-08], Include[name=Unqualified{localName=tailf-cli-extensions}, revision=2021-12-17]]}

All YANG schemas are already in the schema cache folder. I have tried to add the two schemas to yang-module-capabilities but of course it fails, because both are submodules.

I've also tried to add them to non-module-capabilities, but they were not picked up probably because I did not use the correct URI format.

So my question is: what is the proper way to define a submodule when I am overriding capabilities?

@ihrasko
Copy link
Collaborator

ihrasko commented Jan 28, 2025

Hope that helps: ODL NETCONF user guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants