Merge "Add handling for keystone url w/o version"
authorMarco Platania <platania@research.att.com>
Thu, 30 Nov 2017 15:25:36 +0000 (15:25 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 30 Nov 2017 15:25:36 +0000 (15:25 +0000)
18 files changed:
heat/ONAP/onap_openstack.env
heat/ONAP/onap_openstack_template.env
pom.xml
version.properties
vnfs/VES/pom.xml
vnfs/VES5.0/pom.xml
vnfs/VESreporting_vFW/pom.xml
vnfs/VESreporting_vFW5.0/pom.xml
vnfs/VESreporting_vLB/pom.xml
vnfs/VESreporting_vLB5.0/pom.xml
vnfs/honeycomb_plugin/sample_plugin/parent-pom/pom.xml
vnfs/honeycomb_plugin/sample_plugin/sample-distribution/pom.xml
vnfs/vCPE/kea-sdnc-notify-mod/pom.xml
vnfs/vCPE/scripts/v_gmux_install.sh
vnfs/vFW/pg_streams/pom.xml
vnfs/vLB/DNSClient/pom.xml
vnfs/vLB/DNSManager/pom.xml
vnfs/vLB/dns_streams/pom.xml

index ac088bc..56a8e62 100644 (file)
@@ -119,7 +119,7 @@ parameters:
   appc_branch: master
   so_branch: master
   mr_branch: master
-  policy_branch: master
+  policy_branch: amsterdam
   portal_branch: release-1.3.0
   robot_branch: master
   sdc_branch: master
index 9962212..40cdb01 100644 (file)
@@ -119,7 +119,7 @@ parameters:
   appc_branch: master
   so_branch: master
   mr_branch: master
-  policy_branch: master
+  policy_branch: amsterdam
   portal_branch: release-1.3.0
   robot_branch: master
   sdc_branch: master
diff --git a/pom.xml b/pom.xml
index 39b35ae..dc3d7d2 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
 
   <groupId>org.onap.demo.vnf</groupId>
   <artifactId>demo-aggregator</artifactId>
-  <version>1.1.0-SNAPSHOT</version>
+  <version>1.2.0-SNAPSHOT</version>
   <name>demo</name>
   <packaging>pom</packaging>
   <modelVersion>4.0.0</modelVersion>
index 1c6eb43..6ef50aa 100644 (file)
@@ -2,7 +2,7 @@
 # because they are used in Jenkins, whose plug-in doesn't support
 
 major=1
-minor=1
+minor=2
 patch=0
 
 base_version=${major}.${minor}.${patch}
index b45b028..554786d 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
index fdd1241..cabebf6 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
index 9963f9f..5afc23e 100644 (file)
@@ -28,7 +28,7 @@
 <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
index 496ee25..2e0df62 100644 (file)
@@ -28,7 +28,7 @@
 <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
index 8376752..9a52a67 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
index fa40923..70c906c 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../pom.xml</relativePath>
   </parent>
 
index da9c568..f0656b7 100644 (file)
@@ -26,7 +26,7 @@
 <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../../../pom.xml</relativePath>
 </parent>
 
index 3903843..ed3b2c0 100755 (executable)
@@ -10,7 +10,7 @@
 <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>hc-onap</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../parent-pom/pom.xml</relativePath>
 </parent>
 
index f2f6279..8e0b3a4 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../../pom.xml</relativePath>
   </parent>
 
index 5e98fe1..e1702ee 100644 (file)
@@ -397,6 +397,7 @@ After=vpp.service
 
 [Service]
 ExecStart=/opt/honeycomb/honeycomb
+ExecStop=/opt/reset_ves_mode.sh
 Restart=always
 RestartSec=10
 
@@ -405,6 +406,19 @@ WantedBy=multi-user.target
 EOF
     systemctl enable /etc/systemd/system/honeycomb.service
 
+    # Create script that is used to reset the ves mode configuration
+    # when the honeycomb service is stopped
+    cat > /opt/reset_ves_mode.sh << EOF
+#!/bin/bash
+mode_data=\$(curl -X GET -u admin:admin http://127.0.0.1:8183/restconf/config/vesagent:vesagent/mode 2>/dev/null | sed s/\"base-packet-loss\":[0-9]\*,/\"base-packet-loss\":0,/)
+if [[ "\${mode_data}" != "" ]]
+then
+    curl -X DELETE -u admin:admin http://127.0.0.1:8183/restconf/config/vesagent:vesagent/mode
+    curl -H "Content-Type:application/json" --data "\${mode_data}" -X POST -u admin:admin http://127.0.0.1:8183/restconf/config/vesagent:vesagent
+fi
+EOF
+    chmod a+x /opt/reset_ves_mode.sh
+
     #Create a systemd service for auto-save
     cat > /usr/bin/save_config << EOF
 #!/bin/bash
@@ -463,30 +477,6 @@ write_startup_scripts()
        fi
 }
 
-# Saves the VES agent configuration to the startup script.
-#
-# Get the current VES agent configuration from the bash command:
-# \$vppctl show ves agent
-#    Server Addr    Server Port Interval Enabled
-#    127.0.0.1        8080         10    True
-# Set the VES agent configuration with the bash command:
-# \$vppctl set ves agent server 127.0.0.1 port 8080 intval 10
-#
-save_ves_config()
-{
-       local server=""
-       local port=""
-       local intval=""
-
-       local ves_config=\`vppctl show ves agent | head -2 | tail -1\`
-       if [ "\${ves_config}" != "" ] ;then
-               server=\`echo \${ves_config} | awk '{ print \$1 }'\`
-               port=\`echo \${ves_config} | awk '{ print \$2 }'\`
-               intval=\`echo \${ves_config} | awk '{ print \$3 }'\`
-               write_startup_scripts add "set ves agent server \${server} port \${port} intval \${intval}"
-       fi
-}
-
 # Save the VxLAN Tunnel Configuration to the startup script.
 #
 # Get the current VxLAN tunnel configuration with bash command:
@@ -551,8 +541,6 @@ save_vxlan_xconnect()
 
 ################################# MAIN ###################################
 
-save_ves_config
-
 save_vxlan_tunnel
 
 save_vxlan_xconnect
index cea0a7c..fcbd871 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../../pom.xml</relativePath>
   </parent>
 
index cd746b7..497922f 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../../pom.xml</relativePath>
   </parent>
 
index 4d837b2..2b94858 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../../pom.xml</relativePath>
   </parent>
 
index ca758f8..000736c 100644 (file)
@@ -28,7 +28,7 @@
   <parent>
     <groupId>org.onap.demo.vnf</groupId>
     <artifactId>demo-aggregator</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.2.0-SNAPSHOT</version>
     <relativePath>../../../pom.xml</relativePath>
   </parent>