diff options
author | Timoney, Daniel (dt5972) <dtimoney@att.com> | 2017-02-15 10:37:53 -0500 |
---|---|---|
committer | Timoney, Daniel (dt5972) <dtimoney@att.com> | 2017-02-15 10:40:37 -0500 |
commit | 324ee36fe31763e507b422ab0a88e4230045e205 (patch) | |
tree | d0b04520f6657601c918ce63fd27575977624187 /dgbuilder/svclogic | |
parent | f0c97e8db427481e28c0a16b789bc73801b35e47 (diff) |
Initial commit for OpenECOMP SDN-C OA&M
Change-Id: I7ab579fd0d206bf356f36d52dcdf4f71f1fa2680
Signed-off-by: Timoney, Daniel (dt5972) <dtimoney@att.com>
Former-commit-id: 2a9f0edd09581f907e62ec4689b5ac94dd5382ba
Diffstat (limited to 'dgbuilder/svclogic')
-rwxr-xr-x | dgbuilder/svclogic/copy_xml.sh | 4 | ||||
-rw-r--r-- | dgbuilder/svclogic/dg.xml | 2 | ||||
-rw-r--r-- | dgbuilder/svclogic/lib/antlr4-4.5.1.jar | bin | 0 -> 1478697 bytes | |||
-rw-r--r-- | dgbuilder/svclogic/lib/commons-lang3-3.1.jar | bin | 0 -> 315805 bytes | |||
-rw-r--r-- | dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jar | bin | 0 -> 964879 bytes | |||
-rw-r--r-- | dgbuilder/svclogic/lib/slf4j-api-1.6.1.jar | bin | 0 -> 25496 bytes | |||
-rw-r--r-- | dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jar | bin | 0 -> 10680 bytes | |||
-rw-r--r-- | dgbuilder/svclogic/lib/sli-common.jar | bin | 0 -> 489557 bytes | |||
-rwxr-xr-x | dgbuilder/svclogic/load_dg | 1 | ||||
-rw-r--r-- | dgbuilder/svclogic/svclogic.properties | 5 | ||||
-rwxr-xr-x | dgbuilder/svclogic/svclogic.sh | 14 |
11 files changed, 26 insertions, 0 deletions
diff --git a/dgbuilder/svclogic/copy_xml.sh b/dgbuilder/svclogic/copy_xml.sh new file mode 100755 index 00000000..8b2cc4ee --- /dev/null +++ b/dgbuilder/svclogic/copy_xml.sh @@ -0,0 +1,4 @@ +dt=$(date +'%m%d%Y_%H%M%S') +mv ~/dg_xml/dg.xml ~/dg_xml/dg_${dt}.xml +cp $(ls -ltr /home/users/schinthakayala/nodered/production/flowDesigner/users/sheshi/xml/*.xml|tail -1|awk '{print $NF}') ~/dg_xml/dg.xml +echo "copied the latest DG" diff --git a/dgbuilder/svclogic/dg.xml b/dgbuilder/svclogic/dg.xml new file mode 100644 index 00000000..e8e101eb --- /dev/null +++ b/dgbuilder/svclogic/dg.xml @@ -0,0 +1,2 @@ +<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='ModuleName' version='1.0.0'><method rpc='rpcName' mode='sync'> +</method></service-logic> diff --git a/dgbuilder/svclogic/lib/antlr4-4.5.1.jar b/dgbuilder/svclogic/lib/antlr4-4.5.1.jar Binary files differnew file mode 100644 index 00000000..81039db1 --- /dev/null +++ b/dgbuilder/svclogic/lib/antlr4-4.5.1.jar diff --git a/dgbuilder/svclogic/lib/commons-lang3-3.1.jar b/dgbuilder/svclogic/lib/commons-lang3-3.1.jar Binary files differnew file mode 100644 index 00000000..a85e539b --- /dev/null +++ b/dgbuilder/svclogic/lib/commons-lang3-3.1.jar diff --git a/dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jar b/dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jar Binary files differnew file mode 100644 index 00000000..26864e49 --- /dev/null +++ b/dgbuilder/svclogic/lib/mysql-connector-java-5.1.31.jar diff --git a/dgbuilder/svclogic/lib/slf4j-api-1.6.1.jar b/dgbuilder/svclogic/lib/slf4j-api-1.6.1.jar Binary files differnew file mode 100644 index 00000000..f1f4fdd2 --- /dev/null +++ b/dgbuilder/svclogic/lib/slf4j-api-1.6.1.jar diff --git a/dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jar b/dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jar Binary files differnew file mode 100644 index 00000000..eca11dd4 --- /dev/null +++ b/dgbuilder/svclogic/lib/slf4j-simple-1.7.5.jar diff --git a/dgbuilder/svclogic/lib/sli-common.jar b/dgbuilder/svclogic/lib/sli-common.jar Binary files differnew file mode 100644 index 00000000..beacbe7a --- /dev/null +++ b/dgbuilder/svclogic/lib/sli-common.jar diff --git a/dgbuilder/svclogic/load_dg b/dgbuilder/svclogic/load_dg new file mode 100755 index 00000000..e13745b2 --- /dev/null +++ b/dgbuilder/svclogic/load_dg @@ -0,0 +1 @@ +/home/users/schinthakayala/dg_xml/svclogic.sh load /home/users/schinthakayala/dg_xml/dg.xml /home/users/schinthakayala/dg_xml/svclogic.properties diff --git a/dgbuilder/svclogic/svclogic.properties b/dgbuilder/svclogic/svclogic.properties new file mode 100644 index 00000000..69ffd84c --- /dev/null +++ b/dgbuilder/svclogic/svclogic.properties @@ -0,0 +1,5 @@ +org.openecomp.sdnc.sli.dbtype = jdbc
+org.openecomp.sdnc.sli.jdbc.url = jdbc:mysql://dbhost:3306/sdnctl
+org.openecomp.sdnc.sli.jdbc.database = sdnctl
+org.openecomp.sdnc.sli.jdbc.user = sdnctl
+org.openecomp.sdnc.sli.jdbc.password = gamma
diff --git a/dgbuilder/svclogic/svclogic.sh b/dgbuilder/svclogic/svclogic.sh new file mode 100755 index 00000000..b54e521b --- /dev/null +++ b/dgbuilder/svclogic/svclogic.sh @@ -0,0 +1,14 @@ +#!/bin/bash +#echo "PROJECT_HOME:$PROJECT_HOME" + +MYSQL_JDBC_DRIVER=${MYSQL_JDBC_DRIVER:-$PROJECT_HOME/svclogic/lib/mysql-connector-java-5.1.31.jar} +JARDIR="$PROJECT_HOME/svclogic/lib" +#JARDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +CLASSPATH=$CLASSPATH:$MYSQL_JDBC_DRIVER +for jar in $JARDIR/*.jar +do + CLASSPATH=$CLASSPATH:${jar} +done +#echo "CLASSPATH is ${CLASSPATH}" +java -cp ${CLASSPATH}:${MYSQL_JDBC_DRIVER}:${SLI_COMMON_JAR} org.openecomp.sdnc.sli.SvcLogicParser $* |