Skip to content

Instantly share code, notes, and snippets.

@donaldh
Last active October 11, 2016 14:07
Show Gist options
  • Select an option

  • Save donaldh/c012325986f8057d6ad63755c1631813 to your computer and use it in GitHub Desktop.

Select an option

Save donaldh/c012325986f8057d6ad63755c1631813 to your computer and use it in GitHub Desktop.
Usage of ietf-network-topology tp-ref doesn't validate in pyang
topo-client.yang:5: warning: imported module ietf-network not used
topo-client.yang:15 (at topo-client.yang:23): error: the key "net:network-ref" does not reference an existing leaf
[email protected]:78: error: ietf-network:network-ref in the path for tp-ref at topo-client.yang:15 (at [email protected]:74) is not found
[email protected]:42: error: topo-client:network in the path for network-ref at topo-client.yang:15 (at [email protected]:40) is not found
[email protected]:56: error: topo-client:network in the path for node-ref at topo-client.yang:15 (at [email protected]:53) is not found
module topo-client {
namespace "urn:test:topo-client";
prefix tc;
import ietf-network {
prefix net;
}
import ietf-network-topology {
prefix topo;
}
list service-end-point {
key 'id';
uses service-end-point;
}
grouping service-end-point {
leaf id {
type string;
}
list mapped-topo-end-point {
key "net:network-ref net:node-ref topo:tp-ref";
uses topo:tp-ref;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment