From ca4025003edc76959a23d70a6604885823ee596b Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Tue, 1 Aug 2017 10:30:53 -0700 Subject: Adding new directed graphs Added Generic_Restart and legacy_operation and updated topology_operation_all. Created VNF_DG_MAPPING.sql and added code for this sql at the end of "install.sh". Change-Id: Ib741740e8be43cda22c648215b0d7096b95ea2ed Signed-off-by: Patrick Brady Issue:APPC-88 --- .../main/xml/APPC_method_Generic_Restart_2.0.1.xml | 246 +++++++++++++++++++++ .../xml/APPC_method_legacy_operation_2.0.0.xml | 36 +++ .../installer/src/main/scripts/VNF_DG_MAPPING.sql | 30 +++ .../installer/src/main/scripts/install.sh | 8 + 4 files changed, 320 insertions(+) create mode 100644 platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_2.0.1.xml create mode 100644 platform-logic/appc/src/main/xml/APPC_method_legacy_operation_2.0.0.xml create mode 100644 platform-logic/installer/src/main/scripts/VNF_DG_MAPPING.sql diff --git a/platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_2.0.1.xml b/platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_2.0.1.xml new file mode 100644 index 0000000..19c88f9 --- /dev/null +++ b/platform-logic/appc/src/main/xml/APPC_method_Generic_Restart_2.0.1.xml @@ -0,0 +1,246 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform-logic/appc/src/main/xml/APPC_method_legacy_operation_2.0.0.xml b/platform-logic/appc/src/main/xml/APPC_method_legacy_operation_2.0.0.xml new file mode 100644 index 0000000..f24c454 --- /dev/null +++ b/platform-logic/appc/src/main/xml/APPC_method_legacy_operation_2.0.0.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + diff --git a/platform-logic/installer/src/main/scripts/VNF_DG_MAPPING.sql b/platform-logic/installer/src/main/scripts/VNF_DG_MAPPING.sql new file mode 100644 index 0000000..764e694 --- /dev/null +++ b/platform-logic/installer/src/main/scripts/VNF_DG_MAPPING.sql @@ -0,0 +1,30 @@ +-- +-- Table structure for table `VNF_DG_MAPPING` +-- + +USE sdnctl; +DROP TABLE IF EXISTS `VNF_DG_MAPPING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `VNF_DG_MAPPING` ( + `action` varchar(50) NOT NULL, + `api_version` varchar(50) DEFAULT NULL, + `vnf_type` varchar(50) DEFAULT NULL, + `vnf_version` varchar(50) DEFAULT NULL, + `dg_name` varchar(50) NOT NULL, + `dg_version` varchar(50) DEFAULT NULL, + `dg_module` varchar(50) NOT NULL, + UNIQUE KEY `INPUT_CONSTRAINT` (`action`,`api_version`,`vnf_type`,`vnf_version`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `VNF_DG_MAPPING` +-- + +LOCK TABLES `VNF_DG_MAPPING` WRITE; +/*!40000 ALTER TABLE `VNF_DG_MAPPING` DISABLE KEYS */; +INSERT INTO `VNF_DG_MAPPING` VALUES ('Restart','2.01','','','legacy_operation','2.0.0','APPC'), ('Restart','2.00','','','Restart_VNF','2.0.1','APPC'); + +/*!40000 ALTER TABLE `VNF_DG_MAPPING` ENABLE KEYS */; +UNLOCK TABLES; diff --git a/platform-logic/installer/src/main/scripts/install.sh b/platform-logic/installer/src/main/scripts/install.sh index ddf3933..9711b70 100644 --- a/platform-logic/installer/src/main/scripts/install.sh +++ b/platform-logic/installer/src/main/scripts/install.sh @@ -46,3 +46,11 @@ do done < <(cat $graphlist) done +MYSQL_USER=${MYSQL_USER:-sdnctl} +MYSQL_PWD=${MYSQL_PWD:-gamma} +MYSQL_DB=${MYSQL_DB:-sdnctl} +MYSQL_HOST=${MYSQL_HOST:-dbhost} + +mysql --user=${MYSQL_USER} --password=${MYSQL_PWD} --host=${MYSQL_HOST} ${MYSQL_DB} <<-END +SOURCE VNF_DG_MAPPING.sql +END -- cgit 1.2.3-korg