Peter K. Lee | f4d38d3 | 2016-07-23 02:47:38 -0700 | [diff] [blame^] | 1 | module corenova-node { |
| 2 | namespace "urn:corenova:node"; |
| 3 | prefix node; |
| 4 | |
| 5 | organization |
| 6 | "Corenova Technologies, Inc."; |
| 7 | |
| 8 | contact |
| 9 | "Peter K. Lee <peter@corenova.com>"; |
| 10 | |
| 11 | description |
| 12 | "This module defines extensions to dynamically control schema node |
| 13 | display and access overlay controls"; |
| 14 | |
| 15 | feature corenova-node { |
| 16 | description |
| 17 | "this is to indicate the agent supports dynamic schema node |
| 18 | link/map/view."; |
| 19 | } |
| 20 | |
| 21 | extension link { |
| 22 | description |
| 23 | "Links the current leaf (or leaf-list) to an alternate leaf in the |
| 24 | schema data tree. The current leaf becomes a 'mirror' instance |
| 25 | of the target node."; |
| 26 | argument target-node-path { |
| 27 | yin-element true; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | extension map { |
| 32 | description |
| 33 | "Maps the current container (or list entry) to an alternate container |
| 34 | in the schema data tree. The target-node-path must not map to |
| 35 | leaf or leaf-list nodes. The current container will map to |
| 36 | additional data nodes found inside the alternate container. The |
| 37 | mapped data nodes behave similarly to the 'link' extension |
| 38 | case. It can be defined one or more times within the same |
| 39 | container to map across modules and other subtrees."; |
| 40 | argument target-node-path { |
| 41 | yin-element true; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | extension view { |
| 46 | description |
| 47 | "Informs the interface layers that only the data nodes referenced |
| 48 | within the value argument should be made visible to the |
| 49 | consumer."; |
| 50 | argument value; |
| 51 | } |
| 52 | } |