VinodKumarS-Huawei | 95169ea | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 1 | module ietf-network-topology { |
| 2 | yang-version 1; |
| 3 | namespace "urn:ietf:params:xml:ns:yang:ietf-network-topology"; |
| 4 | prefix lnk; |
| 5 | |
| 6 | import ietf-inet-types { |
| 7 | prefix inet; |
| 8 | } |
| 9 | |
| 10 | typedef tp-id { |
| 11 | type inet:uri; |
| 12 | description |
| 13 | "An identifier for termination points on a node. |
| 14 | The identifier SHOULD be chosen such that the same TP in a |
| 15 | real network topology will always be identified through the |
| 16 | same identifier, even if the model is instantiated in |
| 17 | separate datastores. An implementation MAY choose to capture |
| 18 | semantics in the identifier, for example to indicate the type |
| 19 | of TP and/or the type of node and topology that the TP is a |
| 20 | part of."; |
| 21 | } |
| 22 | |
| 23 | grouping tp-ref { |
| 24 | description |
| 25 | "References a termination point in a specific node."; |
| 26 | leaf tp-ref { |
| 27 | type tp-id; |
| 28 | description |
| 29 | "A type for an absolute reference to a termination point. |
| 30 | (This type should not be used for relative references. |
| 31 | In such a case, a relative path should be used instead.)"; |
| 32 | } |
| 33 | } |
| 34 | } |