Fix SO crash on instantiate from UI 43/343/1
authorPhilip Joseph <philip.joseph@riftio.com>
Fri, 16 Sep 2016 11:24:18 +0000 (07:24 -0400)
committerPhilip Joseph <philip.joseph@riftio.com>
Fri, 16 Sep 2016 11:24:18 +0000 (07:24 -0400)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
12 files changed:
common/plugins/yang/rw-cloud.tailf.yang
common/plugins/yang/rw-cloud.yang
common/plugins/yang/rw-config-agent.tailf.yang
common/plugins/yang/rw-sdn.tailf.yang
common/plugins/yang/rw-sdn.yang
examples/ping_pong_ns/CMakeLists.txt
examples/ping_pong_ns/generate_packages.sh.in
examples/ping_pong_ns/rift/mano/examples/ping_pong_nsd.py
models/openmano/src/CMakeLists.txt
models/openmano/src/generate_tidgen_packages.sh.in
models/plugins/yang/CMakeLists.txt
models/plugins/yang/rw-nsr.yang

index 3838ab7..2d65325 100644 (file)
@@ -28,14 +28,14 @@ module rw-cloud-annotation
   }
 
   import tailf-common {
-    prefix tailf;
+    prefix tailf-common;
   }
 
-  tailf:annotate "/rw-cloud:cloud/rw-cloud:account/rw-cloud:connection-status" {
-    tailf:callpoint rw_callpoint;
+  tailf-common:annotate "/rw-cloud:cloud/rw-cloud:account/rw-cloud:connection-status" {
+    tailf-common:callpoint rw_callpoint;
   }
 
-  tailf:annotate "/rw-cloud:update-cloud-status" {
-    tailf:actionpoint rw_actionpoint;
+  tailf-common:annotate "/rw-cloud:update-cloud-status" {
+    tailf-common:actionpoint rw_actionpoint;
   }
 }
index f580e93..e4682ac 100644 (file)
@@ -25,15 +25,7 @@ module rw-cloud
 
 
   import rw-pb-ext {
-    prefix "rwpb";
-  }
-
-  import rw-cli-ext {
-    prefix "rwcli";
-  }
-
-  import rw-yang-types {
-    prefix "rwt";
+    prefix "rw-pb-ext";
   }
 
   import rwcal {
@@ -50,9 +42,9 @@ module rw-cloud
   }
 
   container cloud {
-    rwpb:msg-new CloudConfig;
+    rw-pb-ext:msg-new CloudConfig;
     list account {
-      rwpb:msg-new CloudAccount;
+      rw-pb-ext:msg-new CloudAccount;
       description "Configure Cloud Accounts";
 
       max-elements 16;
index 85f6eca..07f0d74 100644 (file)
@@ -28,14 +28,14 @@ module rw-config-agent-annotation
   }
 
   import tailf-common {
-    prefix tailf;
+    prefix tailf-common;
   }
 
-  tailf:annotate "/rw-config-agent:config-agent/rw-config-agent:account/rw-config-agent:connection-status" {
-    tailf:callpoint rw_callpoint;
+  tailf-common:annotate "/rw-config-agent:config-agent/rw-config-agent:account/rw-config-agent:connection-status" {
+    tailf-common:callpoint rw_callpoint;
   }
 
-  tailf:annotate "/rw-config-agent:update-cfg-agent-status" {
-    tailf:actionpoint rw_actionpoint;
+  tailf-common:annotate "/rw-config-agent:update-cfg-agent-status" {
+    tailf-common:actionpoint rw_actionpoint;
   }
 }
index 89ee4ec..c8a4d46 100644 (file)
@@ -27,14 +27,14 @@ module rw-sdn-annotation
     prefix rw-sdn;
   }
   import tailf-common {
-    prefix tailf;
+    prefix tailf-common;
   }
 
-  tailf:annotate "/rw-sdn:sdn-account/rw-sdn:connection-status" {
-    tailf:callpoint rw_callpoint;
+  tailf-common:annotate "/rw-sdn:sdn-account/rw-sdn:connection-status" {
+    tailf-common:callpoint rw_callpoint;
   }
 
-  tailf:annotate "/rw-sdn:update-sdn-status" {
-    tailf:actionpoint rw_actionpoint;
+  tailf-common:annotate "/rw-sdn:update-sdn-status" {
+    tailf-common:actionpoint rw_actionpoint;
   }
 }
index 5b82d47..0a5b228 100644 (file)
@@ -25,15 +25,7 @@ module rw-sdn
 
 
   import rw-pb-ext {
-    prefix "rwpb";
-  }
-
-  import rw-cli-ext {
-    prefix "rwcli";
-  }
-
-  import rw-yang-types {
-    prefix "rwt";
+    prefix "rw-pb-ext";
   }
 
   import rwsdn {
@@ -46,7 +38,7 @@ module rw-sdn
   }
 
   list sdn-account {
-    rwpb:msg-new SDNAccountConfig;
+    rw-pb-ext:msg-new SDNAccountConfig;
 
     key "name";
     leaf name {
index 9667465..e373c2a 100644 (file)
@@ -39,18 +39,18 @@ set(PACKAGE_OUTPUT
 add_custom_command(
     OUTPUT ${PACKAGE_OUTPUT}
     COMMAND ${CMAKE_CURRENT_BINARY_DIR}/generate_packages.sh
-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ping_pong_nsd.py
+    DEPENDS mano_yang rwcloud_yang ${CMAKE_CURRENT_SOURCE_DIR}/ping_pong_nsd.py
   )
 
 add_custom_target(ping_pong_pkg_gen ALL
-    DEPENDS mano_yang ${PACKAGE_OUTPUT}
+    DEPENDS mano_yang rwcloud_yang ${PACKAGE_OUTPUT}
   )
 
 install(
     FILES ${PACKAGE_OUTPUT}
     DESTINATION
       usr/rift/mano/examples/ping_pong_ns
-    COMPONENT ${PKG_LONG_NAME}
+      COMPONENT ${PKG_LONG_NAME}
     )
 
 install(
index ae54052..5fa0a8f 100755 (executable)
@@ -12,9 +12,9 @@ PONG_QCOW_IMAGE=${RIFT_ROOT}/images/Fedora-x86_64-20-20131211.1-sda-pong.qcow2
 PING_QCOW_IMAGE=${RIFT_ROOT}/images/Fedora-x86_64-20-20131211.1-sda-ping.qcow2
 
 # These paths are needed for finding the overrides and so files
-PYTHONPATH=${PYTHONPATH}:@RIFT_SUBMODULE_SOURCE_ROOT@/rwvcs/ra:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang
-PYTHON3PATH=${PYTHON3PATH}:@RIFT_SUBMODULE_SOURCE_ROOT@/rwvcs/ra:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang
-LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang
+PYTHONPATH=@RIFT_SUBMODULE_SOURCE_ROOT@/rwvcs/ra:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang:${PYTHONPATH}
+PYTHON3PATH=@RIFT_SUBMODULE_SOURCE_ROOT@/rwvcs/ra:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang:${PYTHON3PATH}
+LD_LIBRARY_PATH=@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang:@RIFT_SUBMODULE_BINARY_ROOT@/common/plugins/yang:${LD_LIBRARY_PATH}
 
 #Rift Logos
 PING_VNFD_LOGO=${SOURCE_DIR}/rift_logo.png
index bb834ed..5348e00 100755 (executable)
@@ -37,7 +37,7 @@ from gi.repository import (
     RwVnfdYang,
     VnfdYang,
     RwYang,
-    )
+)
 
 
 try:
index 949bb8b..d5ad460 100644 (file)
@@ -40,6 +40,8 @@ add_custom_command(
     ${CMAKE_CURRENT_BINARY_DIR}/generate_tidgen_packages.sh
 
   DEPENDS
+    mano_yang
+    rwcloud_yang
     ${RIFT_SUBMODULE_SOURCE_ROOT}/models/openmano/test/tidgen_ns_2sriov.yaml
     ${RIFT_SUBMODULE_SOURCE_ROOT}/models/openmano/test/tidgen_ns_4sriov.yaml
     ${RIFT_SUBMODULE_SOURCE_ROOT}/models/openmano/test/tidgen_vnf_2sriov.yaml
@@ -54,6 +56,7 @@ add_custom_command(
 add_custom_target(tidgen ALL
   DEPENDS
     mano_yang
+    rwcloud_yang
     ${CMAKE_CURRENT_BINARY_DIR}/2tidgenMWC_2sriov.tar.gz
     ${CMAKE_CURRENT_BINARY_DIR}/tidgenMWC_2sriov.tar.gz
     ${CMAKE_CURRENT_BINARY_DIR}/2tidgenMWC_4sriov.tar.gz
@@ -75,8 +78,7 @@ install(
     ${CMAKE_CURRENT_BINARY_DIR}/2tidgenMWC_2sriov_no_ctrlnet.tar.gz
     ${CMAKE_CURRENT_BINARY_DIR}/tidgenMWC_2sriov_no_ctrlnet.tar.gz
 
-    
-  DESTINATION
+ DESTINATION
     usr/rift/mano/examples/tidgen_ns
     COMPONENT ${PKG_LONG_NAME}
   )
index 208d2cd..3c50cef 100755 (executable)
@@ -9,7 +9,7 @@ PROJECT_TOP_DIR=@PROJECT_TOP_DIR@
 # These paths are needed for finding the overrides and so files
 PYTHONPATH=${PYTHONPATH}:@RIFT_SUBMODULE_SOURCE_ROOT@/rwvcs/ra:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang
 PYTHON3PATH=${PYTHON3PATH}:@RIFT_SUBMODULE_SOURCE_ROOT@/rwvcs/ra:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang
-LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang
+LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:@RIFT_SUBMODULE_BINARY_ROOT@/models/plugins/yang:@RIFT_SUBMODULE_BINARY_ROOT@/common/plugins/yang
 
 # Remove any old directories
 rm -rf ${BINARY_DIR}/2tidgenMWC_4sriov
index 782415b..2f6e964 100644 (file)
@@ -51,6 +51,9 @@ rift_add_yang_target(
     rwcloud_yang_gen
     rwconfig_agent_yang_gen
     mano-types_yang_gen
+  DEPENDS
+    rwcloud_yang
+    rwconfig_agent_yang
   )
 
 #rift_gen_yang_tree(mano-pyang-trees
index d73e7fa..ae2c92a 100644 (file)
@@ -40,7 +40,7 @@ module rw-nsr
   }
 
   import rw-config-agent {
-    prefix "rw-ca";
+    prefix "rw-config-agent";
   }
 
   import rw-sdn {
@@ -172,7 +172,7 @@ module rw-nsr
           The configuration for this VNF will be driven using the specified config
           agent account";
         type leafref {
-          path "/rw-ca:config-agent/rw-ca:account/rw-ca:name";
+          path "/rw-config-agent:config-agent/rw-config-agent:account/rw-config-agent:name";
         }
       }
     }