Merge "Bug 65 resolved." v1.0.0
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Thu, 29 Sep 2016 19:05:58 +0000 (21:05 +0200)
committerGerrit Code Review <root@osm.etsi.org>
Thu, 29 Sep 2016 19:05:58 +0000 (21:05 +0200)
skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx
skyquake/scripts/launch_ui.sh

index ec40ccf..dc40ed6 100644 (file)
@@ -305,8 +305,14 @@ export default class InstantiateInputParams extends Component {
     );
   }
   ipProfilesHTML = (props) => {
+    let vldHasIPprofile = false;
+    props.vlds && props.vlds.map(function(v){
+      if(v.type == 'ip-profile-ref') {
+        vldHasIPprofile = true;
+      }
+    })
     let ipProfileList = props.ipProfileList;
-    return ipProfileList &&
+    return ipProfileList && vldHasIPprofile &&
       (
       <div className="configure-nsd_section">
         <h3 className="launchpadCard_title">IP Profiles</h3>
index 9b6b122..5a8f175 100755 (executable)
@@ -36,9 +36,9 @@ start_servers() {
        echo "Running Node.js Skyquake server. HTTPS Enabled: ${ENABLE_HTTPS}"
        cd ..
        if [ ! -z "${ENABLE_HTTPS}" ]; then
-               forever start -a -l /dev/null -o out.log -e err.log skyquake.js --enable-https --keyfile-path="${KEYFILE_PATH}" --certfile-path="${CERTFILE_PATH}"
+               forever start -a -l forever.log -o out.log -e err.log skyquake.js       --enable-https --keyfile-path="${KEYFILE_PATH}" --certfile-path="${CERTFILE_PATH}"
        else
-               forever start -a -l /dev/null -o out.log -e err.log skyquake.js
+               forever start -a -l forever.log -o out.log -e err.log skyquake.js
        fi
 }