HC2VPP-94 - Bridge-domain-ref 52/6052/2
authorJan Srnicek <[email protected]>
Wed, 5 Apr 2017 11:08:05 +0000 (13:08 +0200)
committerMarek Gradzki <[email protected]>
Fri, 21 Apr 2017 07:11:43 +0000 (07:11 +0000)
leafref used instead of plain string reference

Change-Id: If2eb7c8cc3dbd9a03d5ded70b0bdb20ec7f03a63
Signed-off-by: Jan Srnicek <[email protected]>
lisp/api/pom.xml
lisp/api/src/main/yang/lisp.yang

index e509dce..3948578 100755 (executable)
             <artifactId>naming-context-api</artifactId>
             <version>${naming.context.version}</version>
         </dependency>
+
+        <!-- Bridge domains reference -->
+        <dependency>
+            <groupId>io.fd.hc2vpp.v3po</groupId>
+            <artifactId>v3po-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
     </dependencies>
 </project>
\ No newline at end of file
index f0d8f1a..61e321c 100755 (executable)
@@ -12,6 +12,9 @@ module lisp {
   import ietf-lisp-address-types {
     prefix "lisp-types";
   }
+  import v3po {
+    prefix "v3po";
+  }
   organization
     "FD.io Overlay Forwarding Engine (ONE) project";
   contact
@@ -319,8 +322,8 @@ module lisp {
         container bridge-domain-subtable {
           presence "Enable L2 mapping";
           leaf bridge-domain-ref {
-            type string;
-            description "Name reference to existing bridge domain";
+            type v3po:bridge-domain-ref;
+            description "Reference to existing bridge domain";
             // TODO - HC2VPP-73 - commented due to ODL Boron issues
             // mandatory true;
           }