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 · 2 comments
Open

How to specify submodule when overriding capabilities? #2121

ludomikula opened this issue Jan 23, 2025 · 2 comments
Assignees

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.

@ludomikula
Copy link
Author

Well, I've seen that before, unfortunately there is no such information. I ended up creating a custom model by merging the submodules and specifying it in yang-module-capabilities.

@ihrasko ihrasko self-assigned this Feb 7, 2025
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