Bump versions by x.y.(z+1)
[of-config.git] / southbound / southbound-api / src / main / yang / odl-ofconfig-topology.yang
1 module odl-ofconfig-topology {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:ofconfig:topology";
4     prefix "odl-ofconfig-topology";
5     
6     import yang-ext { prefix "ext";revision-date "2013-07-09"; }
7     import odl-ofconfig-types { prefix "odl-ofconfig-types"; revision-date "2015-09-01";}
8     import odl-ofconfig12 { prefix "odl-ofconfig12"; revision-date "2015-09-01";}
9     import network-topology {prefix "topo"; revision-date "2013-10-21"; }
10     
11     revision "2015-09-01" {
12         description "Initial revision of opendaylight of-config topology";
13     }
14     
15
16         augment "/topo:network-topology/topo:topology/topo:node" {
17         description "Augmentation for capable-switch nodes managed by of-config";
18         ext:augment-identifier "ofconfig-capable-switch-augmentation";
19         container ofconfig-capable-switch-attributes { 
20                 leaf ofconfig-version {
21                     type identityref {
22                         base odl-ofconfig-types:of-config-version-type-base;
23                     }
24                 }
25                 
26                 leaf netconf-topology-node-id{
27                         type string;
28                 }
29                 
30                  when "ofconfig-version ='of-config-type-version-12' ";
31                                 
32                             uses odl-ofconfig12:capable-switch-node-attributes;
33                          } 
34     }
35     
36     augment "/topo:network-topology/topo:topology/topo:node" {
37         description "Augmentation for logical-switch nodes managed by of-config";
38         ext:augment-identifier "ofconfig-logical-switch-augmentation";
39         container ofconfig-logical-switch-attributes { 
40         
41                 leaf ofconfig-version {
42                     type identityref {
43                         base odl-ofconfig-types:of-config-version-type-base;
44                     }
45                 }
46                 
47                 leaf netconf-topology-node-id{
48                         type string;
49                 }
50         
51                         leaf datapath-id{
52                                 config false;
53                                 type odl-ofconfig-types:datapath-id-type;
54                         }
55                         
56                         leaf capable-switch-id{
57                                 config false;
58                                 type string;
59                         }
60                         
61                         when "ofconfig-version ='of-config-type-version-12' ";
62                                 
63                                 uses odl-ofconfig12:of-config-logical-switch-attributes;
64                         } 
65
66
67     }
68     
69     
70 }
71