Add IOVisor module location augmentation 93/29893/1
authoradetalhouet <adetalhouet@inocybe.com>
Wed, 18 Nov 2015 21:29:31 +0000 (16:29 -0500)
committeradetalhouet <adetalhouet@inocybe.com>
Wed, 18 Nov 2015 21:29:31 +0000 (16:29 -0500)
Change-Id: Ib9240de94cd95c38cb299d607c791736c7186030
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
renderers/iovisor/pom.xml
renderers/iovisor/src/main/yang/iovisor.yang

index a492d31f4342025a6170ae7990702281ba5d5dc4..14eedbf0ca8cf668205214d2a22dab74eb9259ab 100644 (file)
   </properties>
 
   <dependencies>
+    <dependency>
+      <groupId>org.opendaylight.mdsal.model</groupId>
+      <artifactId>yang-ext</artifactId>
+    </dependency>
     <!-- testing dependencies -->
     <dependency>
       <groupId>junit</groupId>
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;
+    }
 }