Add IOVisor module location augmentation
[groupbasedpolicy.git] / renderers / iovisor / src / main / yang / iovisor.yang
index c163c3a65ba41132534e10c88a9c13a6ecd4d593..b9aa1f5ede65a5868966392020b2abc7b8d462f4 100644 (file)
@@ -12,6 +12,10 @@ module iovisor {
     namespace "urn:opendaylight:groupbasedpolicy:iovisor";
     prefix "iovisor";
 
+    import yang-ext {prefix ext; revision-date "2013-07-09";}
+    import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
+    import endpoint { prefix endpoint; }
+
     description
         "This module defines the group-based policy iovisor renderer model.";
 
@@ -20,9 +24,16 @@ module iovisor {
                 "Initial revision.";
     }
 
-    container iovisor-renderer {
-        leaf iovisor-renderer-name {
-            type string;
+    grouping iovisor-module-location {
+        leaf iom-uri {
+            type inet:uri;
+            description "IOVisor module uniform resource identifier.";
         }
     }
+    
+    augment "/endpoint:endpoints" {
+        description "Augmentation adding the IOVisor module location";
+        ext:augment-identifier "iovior-module-location";
+        uses iovisor-module-location;
+    }
 }