Fix ping pong desc generation error 50/1450/1
authorPhilip Joseph <philip.joseph@riftio.com>
Fri, 31 Mar 2017 14:14:35 +0000 (19:44 +0530)
committerPhilip Joseph <philip.joseph@riftio.com>
Fri, 31 Mar 2017 14:14:35 +0000 (19:44 +0530)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
examples/ping_pong_ns/rift/mano/examples/ping_pong_nsd.py
models/plugins/yang/nsd.yang
models/plugins/yang/project-nsd.yang

index d254cff..f047e5c 100755 (executable)
@@ -761,7 +761,7 @@ exit 0
                 member.vnfd_id_ref = member_vnfd.descriptor.vnfd[0].id
                 member.member_vnf_index_ref = vnfd_index_map[member_vnfd]
 
-        self.create_mon_params(vnfd_list)
+        self.create_mon_params(vnfd_list)
 
     def write_config(self, outdir, vnfds):
 
index 1b62881..80b01a8 100644 (file)
@@ -218,10 +218,12 @@ module nsd
           }
         }
 
-        leaf-list member-vnf-index-ref {
+        leaf member-vnf-index-ref {
           description
             "Optional reference to member-vnf within constituent-vnfds";
-          type uint64;
+          type leafref {
+            path "../../../constituent-vnfd/member-vnf-index";
+          }
         }
       }
     }
index e2be49d..1cf36af 100644 (file)
@@ -357,10 +357,12 @@ module project-nsd
           }
         }
 
-        leaf-list member-vnf-index-ref {
+        leaf member-vnf-index-ref {
           description
             "Optional reference to member-vnf within constituent-vnfds";
-          type uint64;
+          type leafref {
+            path "../../../constituent-vnfd/member-vnf-index";
+          }
         }
       }
     }
@@ -401,10 +403,12 @@ module project-nsd
           }
         }
 
-        leaf-list member-vnf-index-ref {
+        leaf member-vnf-index-ref {
           description
             "Optional reference to member-vnf within constituent-vnfds";
-          type uint64;
+          type leafref {
+            path "../../../constituent-vnfd/member-vnf-index";
+          }
         }
       }
     }