Eliminate LockChangeListener
[netconf.git] / netconf / sal-netconf-connector / 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         input {
27             uses netconf-node-fields;
28             uses nno:netconf-node-augmented-optional-fields;
29             leaf node-id {
30                 type string;
31             }
32         }
33     }
34
35     rpc delete-device {
36         input {
37             leaf node-id {
38                 type string;
39             }
40         }
41     }
42
43     augment "/nt:network-topology/nt:topology/nt:topology-types" {
44         container topology-netconf {
45             presence "The presence of the container node indicates a network
46                       of NETCONF devices";
47         }
48     }
49
50     augment "/nt:network-topology/nt:topology/nt:node" {
51         when "../../nt:topology-types/topology-netconf";
52         ext:augment-identifier "netconf-node";
53
54         uses netconf-node-fields;
55         uses ond:connection-oper;
56         uses nno:netconf-node-augmented-optional-fields;
57         ext:mount;
58     }
59 }