Last active
October 11, 2016 14:07
-
-
Save donaldh/c012325986f8057d6ad63755c1631813 to your computer and use it in GitHub Desktop.
Usage of ietf-network-topology tp-ref doesn't validate in pyang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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