0342b6e0c707a71e643d1313939b4e6d575b1c03
[netconf.git] / apps / netconf-topology / src / main / yang / netconf-node-topology.yang
1 module netconf-node-topology {
2     namespace "urn:opendaylight:netconf-node-topology";
3     prefix "nettop";
4
5     import network-topology { prefix nt; revision-date 2013-10-21; }
6     import yang-ext { prefix ext; revision-date "2013-07-09";}
7     import netconf-node-optional { prefix nno; }
8     import odl-netconf-device { prefix ond; }
9
10     revision 2022-12-25 {
11         description "Refactored into odl-netconf-device";
12     }
13
14     revision "2015-01-14" {
15         description "Initial revision of Topology model";
16     }
17
18     grouping netconf-node-fields {
19       uses ond:credentials;
20       uses ond:connection-parameters;
21       uses ond:netconf-schema-storage;
22       uses ond:datastore-access;
23     }
24
25     rpc create-device {
26         status deprecated;
27         input {
28             uses netconf-node-fields;
29             uses nno:netconf-node-augmented-optional-fields;
30             leaf node-id {
31                 type string;
32             }
33         }
34     }
35
36     rpc delete-device {
37         status deprecated;
38         input {
39             leaf node-id {
40                 type string;
41             }
42         }
43     }
44
45     augment "/nt:network-topology/nt:topology/nt:topology-types" {
46         container topology-netconf {
47             presence "The presence of the container node indicates a network
48                       of NETCONF devices";
49         }
50     }
51
52     augment "/nt:network-topology/nt:topology/nt:node" {
53         when "../../nt:topology-types/topology-netconf";
54         ext:augment-identifier "netconf-node";
55
56         uses netconf-node-fields;
57         uses ond:connection-oper;
58         ext:mount;
59     }
60 }