Skip to content

Instantly share code, notes, and snippets.

@donaldh
Created October 11, 2016 14:20
Show Gist options
  • Save donaldh/b5cb16bad2340e787eb3636778becd9a to your computer and use it in GitHub Desktop.
Save donaldh/b5cb16bad2340e787eb3636778becd9a to your computer and use it in GitHub Desktop.
Usage of node-ref from ietf-network fails to validate in pyang
module net-client {
namespace "urn:test:net-client";
prefix tc;
import ietf-network {
prefix net;
}
list net-user {
key 'id';
uses net-user-attrs;
}
grouping net-user-attrs {
leaf id {
type string;
}
uses net:node-ref;
}
}
[email protected]:42: error: net-client:network in the path for network-ref at net-client.yang:11 (at [email protected]:40) is not found
[email protected]:56: error: net-client:network in the path for node-ref at net-client.yang:11 (at [email protected]:53) is not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment