1 module odl-ofconfig-topology {
3 namespace "urn:opendaylight:params:xml:ns:yang:ofconfig:topology";
4 prefix "odl-ofconfig-topology";
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"; }
11 revision "2015-09-01" {
12 description "Initial revision of opendaylight of-config topology";
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 {
22 base odl-ofconfig-types:of-config-version-type-base;
26 leaf netconf-topology-node-id{
30 when "ofconfig-version ='of-config-type-version-12' ";
32 uses odl-ofconfig12:capable-switch-node-attributes;
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 {
41 leaf ofconfig-version {
43 base odl-ofconfig-types:of-config-version-type-base;
47 leaf netconf-topology-node-id{
53 type odl-ofconfig-types:datapath-id-type;
56 leaf capable-switch-id{
61 when "ofconfig-version ='of-config-type-version-12' ";
63 uses odl-ofconfig12:of-config-logical-switch-attributes;