Skip to content

FAILURE: pyang -f tree yang/vendor/cisco/xe/16111/ietf-ipv4-unicast-routing.yang #1363

@freedanzman

Description

@freedanzman

ERRORS:

$ pwd
/c/CODE/repos/cisco-product-apis/restconf/yang/vendor/cisco/xe/16111
$ pyang -f tree ietf-ipv4-unicast-routing.yang
ietf-ipv4-unicast-routing.yang:104: error: node ietf-routing::routing-instance is not found
ietf-ipv4-unicast-routing.yang:149: error: node ietf-routing::fib-route is not found
ietf-ipv4-unicast-routing.yang:164: error: node ietf-routing::fib-route is not found
ietf-ipv4-unicast-routing.yang:180: error: node ietf-routing::fib-route is not found

ATTEMPTED DIAGNOSIS:

ietf-routing.yang line 5:

prefix "rt";

ietf-ipv4-unicast-routing.yang lines 7-9:

import ietf-routing {
prefix "rt";
}

ietf-ipv4-unicast-routing.yang lines 103-104:

augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
+ "rt:routing-protocol/rt:static-routes" {

The error seems to be saying that from the augment statement above, it cannot find "rt:routing-instance" under the "rt:routing" part of the model/tree in ietf-routing.yang.

ietf-routing.yang lines 500-526:

container routing {
description
"Configuration parameters for the routing subsystem.";
list routing-instance {
key "name";
description
"Configuration of a routing instance.";

And yet "list routing-instance" is right there on line 523, right under the parent routing container (typical).

So... yeah. No idea why this is broken.
I checked the syntax to make sure nothing was missing or misplaced in terms of {}s or ;s and that all seems legitimate to me.
No idea why it cannot find routing-instance in the hierarchy when it is clearly there.

Similar problem with fib-route on ietf-ipv4-unicast-routing.yang lines 149/164/180. I was able to find fib-route in ietf-routing.yang line 669.

I must not know enough. Please teach me YANG wizards.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions