diff options
-rw-r--r-- | installation/appc/src/main/resources/sqlData.dump | 12 | ||||
-rw-r--r-- | installation/appc/src/main/scripts/installAppcDb.sh | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/installation/appc/src/main/resources/sqlData.dump b/installation/appc/src/main/resources/sqlData.dump new file mode 100644 index 0000000..88355d9 --- /dev/null +++ b/installation/appc/src/main/resources/sqlData.dump @@ -0,0 +1,12 @@ +USE sdnctl; +LOCK TABLES `ACTION_LEVEL_REFERENCE` WRITE; +INSERT INTO `ACTION_LEVEL_REFERENCE` VALUES (1,'vnf-id','vnf'),(2,'vserver-id','vm'),(3,'vnfc-name','vnfc'),(4,'vf-module-id','vf-module'); +UNLOCK TABLES; + +LOCK TABLES `MULTISTEP_FLOW_REFERENCE` WRITE; +INSERT INTO `MULTISTEP_FLOW_REFERENCE` VALUES (1,'Restart','vnf','vFW',NULL,'multistep_flow_reference.category',NULL,NULL,'ac204h','2017-10-30 19:23:07'); +UNLOCK TABLES; + +LOCK TABLES `PROCESS_FLOW_REFERENCE` WRITE; +INSERT INTO `PROCESS_FLOW_REFERENCE` VALUES (12,'Configure','vnf','CLI','graph','APPC','Generic_Configure','2017-08-25 19:40:04',NULL),(13,'Configure','vnf','NETCONF-XML','graph','APPC','Generic_Configure','2017-08-25 19:40:04',NULL),(14,'ConfigRestore','vnf','CLI','graph','APPC','Generic_Configure','2017-08-25 19:40:04',NULL),(15,'ConfigureRestore','vnf','NETCONF-XML','graph','APPC','Generic_Configure','2017-08-25 19:40:04',NULL),(16,'ConfigModify','vnf','CLI','graph','APPC','Generic_Configure','2017-08-25 19:40:05',NULL),(17,'ConfigModify','vnf','NETCONF-XML','graph','APPC','Generic_Configure','2017-08-25 19:40:05',NULL),(19,'rebuild','vm','OS','graph','APPC','RebuildVM','2017-08-25 19:40:05',NULL),(21,'migrate','vm','OS','graph','APPC','MigrateVM','2017-08-25 19:40:05',NULL),(22,'restart','vm','OS','graph','APPC','RestartVMVNFCommonFlow','2017-08-25 19:40:05',NULL),(23,'Configure','vnf','Chef','graph','APPC','Generic_Configure','2017-08-25 19:40:05',NULL),(24,'Configure','vnf','Ansible','graph','APPC','Generic_Configure','2017-08-25 19:40:05',NULL),(25,'HealthCheck','vnf','REST','graph','APPC','healthcheck','2017-08-25 19:40:06',NULL),(26,'HealthCheck','vnf','Chef','graph','APPC','Generic_ChefDG','2017-08-25 19:40:06',NULL),(27,'HealthCheck','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-08-25 19:40:06',NULL),(28,'StopApplication','vnf','Chef','graph','APPC','Generic_ChefDG','2017-08-25 19:40:06',NULL),(29,'StopApplication','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-08-25 19:40:06',NULL),(30,'StartApplication','vnf','Chef','graph','APPC','Generic_ChefDG','2017-08-25 19:40:06',NULL),(31,'StartApplication','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-08-25 19:40:06',NULL),(32,'ConfigRestore','vnf','Chef','graph','APPC','Generic_ChefDG','2017-08-25 19:40:06',NULL),(33,'ConfigRestore','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-08-25 19:40:06',NULL),(34,'ConfigBackup','vnf','Chef','graph','APPC','Generic_ChefDG','2017-08-25 19:40:07',NULL),(35,'ConfigBackup','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-08-25 19:40:07',NULL),(38,'ConfigRestore','vnf','CLI','graph','APPC','Generic_Configure','2017-09-12 13:33:14',NULL),(39,'ConfigRestore','vnf','CLI','graph','APPC','Generic_Configure','2017-09-12 13:35:11',NULL),(40,'Configure','vnf','CLI','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(41,'Configure','vnf','NETCONF-XML','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(42,'ConfigureRestore','vnf','CLI','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(43,'ConfigureRestore','vnf','NETCONF-XML','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(44,'ConfigModify','vnf','CLI','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(45,'ConfigModify','vnf','NETCONF-XML','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(46,'evacuate','vm','OS','graph','APPC','EvacuateVM','2017-09-12 16:49:54',NULL),(47,'rebuild','vm','OS','graph','APPC','RebuildVM','2017-09-12 16:49:54',NULL),(48,'snapshot','vm','OS','graph','APPC','CreateSnapShotVM','2017-09-12 16:49:54',NULL),(49,'migrate','vm','OS','graph','APPC','MigrateVM','2017-09-12 16:49:54',NULL),(50,'restart','vm','OS','graph','APPC','RestartVMVNFCommonFlow','2017-09-12 16:49:54',NULL),(51,'Configure','vnf','Chef','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(52,'Configure','vnf','Ansible','graph','APPC','Generic_Configure','2017-09-12 16:49:54',NULL),(53,'HealthCheck','vnf','REST','graph','APPC','healthcheck','2017-09-12 16:49:54',NULL),(54,'HealthCheck','vnf','Chef','graph','APPC','Generic_ChefDG','2017-09-12 16:49:54',NULL),(55,'HealthCheck','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-09-12 16:49:54',NULL),(56,'StopApplication','vnf','Chef','graph','APPC','Generic_ChefDG','2017-09-12 16:49:54',NULL),(57,'StopApplication','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-09-12 16:49:54',NULL),(58,'StartApplication','vnf','Chef','graph','APPC','Generic_ChefDG','2017-09-12 16:49:54',NULL),(59,'StartApplication','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-09-12 16:49:54',NULL),(60,'ConfigRestore','vnf','Chef','graph','APPC','Generic_ChefDG','2017-09-12 16:49:54',NULL),(61,'ConfigRestore','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-09-12 16:49:54',NULL),(62,'ConfigBackup','vnf','Chef','graph','APPC','Generic_ChefDG','2017-09-12 16:49:54',NULL),(63,'ConfigBackup','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-09-12 16:49:54',NULL),(64,'Start','vm','OS','graph','APPC','VM_Start','2017-09-12 16:49:54',NULL),(65,'Stop','vm','OS','graph','APPC','VM_Stop','2017-09-12 16:49:54',NULL),(67,'ConfigModify','vnf','Ansible','graph','APPC','Generic_AnsibleDG','2017-10-17 15:35:29','Y'),(68,'ConfigModify','vnf','Chef','graph','APPC','Generic_ChefDG','2017-10-17 15:35:33','Y'),(70,'Restart','vm','OS','graph','APPC','RestartVMVNFCommonFlow','2017-10-17 15:50:00',NULL),(71,'Rebuild','vm','OS','graph','APPC','RebuildVM','2017-10-17 15:51:03',NULL),(73,'Restart','vnf','OS','graph','APPC','RestartVMVNFCommonFlow','2017-10-24 16:48:06',NULL); +UNLOCK TABLES; diff --git a/installation/appc/src/main/scripts/installAppcDb.sh b/installation/appc/src/main/scripts/installAppcDb.sh index 1b8ee4b..115af6b 100644 --- a/installation/appc/src/main/scripts/installAppcDb.sh +++ b/installation/appc/src/main/scripts/installAppcDb.sh @@ -46,3 +46,8 @@ if [ -f ${APPC_HOME}/data/sdnctl.dump ] then mysql -h dbhost -u root -p${MYSQL_PASSWD} sdnctl < ${APPC_HOME}/data/sdnctl.dump fi + +if [ -f ${APPC_HOME}/data/sqlData.dump ] +then + mysql -h dbhost -u root -p${MYSQL_PASSWD} sdnctl < ${APPC_HOME}/data/sqlData.dump +fi |