summaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
Diffstat (limited to 'ms')
-rw-r--r--ms/pom.xml1
-rw-r--r--ms/sliboot/.swagger-codegen-ignore3
-rw-r--r--ms/sliboot/README.md33
-rw-r--r--ms/sliboot/TagVersion.groovy41
-rw-r--r--ms/sliboot/pom.xml417
-rwxr-xr-xms/sliboot/src/main/dc/docker-compose.yaml43
-rw-r--r--ms/sliboot/src/main/docker/Dockerfile51
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/App.java79
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/WebConfig.java39
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/ExecuteGraphController.java112
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/RestconfApiController.java391
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/core/SvcLogicFactory.java149
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultConfig.java45
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultOperational.java46
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsConfigRepository.java12
-rw-r--r--ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsOperationalRepository.java12
-rwxr-xr-xms/sliboot/src/main/resources/DEMO_DEMO.xml35
-rw-r--r--ms/sliboot/src/main/resources/application-https.properties5
-rw-r--r--ms/sliboot/src/main/resources/application.properties27
-rw-r--r--ms/sliboot/src/main/resources/graph.versions3
-rw-r--r--ms/sliboot/src/main/resources/log4j2.properties160
-rw-r--r--ms/sliboot/src/main/resources/org.onap.sdnc.cred.props17
-rw-r--r--ms/sliboot/src/main/resources/org.onap.sdnc.keyfile27
-rw-r--r--ms/sliboot/src/main/resources/org.onap.sdnc.p12bin0 -> 4295 bytes
-rw-r--r--ms/sliboot/src/main/resources/org.onap.sdnc.props14
-rw-r--r--ms/sliboot/src/main/resources/org.onap.sdnc.trust.jksbin0 -> 1413 bytes
-rw-r--r--ms/sliboot/src/main/resources/schema-derby.sql2764
-rw-r--r--ms/sliboot/src/main/resources/schema-mariadb.sql2764
-rw-r--r--ms/sliboot/src/main/resources/schema-mysql.sql2764
-rw-r--r--ms/sliboot/src/main/resources/shiro-users.properties3
-rw-r--r--ms/sliboot/src/main/resources/sli_healthcheck.xml27
-rw-r--r--ms/sliboot/src/main/resources/sli_vlbcheck.xml27
-rw-r--r--ms/sliboot/src/main/resources/startSliboot.sh62
-rw-r--r--ms/sliboot/src/main/resources/svclogic.properties29
-rw-r--r--ms/sliboot/src/main/resources/truststoreONAPall.jksbin0 -> 117990 bytes
-rw-r--r--ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java39
-rw-r--r--ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/RestconfApiControllerTest.java172
-rwxr-xr-xms/sliboot/src/test/resources/DEMO_DEMO.xml35
-rw-r--r--ms/sliboot/src/test/resources/application.properties18
-rw-r--r--ms/sliboot/src/test/resources/graph.versions3
-rw-r--r--ms/sliboot/src/test/resources/log4j2.properties160
-rw-r--r--ms/sliboot/src/test/resources/shiro-users.properties3
-rw-r--r--ms/sliboot/src/test/resources/sli_healthcheck.xml27
-rw-r--r--ms/sliboot/src/test/resources/sli_vlbcheck.xml27
-rw-r--r--ms/sliboot/src/test/resources/svclogic.properties29
45 files changed, 10715 insertions, 0 deletions
diff --git a/ms/pom.xml b/ms/pom.xml
index cc892bf8..a1b22db7 100644
--- a/ms/pom.xml
+++ b/ms/pom.xml
@@ -38,5 +38,6 @@
<modules>
<module>neng</module>
<module>vlantag-api</module>
+ <module>sliboot</module>
</modules>
</project>
diff --git a/ms/sliboot/.swagger-codegen-ignore b/ms/sliboot/.swagger-codegen-ignore
new file mode 100644
index 00000000..e43d784a
--- /dev/null
+++ b/ms/sliboot/.swagger-codegen-ignore
@@ -0,0 +1,3 @@
+**/ConfigApiController.java
+**/OperationsApiController.java
+**/OperationalApiController.java
diff --git a/ms/sliboot/README.md b/ms/sliboot/README.md
new file mode 100644
index 00000000..38be1c2f
--- /dev/null
+++ b/ms/sliboot/README.md
@@ -0,0 +1,33 @@
+This directory contains a demo springboot implementation of the SLI-API healthcheck method.
+
+To start this server with out AAF authentication, run:
+mvn -DserviceLogicDirectory=src/main/resources spring-boot:run
+
+To start this server with AAF authentication, run:
+mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dcadi_prop_files=/opt/onap/sdnc/data/properties/org.onap.sdnc.props -DserviceLogicDirectory=src/main/resources"
+
+
+This will start a servlet on port 8080. To test to that servlet, post a blank
+message to that port:
+
+curl http://127.0.0.1:8080/restconf/operations/SLI-API:healthcheck -X POST -H "Content-Type: application/json"
+
+Requests can also be sent to `http://localhost:8080/executeGraph`
+
+The graph details need to match a graph which has been loaded and activated
+
+An example request
+```
+{
+ "graphDetails": {
+ "module": "prov",
+ "rpc": "test",
+ "mode": "sync"
+ },
+ "input": {
+ "name": "Hello World",
+ "test": "one",
+ "mixed": "cAsE"
+ }
+}
+```
diff --git a/ms/sliboot/TagVersion.groovy b/ms/sliboot/TagVersion.groovy
new file mode 100644
index 00000000..68a8b780
--- /dev/null
+++ b/ms/sliboot/TagVersion.groovy
@@ -0,0 +1,41 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP CCSDK
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights
+ * reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ * ===================================================================
+ *
+ */
+
+package org.onap.ccsdk.distribution
+
+
+def versionArray;
+if ( project.properties['ccsdk.project.version'] != null ) {
+ versionArray = project.properties['ccsdk.project.version'].split('\\.');
+}
+
+if ( project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT") ) {
+ patchArray = versionArray[2].split('-');
+ project.properties['project.docker.latestminortag.version']=versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest";
+ project.properties['project.docker.latestfulltag.version']=versionArray[0] + '.' + versionArray[1] + '.' + patchArray[0] + "-SNAPSHOT-latest";
+ project.properties['project.docker.latesttagtimestamp.version']=versionArray[0] + '.' + versionArray[1] + '.' + patchArray[0] + "-SNAPSHOT-"+project.properties['ccsdk.build.timestamp'];
+} else {
+ project.properties['project.docker.latestminortag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
+ project.properties['project.docker.latestfulltag.version']=versionArray[0] + '.' + versionArray[1] + '.' + versionArray[2] + "-STAGING-latest";
+ project.properties['project.docker.latesttagtimestamp.version']=versionArray[0] + '.' + versionArray[1] + '.' + versionArray[2] + "-STAGING-"+project.properties['ccsdk.build.timestamp'];
+}
diff --git a/ms/sliboot/pom.xml b/ms/sliboot/pom.xml
new file mode 100644
index 00000000..b5e4fe81
--- /dev/null
+++ b/ms/sliboot/pom.xml
@@ -0,0 +1,417 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>spring-boot-starter-parent</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.onap.ccsdk.apps</groupId>
+ <artifactId>sliboot</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <name>ccsdk-apps :: sliboot :: ${project.artifactId}</name>
+
+ <properties>
+ <start-class>org.onap.ccsdk.apps.ms.sliboot.App</start-class>
+ <shiro.version>1.5.0</shiro.version>
+ <aaf-shiro-bundle.version>2.1.13</aaf-shiro-bundle.version>
+ <base.image.name>onap/ccsdk-alpine-image</base.image.name>
+ <image.name>onap/ccsdk-sliboot-alpine-image</image.name>
+ <ccsdk.project.version>${project.version}</ccsdk.project.version>
+ <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
+ <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
+ <ccsdk.sliboot.jar>${project.artifactId}-${project.version}.jar</ccsdk.sliboot.jar>
+ <docker.push.phase>deploy</docker.push.phase>
+ <docker.verbose>true</docker.verbose>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-annotations</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.shiro</groupId>
+ <artifactId>shiro-spring-boot-web-starter</artifactId>
+ <version>${shiro.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-log4j2</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.aaf.cadi</groupId>
+ <artifactId>aaf-cadi-shiro</artifactId>
+ <version>${aaf-shiro-bundle.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-test</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.springfox</groupId>
+ <artifactId>springfox-swagger2</artifactId>
+ <version>2.9.2</version>
+ </dependency>
+ <dependency>
+ <groupId>io.springfox</groupId>
+ <artifactId>springfox-swagger-ui</artifactId>
+ <version>2.9.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.core</groupId>
+ <artifactId>dblib-provider</artifactId>
+ <version>${ccsdk.sli.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.core</groupId>
+ <artifactId>sli-common</artifactId>
+ <version>${ccsdk.sli.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.core</groupId>
+ <artifactId>sli-provider-base</artifactId>
+ <version>${ccsdk.sli.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.code.gson</groupId>
+ <artifactId>gson</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derby</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mariadb.jdbc</groupId>
+ <artifactId>mariadb-java-client</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.logging-analytics</groupId>
+ <artifactId>logging-filter-spring</artifactId>
+ <version>1.6.6</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.ws.rs</groupId>
+ <artifactId>javax.ws.rs-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.core</groupId>
+ <artifactId>sliPluginUtils-provider</artifactId>
+ <version>${ccsdk.sli.core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.plugins</groupId>
+ <artifactId>restapi-call-node-provider</artifactId>
+ <version>${ccsdk.sli.plugins.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.plugins</groupId>
+ <artifactId>properties-node-provider</artifactId>
+ <version>${ccsdk.sli.plugins.version}</version>
+ </dependency>
+ <!-- this jersey jar is needed for rest api call node to function properly -->
+ <dependency>
+ <groupId>org.glassfish.jersey.inject</groupId>
+ <artifactId>jersey-hk2</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>${basedir}/TagVersion.groovy</source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.10</version>
+
+ <executions>
+ <execution>
+ <id>get-sliapi-yaml</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.onap.ccsdk.sli.core</groupId>
+ <artifactId>sliapi-model-swagger</artifactId>
+ <version>${ccsdk.sli.core.version}</version>
+ <type>yaml</type>
+ <outputDirectory>${project.build.directory}/yaml</outputDirectory>
+ <destFileName>sliapi.yaml</destFileName>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-codegen-maven-plugin</artifactId>
+ <version>2.3.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <output>target/generated-sources</output>
+ <inputSpec>${project.build.directory}/yaml/sliapi.yaml</inputSpec>
+ <language>spring</language>
+ <apiPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</apiPackage>
+ <modelPackage>org.onap.ccsdk.apps.ms.sliboot.swagger.model</modelPackage>
+ <invokerPackage>org.onap.ccsdk.apps.ms.sliboot.swagger</invokerPackage>
+ <generateApis>true</generateApis>
+ <generateApiTests>true</generateApiTests>
+ <ignoreFileOverride>${project.basedir}/.swagger-codegen-ignore</ignoreFileOverride>
+ <withXml>true</withXml>
+ <configOptions>
+ <java8>true</java8>
+ <springBootVersion>2.2.4-RELEASE</springBootVersion>
+ </configOptions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>docker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.10</version>
+
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <phase>prepare-package</phase>
+ <configuration>
+ <excludeTransitive>true</excludeTransitive>
+ <outputDirectory>${project.build.directory}/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ <useRepositoryLayout>false</useRepositoryLayout>
+ <addParentPoms>false</addParentPoms>
+ <copyPom>false</copyPom>
+ </configuration>
+ </execution>
+ <execution>
+ <id>unpack dgs</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.onap.ccsdk.distribution</groupId>
+ <artifactId>platform-logic-installer</artifactId>
+ <version>${project.version}</version>
+ <type>zip</type>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <executions>
+ <execution>
+ <id>copy-dockerfile</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>initialize</phase>
+ <configuration>
+ <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/docker</directory>
+ <includes>
+ <include>Dockerfile</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-config</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>generate-resources</phase>
+ <configuration>
+ <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/config</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>*.properties</include>
+ <include>*.props</include>
+ <include>*.sql</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>*.keyfile</include>
+ <include>*.jks</include>
+ <include>*.p12</include>
+ </includes>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-script</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>generate-resources</phase>
+ <configuration>
+ <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>*.sh</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-jar</id>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals><!-- here the phase you need -->
+ <phase>package</phase>
+ <configuration>
+ <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/lib</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}/target</directory>
+ <includes>
+ <include>${ccsdk.sliboot.jar}</include>
+ </includes>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.28.0</version>
+ <inherited>false</inherited>
+ <configuration>
+ <images>
+ <image>
+ <name>${image.name}</name>
+ <build>
+ <cleanup>try</cleanup>
+ <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
+ <dockerFile>Dockerfile</dockerFile>
+ <tags>
+ <tag>${project.docker.latestminortag.version}</tag>
+ <tag>${project.docker.latestfulltag.version}</tag>
+ <tag>${project.docker.latesttagtimestamp.version}</tag>
+ </tags>
+ </build>
+ </image>
+ </images>
+ </configuration>
+ <executions>
+ <execution>
+ <id>generate-images</id>
+ <phase>package</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+
+ <execution>
+ <id>push-images</id>
+ <phase>${docker.push.phase}</phase>
+ <goals>
+ <goal>build</goal>
+ <goal>push</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
diff --git a/ms/sliboot/src/main/dc/docker-compose.yaml b/ms/sliboot/src/main/dc/docker-compose.yaml
new file mode 100755
index 00000000..f48af3af
--- /dev/null
+++ b/ms/sliboot/src/main/dc/docker-compose.yaml
@@ -0,0 +1,43 @@
+version: '2.1'
+
+services:
+ db:
+ image: mariadb:10.3
+ container_name: sliboot_db_container
+ ports:
+ - "13306:3306"
+ environment:
+ - MYSQL_ROOT_PASSWORD=openECOMP1.0
+ - MYSQL_ROOT_HOST=%
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+
+
+ sliboot:
+ image: onap/ccsdk-sliboot-alpine-image:latest
+ depends_on:
+ - db
+ container_name: sliboot_sli_container
+ ports:
+ - "8080:8080"
+ - "8443:8443"
+ links:
+ - db:dbhost
+ environment:
+ - MYSQL_DB_HOST=dbhost
+ - MYSQL_ROOT_PASSWORD=openECOMP1.0
+ - MYSQL_DB_USER=sli
+ - MYSQL_DB_PASSWD=abc123
+ - MYSQL_DB_DATABASE=sdnctl
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+ extra_hosts:
+ aaf-onap-test.osaaf.org: 10.12.5.145
+
+
diff --git a/ms/sliboot/src/main/docker/Dockerfile b/ms/sliboot/src/main/docker/Dockerfile
new file mode 100644
index 00000000..8f424686
--- /dev/null
+++ b/ms/sliboot/src/main/docker/Dockerfile
@@ -0,0 +1,51 @@
+# Prepare stage for multistage image build
+## START OF STAGE0 ##
+FROM @base.image.name@:@project.docker.latestfulltag.version@ AS stage0
+
+ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
+ENV LOG_PATH /var/log/onap/ccsdk
+
+
+# copy deliverables to opt
+COPY opt /opt
+
+## END OF STAGE0 ##
+
+
+FROM @base.image.name@:@project.docker.latestfulltag.version@
+
+MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org)
+
+ENV PROJECT_VERSION @project.version@
+ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
+ENV CCSDK_HOME /opt/onap/ccsdk
+ENV CCSDK_CONFIG_DIR /opt/onap/ccsdk/config
+ENV SLIBOOT_JAR @ccsdk.sliboot.jar@
+ENV SVCLOGIC_PROPERTIES /opt/onap/ccsdk/config/svclogic.properties
+ENV SVCLOGIC_DIR /opt/onap/ccsdk/svclogic/graphs
+ENV LOG_PATH /var/log/onap/ccsdk
+
+# Install sudo and IP utilities
+RUN apk update && apk --no-cache add sudo iputils openssl
+
+
+# Enable wheel group
+RUN sed -e 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' -i /etc/sudoers
+
+# Create sli user
+RUN addgroup -S sli && adduser -S sli -G sli
+RUN addgroup sli wheel
+
+COPY --from=stage0 --chown=sli:sli /opt /opt
+RUN mkdir -p ${LOG_PATH} && chown sli:sli ${LOG_PATH}
+RUN chmod +x ${CCSDK_HOME}/bin/*.sh
+
+# Install ssl and java certificates
+COPY $CCSDK_CONFIG_DIR/truststoreONAPall.jks $JAVA_SECURITY_DIR
+RUN keytool -importkeystore -srckeystore $JAVA_SECURITY_DIR/truststoreONAPall.jks -srcstorepass changeit -destkeystore $JAVA_SECURITY_DIR/cacerts -deststorepass changeit
+
+
+USER sli
+WORKDIR ${CCSDK_HOME}
+ENTRYPOINT /opt/onap/ccsdk/bin/startSliboot.sh
+EXPOSE 8443 8080 8181
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/App.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/App.java
new file mode 100644
index 00000000..d2ef5e77
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/App.java
@@ -0,0 +1,79 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - CCSDK
+ * ================================================================================
+ * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ccsdk.apps.ms.sliboot;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.ComponentScan;
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
+import org.apache.shiro.realm.Realm;
+import org.apache.shiro.realm.text.PropertiesRealm;
+import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
+import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
+import org.springframework.context.annotation.Bean;
+import org.onap.aaf.cadi.shiro.AAFRealm;
+
+@SpringBootApplication
+@EnableSwagger2
+@ComponentScan(basePackages = { "org.onap.ccsdk.apps.ms.sliboot.*" })
+
+public class App {
+
+ private static final Logger log = LoggerFactory.getLogger(App.class);
+
+ public static void main(String[] args) throws Exception {
+ SpringApplication.run(App.class, args);
+ }
+
+ @Bean
+ public Realm realm() {
+
+ // If cadi prop files is not defined use local properties realm
+ // src/main/resources/shiro-users.properties
+ if ("none".equals(System.getProperty("cadi_prop_files", "none"))) {
+ log.info("cadi_prop_files undefined, AAF Realm will not be set");
+ PropertiesRealm realm = new PropertiesRealm();
+ return realm;
+ } else {
+ AAFRealm realm = new AAFRealm();
+ return realm;
+ }
+
+ }
+
+ @Bean
+ public ShiroFilterChainDefinition shiroFilterChainDefinition() {
+ DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition();
+
+ // if cadi prop files is not set disable authentication
+ if ("none".equals(System.getProperty("cadi_prop_files", "none"))) {
+ chainDefinition.addPathDefinition("/**", "anon");
+ } else {
+ log.info("Loaded property cadi_prop_files, AAF REALM set");
+ chainDefinition.addPathDefinition("/**", "authcBasic, rest[org.onap.sdnc.odl:odl-api]");
+ }
+
+ return chainDefinition;
+ }
+
+}
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/WebConfig.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/WebConfig.java
new file mode 100644
index 00000000..3b0b2a20
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/WebConfig.java
@@ -0,0 +1,39 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - CCSDK
+ * ================================================================================
+ * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ccsdk.apps.ms.sliboot;
+
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+import org.springframework.web.servlet.config.annotation.EnableWebMvc;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+@EnableWebMvc
+@Configuration
+@EnableJpaRepositories("org.onap.ccsdk.apps.ms.sliboot.*")
+@ComponentScan(basePackages = {"org.onap.ccsdk.apps.ms.sliboot.*"})
+@EntityScan("org.onap.ccsdk.apps.ms.sliboot.*")
+@EnableTransactionManagement
+public class WebConfig implements WebMvcConfigurer {
+
+} \ No newline at end of file
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/ExecuteGraphController.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/ExecuteGraphController.java
new file mode 100644
index 00000000..07191446
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/ExecuteGraphController.java
@@ -0,0 +1,112 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - CCSDK
+ * ================================================================================
+ * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ccsdk.apps.ms.sliboot.controllers;
+
+import java.util.HashMap;
+import java.util.Map.Entry;
+import java.util.Properties;
+import org.onap.ccsdk.sli.core.sli.SvcLogicException;
+import org.onap.ccsdk.sli.core.sli.provider.base.SvcLogicServiceBase;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.ResponseBody;
+import com.google.gson.Gson;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParser;
+
+@Controller
+@EnableAutoConfiguration
+public class ExecuteGraphController {
+ @Autowired
+ protected SvcLogicServiceBase svc;
+
+ @RequestMapping(value = "/executeGraph", method = RequestMethod.POST)
+ @ResponseBody
+ public HashMap<String, String> executeGraph(@RequestBody String input) {
+ HashMap<String, String> hash = new HashMap<String, String>();
+ Properties parms = new Properties();
+
+ hash.put("status", "success");
+ JsonObject jsonInput = new Gson().fromJson(input, JsonObject.class);
+ JsonObject passthroughObj = jsonInput.get("input").getAsJsonObject();
+
+ writeResponseToCtx(passthroughObj.toString(), parms, "input");
+
+ JsonObject inputObject = jsonInput.get("graphDetails").getAsJsonObject();
+ try {
+ // Any of these can throw a nullpointer exception
+ String calledModule = inputObject.get("module").getAsString();
+ String calledRpc = inputObject.get("rpc").getAsString();
+ String modeStr = inputObject.get("mode").getAsString();
+ // execute should only throw a SvcLogicException
+ Properties respProps = svc.execute(calledModule, calledRpc, null, modeStr, parms);
+ for (Entry<Object, Object> prop : respProps.entrySet()) {
+ hash.put((String) prop.getKey(), (String) prop.getValue());
+ }
+ } catch (NullPointerException npe) {
+ HashMap<String, String> errorHash = new HashMap<String, String>();
+ errorHash.put("error-message", "check that you populated module, rpc and or mode correctly.");
+ return errorHash;
+ } catch (SvcLogicException e) {
+ HashMap<String, String> errorHash = new HashMap<String, String>();
+ errorHash.put("status", "failure");
+ errorHash.put("message", e.getMessage());
+ return errorHash;
+ }
+ return hash;
+ }
+
+ public static void writeResponseToCtx(String resp, Properties ctx, String prefix) {
+ JsonParser jp = new JsonParser();
+ JsonElement element = jp.parse(resp);
+ writeJsonObject(element.getAsJsonObject(), ctx, prefix + ".");
+ }
+
+ public static void writeJsonObject(JsonObject obj, Properties ctx, String root) {
+ for (Entry<String, JsonElement> entry : obj.entrySet()) {
+ if (entry.getValue().isJsonObject()) {
+ writeJsonObject(entry.getValue().getAsJsonObject(), ctx, root + entry.getKey() + ".");
+ } else if (entry.getValue().isJsonArray()) {
+ JsonArray array = entry.getValue().getAsJsonArray();
+ ctx.put(root + entry.getKey() + "_length", String.valueOf(array.size()));
+ Integer arrayIdx = 0;
+ for (JsonElement element : array) {
+ if (element.isJsonObject()) {
+ writeJsonObject(element.getAsJsonObject(), ctx, root + entry.getKey() + "[" + arrayIdx + "].");
+ }
+ arrayIdx++;
+ }
+ } else {
+ ctx.put(root + entry.getKey(), entry.getValue().getAsString());
+ }
+ }
+ }
+
+
+}
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/RestconfApiController.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/RestconfApiController.java
new file mode 100644
index 00000000..11d713ad
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/controllers/RestconfApiController.java
@@ -0,0 +1,391 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - CCSDK
+ * ================================================================================
+ * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ccsdk.apps.ms.sliboot.controllers;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import org.onap.ccsdk.apps.ms.sliboot.swagger.ConfigApi;
+import org.onap.ccsdk.apps.ms.sliboot.swagger.OperationalApi;
+import org.onap.ccsdk.apps.ms.sliboot.swagger.OperationsApi;
+import org.onap.ccsdk.apps.ms.sliboot.data.TestResultsOperationalRepository;
+import org.onap.ccsdk.apps.ms.sliboot.swagger.model.*;
+import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
+import org.onap.ccsdk.sli.core.sli.SvcLogicException;
+import org.onap.ccsdk.sli.core.sli.provider.base.SvcLogicServiceBase;
+import org.onap.ccsdk.apps.ms.sliboot.data.TestResultConfig;
+import org.onap.ccsdk.apps.ms.sliboot.data.TestResultsConfigRepository;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Controller;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.validation.Valid;
+import java.util.*;
+
+@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2020-02-20T12:50:11.207-05:00")
+
+@Controller
+@ComponentScan(basePackages = {"org.onap.ccsdk.apps.ms.sliboot.*"})
+@EntityScan("org.onap.ccsdk.apps.ms.sliboot.*")
+public class RestconfApiController implements ConfigApi, OperationalApi, OperationsApi {
+
+ private final ObjectMapper objectMapper;
+ private final HttpServletRequest request;
+
+ @Autowired
+ protected SvcLogicServiceBase svc;
+
+ @Autowired
+ private TestResultsConfigRepository testResultsConfigRepository;
+
+ @Autowired
+ private TestResultsOperationalRepository testResultsOperationalRepository;
+
+ private static final Logger log = LoggerFactory.getLogger(RestconfApiController.class);
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public RestconfApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+
+ @Override
+ public Optional<ObjectMapper> getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional<HttpServletRequest> getRequest() {
+ return Optional.ofNullable(request);
+ }
+ @Override
+ public Optional<String> getAcceptHeader() {
+ return ConfigApi.super.getAcceptHeader();
+ }
+
+ @Override
+ public ResponseEntity<SliApiHealthcheck> operationsSLIAPIhealthcheckPost() {
+
+ SliApiResponseFields respFields = new SliApiResponseFields();
+ HttpStatus httpStatus = HttpStatus.OK;
+
+ try {
+ log.info("Calling SLI-API:healthcheck DG");
+ SvcLogicContext ctxIn = new SvcLogicContext();
+ SvcLogicContext ctxOut = svc.execute("sli", "healthcheck", null, "sync", ctxIn);
+ Properties respProps = ctxOut.toProperties();
+
+ respFields.setAckFinalIndicator(respProps.getProperty("ack-final-indicator", "Y"));
+ respFields.setResponseCode(respProps.getProperty("error-code", "200"));
+ respFields.setResponseMessage(respProps.getProperty("error-message", "Success"));
+ respFields.setContextMemoryJson(propsToJson(respProps, "context-memory"));
+
+ } catch (Exception e) {
+ respFields.setAckFinalIndicator("true");
+ respFields.setResponseCode("500");
+ respFields.setResponseMessage(e.getMessage());
+ httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
+ log.error("Error calling healthcheck directed graph", e);
+
+ }
+
+ SliApiHealthcheck resp = new SliApiHealthcheck();
+ resp.setOutput(respFields);
+ return (new ResponseEntity<>(resp, httpStatus));
+ }
+
+ @Override
+ public ResponseEntity<SliApiVlbcheck> operationsSLIAPIvlbcheckPost() {
+
+ SliApiResponseFields respFields = new SliApiResponseFields();
+ HttpStatus httpStatus = HttpStatus.OK;
+
+ try {
+ log.info("Calling SLI-API:vlbcheck DG");
+ SvcLogicContext ctxIn = new SvcLogicContext();
+ SvcLogicContext ctxOut = svc.execute("sli", "vlbcheck", null, "sync", ctxIn);
+ Properties respProps = ctxOut.toProperties();
+ respFields.setAckFinalIndicator(respProps.getProperty("ack-final-indicator", "Y"));
+ respFields.setResponseCode(respProps.getProperty("error-code", "200"));
+ respFields.setResponseMessage(respProps.getProperty("error-message", "Success"));
+ respFields.setContextMemoryJson(propsToJson(respProps, "context-memory"));
+
+ } catch (Exception e) {
+ respFields.setAckFinalIndicator("true");
+ respFields.setResponseCode("500");
+ respFields.setResponseMessage(e.getMessage());
+ httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
+ log.error("Error calling vlbcheck directed graph", e);
+
+ }
+
+ SliApiVlbcheck resp = new SliApiVlbcheck();
+ resp.setOutput(respFields);
+ return (new ResponseEntity<>(resp, httpStatus));
+ }
+
+ @Override
+ public ResponseEntity<SliApiExecuteGraph> operationsSLIAPIexecuteGraphPost(@Valid SliApiExecutegraphInputBodyparam executeGraphInput) {
+
+ SvcLogicContext ctxIn = new SvcLogicContext();
+ SliApiExecuteGraph resp = new SliApiExecuteGraph();
+ SliApiResponseFields respFields = new SliApiResponseFields();
+ String executeGraphInputJson = null;
+
+ try {
+ executeGraphInputJson = objectMapper.writeValueAsString(executeGraphInput);
+ log.info("Input as JSON is "+executeGraphInputJson);
+ } catch (JsonProcessingException e) {
+
+ respFields.setAckFinalIndicator("true");
+ respFields.setResponseCode("500");
+ respFields.setResponseMessage(e.getMessage());
+ log.error("Cannot create JSON from input object", e);
+ resp.setOutput(respFields);
+ return (new ResponseEntity<>(resp, HttpStatus.INTERNAL_SERVER_ERROR));
+
+ }
+ JsonObject jsonInput = new Gson().fromJson(executeGraphInputJson, JsonObject.class);
+ JsonObject passthroughObj = jsonInput.get("input").getAsJsonObject();
+
+ ctxIn.mergeJson("input", passthroughObj.toString());
+
+ try {
+ // Any of these can throw a nullpointer exception
+ String calledModule = executeGraphInput.getInput().getModuleName();
+ String calledRpc = executeGraphInput.getInput().getRpcName();
+ String modeStr = executeGraphInput.getInput().getMode().toString();
+ // execute should only throw a SvcLogicException
+ SvcLogicContext ctxOut = svc.execute(calledModule, calledRpc, null, modeStr, ctxIn);
+ Properties respProps = ctxOut.toProperties();
+
+ respFields.setAckFinalIndicator(respProps.getProperty("ack-final-indicator", "Y"));
+ respFields.setResponseCode(respProps.getProperty("error-code", "200"));
+ respFields.setResponseMessage(respProps.getProperty("error-message", "SUCCESS"));
+ respFields.setContextMemoryJson(propsToJson(respProps, "context-memory"));
+ resp.setOutput(respFields);
+ return (new ResponseEntity<>(resp, HttpStatus.valueOf(Integer.parseInt(respFields.getResponseCode()))));
+
+ } catch (NullPointerException npe) {
+ respFields.setAckFinalIndicator("true");
+ respFields.setResponseCode("500");
+ respFields.setResponseMessage("Check that you populated module, rpc and or mode correctly.");
+
+ resp.setOutput(respFields);
+ return (new ResponseEntity<>(resp, HttpStatus.INTERNAL_SERVER_ERROR));
+ } catch (SvcLogicException e) {
+ respFields.setAckFinalIndicator("true");
+ respFields.setResponseCode("500");
+ respFields.setResponseMessage(e.getMessage());
+ resp.setOutput(respFields);
+ return (new ResponseEntity<>(resp, HttpStatus.INTERNAL_SERVER_ERROR));
+ }
+ }
+
+ @Override
+ public ResponseEntity<Void> configSLIAPItestResultsSLIAPItestResultTestIdentifierDelete(String testIdentifier) {
+
+ List<TestResultConfig> testResultConfigs = testResultsConfigRepository.findByTestIdentifier(testIdentifier);
+
+ if (testResultConfigs != null) {
+ Iterator<TestResultConfig> testResultConfigIterator = testResultConfigs.iterator();
+ while (testResultConfigIterator.hasNext()) {
+ testResultsConfigRepository.delete(testResultConfigIterator.next());
+ }
+ }
+
+ return (new ResponseEntity<>(HttpStatus.OK));
+ }
+
+ @Override
+ public ResponseEntity<Void> configSLIAPItestResultsDelete() {
+
+ testResultsConfigRepository.deleteAll();
+
+ return (new ResponseEntity<>(HttpStatus.OK));
+ }
+
+ @Override
+ public ResponseEntity<SliApiTestResults> operationalSLIAPItestResultsGet() {
+
+ SliApiTestResults results = new SliApiTestResults();
+
+ testResultsOperationalRepository.findAll().forEach(testResult -> {
+ SliApiTestresultsTestResult item = null;
+ try {
+ item = objectMapper.readValue(testResult.getResults(), SliApiTestresultsTestResult.class);
+ results.addTestResultItem(item);
+ } catch (JsonProcessingException e) {
+ log.error("Could not convert testResult", e);
+ }
+ });
+
+
+ return new ResponseEntity<>(results, HttpStatus.OK);
+ }
+
+ @Override
+ public ResponseEntity<SliApiTestresultsTestResult> configSLIAPItestResultsSLIAPItestResultTestIdentifierGet(String testIdentifier) {
+
+ List<TestResultConfig> testResultConfigs = testResultsConfigRepository.findByTestIdentifier(testIdentifier);
+
+ if ((testResultConfigs == null) || (testResultConfigs.size() == 0)) {
+ return new ResponseEntity<>(HttpStatus.NOT_FOUND);
+ } else {
+ TestResultConfig testResultConfig = testResultConfigs.get(0);
+ SliApiTestresultsTestResult testResult = null;
+ try {
+ testResult = objectMapper.readValue(testResultConfig.getResults(), SliApiTestresultsTestResult.class);
+ } catch (JsonProcessingException e) {
+ log.error("Cannot convert test result", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+
+
+ return new ResponseEntity<>(testResult, HttpStatus.OK);
+ }
+ }
+
+ @Override
+ public ResponseEntity<SliApiTestResults> configSLIAPItestResultsGet() {
+
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default RestconfApi interface so no example is generated");
+ }
+
+ SliApiTestResults results = new SliApiTestResults();
+
+ testResultsConfigRepository.findAll().forEach(testResult -> {
+ SliApiTestresultsTestResult item = null;
+ try {
+ item = objectMapper.readValue(testResult.getResults(), SliApiTestresultsTestResult.class);
+ results.addTestResultItem(item);
+ } catch (JsonProcessingException e) {
+ log.error("Could not convert testResult", e);
+ }
+ });
+
+
+ return new ResponseEntity<>(results, HttpStatus.OK);
+ }
+
+ @Override
+ public ResponseEntity<Void> configSLIAPItestResultsSLIAPItestResultTestIdentifierPut(String testIdentifier, @Valid SliApiTestresultsTestResult testResult) {
+
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default RestconfApi interface so no example is generated");
+ }
+
+ List<TestResultConfig> testResultConfigs = testResultsConfigRepository.findByTestIdentifier(testIdentifier);
+ Iterator<TestResultConfig> testResultIter = testResultConfigs.iterator();
+ while (testResultIter.hasNext()) {
+ testResultsConfigRepository.delete(testResultIter.next());
+ }
+
+ TestResultConfig testResultConfig = null;
+ try {
+ testResultConfig = new TestResultConfig(testResult.getTestIdentifier(), objectMapper.writeValueAsString(testResult));
+ testResultsConfigRepository.save(testResultConfig);
+ } catch (JsonProcessingException e) {
+ log.error("Could not save test result", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+
+ return new ResponseEntity<>(HttpStatus.OK);
+ }
+
+ @Override
+ public ResponseEntity<Void> configSLIAPItestResultsPost(@Valid SliApiTestResults testResults) {
+
+ List<SliApiTestresultsTestResult> resultList = testResults.getTestResult();
+
+ if (resultList == null) {
+ log.error("Invalid input - no test results list");
+ return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
+ }
+ Iterator<SliApiTestresultsTestResult> resultIterator = resultList.iterator();
+
+ while (resultIterator.hasNext()) {
+ SliApiTestresultsTestResult curResult = resultIterator.next();
+ try {
+ testResultsConfigRepository.save(new TestResultConfig(curResult.getTestIdentifier(), objectMapper.writeValueAsString(curResult)));
+ } catch (JsonProcessingException e) {
+ log.error("Could not save test result", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ return new ResponseEntity<>(HttpStatus.OK);
+ }
+
+ @Override
+ public ResponseEntity<Void> configSLIAPItestResultsPut(@Valid SliApiTestResults testResults) {
+
+ testResultsConfigRepository.deleteAll();
+
+ List<SliApiTestresultsTestResult> resultList = testResults.getTestResult();
+
+ Iterator<SliApiTestresultsTestResult> resultIterator = resultList.iterator();
+
+
+ while (resultIterator.hasNext()) {
+ SliApiTestresultsTestResult curResult = resultIterator.next();
+ try {
+ testResultsConfigRepository.save(new TestResultConfig(curResult.getTestIdentifier(), objectMapper.writeValueAsString(curResult)));
+ } catch (JsonProcessingException e) {
+ log.error("Could not save test result", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ return new ResponseEntity<>(HttpStatus.OK);
+ }
+
+ public static String propsToJson(Properties props, String root)
+ {
+ StringBuffer sbuff = new StringBuffer();
+
+ sbuff.append("{ \""+root+"\" : { ");
+ boolean needComma = false;
+ for (Map.Entry<Object, Object> prop : props.entrySet()) {
+ sbuff.append("\""+(String) prop.getKey()+"\" : \""+(String)prop.getValue()+"\"");
+ if (needComma) {
+ sbuff.append(" , ");
+ } else {
+ needComma = true;
+ }
+ }
+ sbuff.append(" } }");
+
+ return(sbuff.toString());
+ }
+
+}
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/core/SvcLogicFactory.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/core/SvcLogicFactory.java
new file mode 100644
index 00000000..e264baa9
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/core/SvcLogicFactory.java
@@ -0,0 +1,149 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - CCSDK
+ * ================================================================================
+ * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ccsdk.apps.ms.sliboot.core;
+
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.util.List;
+import java.util.Properties;
+import org.onap.ccsdk.sli.core.sli.ConfigurationException;
+import org.onap.ccsdk.sli.core.sli.SvcLogicJavaPlugin;
+import org.onap.ccsdk.sli.core.sli.SvcLogicLoader;
+import org.onap.ccsdk.sli.core.sli.SvcLogicRecorder;
+import org.onap.ccsdk.sli.core.sli.SvcLogicStore;
+import org.onap.ccsdk.sli.core.sli.SvcLogicStoreFactory;
+import org.onap.ccsdk.sli.core.sli.provider.base.HashMapResolver;
+import org.onap.ccsdk.sli.core.sli.provider.base.SvcLogicPropertiesProvider;
+import org.onap.ccsdk.sli.core.sli.provider.base.SvcLogicServiceBase;
+import org.onap.ccsdk.sli.core.sli.provider.base.SvcLogicServiceImplBase;
+import org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder;
+import org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils;
+import org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils;
+import org.onap.ccsdk.sli.plugins.prop.PropertiesNode;
+import org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class SvcLogicFactory {
+ private static final Logger log = LoggerFactory.getLogger(SvcLogicFactory.class);
+
+ @Autowired
+ List<SvcLogicRecorder> recorders;
+
+ @Autowired
+ List<SvcLogicJavaPlugin> plugins;
+
+ @Bean
+ public SvcLogicStore getStore() throws Exception {
+ SvcLogicPropertiesProvider propProvider = new SvcLogicPropertiesProvider() {
+
+ @Override
+ public Properties getProperties() {
+ Properties props = new Properties();
+
+
+ String propPath = System.getProperty("serviceLogicProperties", "");
+
+ if ("".equals(propPath)) {
+ propPath = System.getenv("SVCLOGIC_PROPERTIES");
+ }
+
+
+ if ((propPath == null) || propPath.length() == 0) {
+ propPath = "src/main/resources/svclogic.properties";
+ }
+ System.out.println(propPath);
+ try (FileInputStream fileInputStream = new FileInputStream(propPath)) {
+ props = new Properties();
+ props.load(fileInputStream);
+ } catch (final IOException e) {
+ log.error("Failed to load properties for file: {}", propPath,
+ new ConfigurationException("Failed to load properties for file: " + propPath, e));
+ }
+ return props;
+ }
+ };
+ SvcLogicStore store = SvcLogicStoreFactory.getSvcLogicStore(propProvider.getProperties());
+ return store;
+ }
+
+ @Bean
+ public SvcLogicLoader createLoader() throws Exception {
+ String serviceLogicDirectory = System.getProperty("serviceLogicDirectory");
+ if (serviceLogicDirectory == null) {
+ serviceLogicDirectory = "src/main/resources";
+ }
+
+ System.out.println("serviceLogicDirectory is " + serviceLogicDirectory);
+ SvcLogicLoader loader = new SvcLogicLoader(serviceLogicDirectory, getStore());
+
+ try {
+ loader.loadAndActivate();
+ } catch (IOException e) {
+ log.error("Cannot load directed graphs", e);
+ }
+ return loader;
+ }
+
+ @Bean
+ public SvcLogicServiceBase createService() throws Exception {
+ HashMapResolver resolver = new HashMapResolver();
+ for (SvcLogicRecorder recorder : recorders) {
+ resolver.addSvcLogicRecorder(recorder.getClass().getName(), recorder);
+
+ }
+ for (SvcLogicJavaPlugin plugin : plugins) {
+ resolver.addSvcLogicSvcLogicJavaPlugin(plugin.getClass().getName(), plugin);
+
+ }
+ return new SvcLogicServiceImplBase(getStore(), resolver);
+ }
+
+ @Bean
+ public Slf4jRecorder slf4jRecorderNode() {
+ return new Slf4jRecorder();
+ }
+
+ @Bean
+ public SliPluginUtils sliPluginUtil() {
+ return new SliPluginUtils();
+ }
+
+ @Bean
+ public SliStringUtils sliStringUtils() {
+ return new SliStringUtils();
+ }
+
+ @Bean
+ public RestapiCallNode restapiCallNode() {
+ return new RestapiCallNode();
+ }
+
+ @Bean
+ public PropertiesNode propertiesNode() {
+ return new PropertiesNode();
+ }
+
+}
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultConfig.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultConfig.java
new file mode 100644
index 00000000..1ca4fe1f
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultConfig.java
@@ -0,0 +1,45 @@
+package org.onap.ccsdk.apps.ms.sliboot.data;
+
+import javax.persistence.*;
+
+@Entity(name = "TEST_RESULT_CONFIG")
+@Table(name = "TEST_RESULT_CONFIG")
+public class TestResultConfig {
+
+
+ @Id
+ @GeneratedValue(strategy= GenerationType.AUTO)
+ private Long id;
+
+ private String testIdentifier;
+ private String results;
+
+ public TestResultConfig()
+ {
+
+ }
+ public TestResultConfig(String testIdentifier, String results) {
+ this.testIdentifier = testIdentifier;
+ this.results = results;
+ }
+
+ public String getTestIdentifier() {
+ return testIdentifier;
+ }
+
+ public void setTestIdentifier(String testIdentifier) {
+ this.testIdentifier = testIdentifier;
+ }
+
+ public String getResults() {
+ return results;
+ }
+
+ public void setResults(String results) {
+ this.results = results;
+ }
+
+
+
+
+}
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultOperational.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultOperational.java
new file mode 100644
index 00000000..b9d09934
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultOperational.java
@@ -0,0 +1,46 @@
+package org.onap.ccsdk.apps.ms.sliboot.data;
+
+import javax.persistence.*;
+
+@Entity(name="TEST_RESULT_OPERATIONAL")
+@Table(name="TEST_RESULT_OPERATIONAL")
+public class TestResultOperational {
+
+
+ @Id
+ @GeneratedValue(strategy= GenerationType.AUTO)
+ private Long id;
+
+ private String testIdentifier;
+ private String results;
+
+ public TestResultOperational()
+ {
+
+ }
+
+ public TestResultOperational(String testIdentifier, String results) {
+ this.testIdentifier = testIdentifier;
+ this.results = results;
+ }
+
+ public String getTestIdentifier() {
+ return testIdentifier;
+ }
+
+ public void setTestIdentifier(String testIdentifier) {
+ this.testIdentifier = testIdentifier;
+ }
+
+ public String getResults() {
+ return results;
+ }
+
+ public void setResults(String results) {
+ this.results = results;
+ }
+
+
+
+
+}
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsConfigRepository.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsConfigRepository.java
new file mode 100644
index 00000000..9ef115d6
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsConfigRepository.java
@@ -0,0 +1,12 @@
+package org.onap.ccsdk.apps.ms.sliboot.data;
+
+import org.springframework.data.repository.CrudRepository;
+
+import java.util.List;
+
+public interface TestResultsConfigRepository extends CrudRepository<TestResultConfig, Long> {
+
+ List<TestResultConfig> findByTestIdentifier(String testIdentifier);
+
+
+}
diff --git a/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsOperationalRepository.java b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsOperationalRepository.java
new file mode 100644
index 00000000..1198dd0b
--- /dev/null
+++ b/ms/sliboot/src/main/java/org/onap/ccsdk/apps/ms/sliboot/data/TestResultsOperationalRepository.java
@@ -0,0 +1,12 @@
+package org.onap.ccsdk.apps.ms.sliboot.data;
+
+import org.springframework.data.repository.CrudRepository;
+
+import java.util.List;
+
+public interface TestResultsOperationalRepository extends CrudRepository<TestResultOperational, Long> {
+
+ List<TestResultOperational> findByTestIdentifier(String testIdentifier);
+
+
+}
diff --git a/ms/sliboot/src/main/resources/DEMO_DEMO.xml b/ms/sliboot/src/main/resources/DEMO_DEMO.xml
new file mode 100755
index 00000000..1b304f18
--- /dev/null
+++ b/ms/sliboot/src/main/resources/DEMO_DEMO.xml
@@ -0,0 +1,35 @@
+<service-logic
+ xmlns='http://www.onap.org/sdnc/svclogic'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DEMO' version='1'>
+ <method rpc='DEMO' mode='sync'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="level" value="error" />
+ <parameter name="field1" value="Slf4jRecorder must be working!" />
+ </record>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID">
+ <parameter name="ctx-destination" value="requestID" />
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains" emitsOutcome='true' >
+ <parameter name="source" value="TEAM" />
+ <parameter name="target" value="I" />
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties" >
+ <parameter name="fileName" value="%SDNC_CONFIG_DIR%/aaf.properties" />
+ <parameter name="contextPrefix" value="tmp.props" />
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="restapiUrl" value="http://127.0.0.1:8080/restconf/config/SLI-API:test-results/"/>
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="test"/>
+ <parameter name="format" value="json" />
+ <parameter name="httpMethod" value="get" />
+ <parameter name="responsePrefix" value="restapi-result" />
+ </execute>
+ <return status='success'>
+ <parameter name='' value='' />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/ms/sliboot/src/main/resources/application-https.properties b/ms/sliboot/src/main/resources/application-https.properties
new file mode 100644
index 00000000..350e19f6
--- /dev/null
+++ b/ms/sliboot/src/main/resources/application-https.properties
@@ -0,0 +1,5 @@
+server.port=8443
+server.ssl.key-store=${CCSDK_CONFIG_DIR}/org.onap.sdnc.p12
+server.ssl.key-store-password=ff^G9D]yf&r}Ktum@BJ0YB?N
+server.ssl.key-store-type=pkcs12
+server.ssl.key-alias=sdnc@sdnc.onap.org
diff --git a/ms/sliboot/src/main/resources/application.properties b/ms/sliboot/src/main/resources/application.properties
new file mode 100644
index 00000000..98a2523c
--- /dev/null
+++ b/ms/sliboot/src/main/resources/application.properties
@@ -0,0 +1,27 @@
+springfox.documentation.swagger.v2.path=/api-docs
+server.servlet.context-path=/restconf
+server.port=8080
+# Uncomment following lines for https config
+#server.port=8443
+#server.ssl.key-store=${CCSDK_CONFIG_DIR}/org.onap.sdnc.p12
+#server.ssl.key-store-password=ff^G9D]yf&r}Ktum@BJ0YB?N
+#server.ssl.key-store-type=pkcs12
+#server.ssl.key-alias=sdnc@sdnc.onap.org
+# END OF https config
+# Uncomment the following line to enable AAF integration
+#cadi_prop_files=${CCSDK_CONFIG_DIR}/org.onap.sdnc.props
+spring.jackson.date-format=org.onap.ccsdk.apps.ms.sliboot.swagger.RFC3339DateFormat
+spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
+logging.level.com.att=TRACE
+logging.level.org.onap=TRACE
+spring.datasource.url=jdbc:mariadb://${MYSQL_DB_HOST}:3306/sdnctl
+spring.datasource.username=sli
+spring.datasource.password=abc123
+spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
+spring.datasource.testWhileIdle=true
+spring.datasource.validationQuery=SELECT 1
+spring.jpa.show-sql=true
+spring.jpa.hibernate.ddl-auto=update
+spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
+spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+spring.jpa.database=mysql \ No newline at end of file
diff --git a/ms/sliboot/src/main/resources/graph.versions b/ms/sliboot/src/main/resources/graph.versions
new file mode 100644
index 00000000..d21278aa
--- /dev/null
+++ b/ms/sliboot/src/main/resources/graph.versions
@@ -0,0 +1,3 @@
+sli healthcheck 0.7.0 sync
+sli vlbcheck 0.7.0 sync
+DEMO DEMO 1 sync
diff --git a/ms/sliboot/src/main/resources/log4j2.properties b/ms/sliboot/src/main/resources/log4j2.properties
new file mode 100644
index 00000000..40d18d15
--- /dev/null
+++ b/ms/sliboot/src/main/resources/log4j2.properties
@@ -0,0 +1,160 @@
+ #-
+ # ============LICENSE_START=======================================================
+ # ONAP - CCSDK
+ # ================================================================================
+ # Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ # ================================================================================
+ # Licensed under the Apache License, Version 2.0 (the "License");
+ # you may not use this file except in compliance with the License.
+ # You may obtain a copy of the License at
+ #
+ # http://www.apache.org/licenses/LICENSE-2.0
+ #
+ # Unless required by applicable law or agreed to in writing, software
+ # distributed under the License is distributed on an "AS IS" BASIS,
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+ # ============LICENSE_END=========================================================
+ #
+
+property.logDir = ${sys:LOG_PATH:-./target}
+
+property.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{currentGraph} - %X{nodeId} | %m%n
+
+#default mdc values
+property.ServiceName = INTERNAL
+property.ErrorCode = 900
+property.ErrorDesc = UnknownError
+
+rootLogger.level = INFO
+rootLogger.appenderRef.AppFile.ref = AppFile
+rootLogger.appenderRef.Console.ref = Console
+rootLogger.appenderRef.DebugFile.ref = DebugFile
+rootLogger.appenderRef.ErrorFile.ref = ErrorFile
+rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter
+rootLogger.appenderRef.Console.filter.threshold.level = DEBUG
+
+appender.console.type = Console
+appender.console.name = Console
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = ${pattern}
+
+appender.app.type = RollingRandomAccessFile
+appender.app.name = AppFile
+appender.app.fileName = ${logDir}/app.log
+appender.app.filePattern = ${logDir}/app.log.%i
+appender.app.immediateFlush = true
+appender.app.append = true
+appender.app.layout.type = PatternLayout
+appender.app.layout.pattern = ${pattern}
+appender.app.policies.type = Policies
+appender.app.policies.size.type = SizeBasedTriggeringPolicy
+appender.app.policies.size.size = 10MB
+appender.app.strategy.type = DefaultRolloverStrategy
+appender.app.strategy.max = 100
+appender.app.strategy.fileIndex = min
+
+appender.debug.type = RollingRandomAccessFile
+appender.debug.name = DebugFile
+appender.debug.fileName = ${logDir}/debug.log
+appender.debug.filePattern = ${logDir}/debug.log.%i
+appender.debug.immediateFlush = true
+appender.debug.append = true
+appender.debug.layout.type = PatternLayout
+appender.debug.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|%-5.5p|%-32.32c{1}|%X{currentGraph} - %X{nodeId}|%m%n
+appender.debug.policies.type = Policies
+appender.debug.policies.size.type = SizeBasedTriggeringPolicy
+appender.debug.policies.size.size = 10MB
+appender.debug.strategy.type = DefaultRolloverStrategy
+appender.debug.strategy.max = 200
+appender.debug.strategy.fileIndex = min
+
+appender.error.type = RollingRandomAccessFile
+appender.error.name = ErrorFile
+appender.error.fileName = ${logDir}/error.log
+appender.error.filePattern = ${logDir}/error.log.%i
+appender.error.immediateFlush = true
+appender.error.append = true
+appender.error.layout.type = PatternLayout
+appender.error.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|$${ctx:ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%p|$${ctx:ErrorCode}|$${ctx:ErrorDesc}|%m%n
+
+appender.error.policies.type = Policies
+appender.error.policies.size.type = SizeBasedTriggeringPolicy
+appender.error.policies.size.size = 10MB
+appender.error.strategy.type = DefaultRolloverStrategy
+appender.error.strategy.max = 100
+appender.error.strategy.fileIndex = min
+appender.error.filter.threshold.type = ThresholdFilter
+appender.error.filter.threshold.level = WARN
+
+appender.metric.type = RollingRandomAccessFile
+appender.metric.name = MetricFile
+appender.metric.fileName = ${logDir}/metric.log
+appender.metric.filePattern = ${logDir}/metric.log.%i
+appender.metric.immediateFlush = true
+appender.metric.append = true
+appender.metric.layout.type = PatternLayout
+appender.metric.layout.pattern=%X{InvokeTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|%p|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|||%X{TargetElement}|%markerSimpleName|%X|%X{currentGraph} - %X{nodeId}||%m%n
+appender.metric.policies.type = Policies
+appender.metric.policies.size.type = SizeBasedTriggeringPolicy
+appender.metric.policies.size.size = 10MB
+appender.metric.strategy.type = DefaultRolloverStrategy
+appender.metric.strategy.max = 100
+appender.metric.strategy.fileIndex = min
+
+appender.audit.type = RollingRandomAccessFile
+appender.audit.name = AuditFile
+appender.audit.fileName = ${logDir}/audit.log
+appender.audit.filePattern = ${logDir}/audit.log.%i
+appender.audit.immediateFlush = true
+appender.audit.append = true
+appender.audit.layout.type = PatternLayout
+appender.audit.layout.pattern=%X{EntryTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|INFO|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|%X{AUDIT-Unused}|%X{AUDIT-ProcessKey}|%markerSimpleName|%X|||%m%n
+appender.audit.policies.type = Policies
+appender.audit.policies.size.type = SizeBasedTriggeringPolicy
+appender.audit.policies.size.size = 10MB
+appender.audit.strategy.type = DefaultRolloverStrategy
+appender.audit.strategy.max = 200
+appender.audit.strategy.fileIndex = min
+
+appender.rr.name = RequestResponseFile
+appender.rr.type = RollingRandomAccessFile
+appender.rr.fileName = ${logDir}/request-response.log
+appender.rr.filePattern = ${logDir}/request-response.log.%i
+appender.rr.immediateFlush = true
+appender.rr.append = true
+appender.rr.layout.type = PatternLayout
+appender.rr.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%X{PartnerName}|%m%n
+appender.rr.policies.type = Policies
+appender.rr.policies.size.type = SizeBasedTriggeringPolicy
+appender.rr.policies.size.size = 10MB
+appender.rr.strategy.type = DefaultRolloverStrategy
+appender.rr.strategy.max = 100
+appender.rr.strategy.fileIndex = min
+
+logger.metric.name = org.onap.ccsdk.sli.core.filters.metric
+logger.metric.level = INFO
+logger.metric.additivity = false
+logger.metric.appenderRef.MetricFile.ref = MetricFile
+
+logger.metric2.name = org.onap.logging.filter.base.AbstractMetricLogFilter
+logger.metric2.level = INFO
+logger.metric2.additivity = false
+logger.metric2.appenderRef.MetricFile.ref = MetricFile
+
+logger.audit.name = org.onap.logging.filter.base.AbstractAuditLogFilter
+logger.audit.level = INFO
+logger.audit.additivity = false
+logger.audit.appenderRef.AuditFile.ref = AuditFile
+
+logger.rr.name = org.onap.logging.filter.base.PayloadLoggingServletFilter
+logger.rr.level = INFO
+logger.rr.additivity = false
+logger.rr.appenderRef.RequestResponseFile.ref = RequestResponseFile
+
+logger.ccsdk.name = org.onap.ccsdk
+logger.ccsdk.level = DEBUG
+
+logger.onaplogging.name = org.onap.logging
+logger.onaplogging.level = DEBUG \ No newline at end of file
diff --git a/ms/sliboot/src/main/resources/org.onap.sdnc.cred.props b/ms/sliboot/src/main/resources/org.onap.sdnc.cred.props
new file mode 100644
index 00000000..e702d610
--- /dev/null
+++ b/ms/sliboot/src/main/resources/org.onap.sdnc.cred.props
@@ -0,0 +1,17 @@
+############################################################
+# Properties Generated by AT&T Certificate Manager
+# by root
+# on 2020-04-07T19:49:10.483+0000
+# @copyright 2019, AT&T
+############################################################
+Challenge=enc:gsZC3qJk3ylRSusYHUQqBiflWlKXn4rnh-fULJmfIU3RAphd_AHmZ6c6kl42qcJE
+cadi_alias=sdnc@sdnc.onap.org
+cadi_key_password=enc:HLzeIrsDqKLcY1fNlbRTXVch5RrfUvAXKW_sJ9cv9Rs49q8GsiPsZDqboJXAT-lF
+cadi_keyfile=/opt/onap/ccsdk/config/org.onap.sdnc.keyfile
+cadi_keystore=/opt/onap/ccsdk/config/org.onap.sdnc.p12
+cadi_keystore_password=enc:aH6rL1KPu8ZzMtQ16FiMvGE-janpERZBU3tnVuGcXBaK2T9_3F28UuBH-GJ2BRjM
+cadi_keystore_password_jks=enc:ydq6zoDeWGdBbFXkF_bLHJ4HrhMn-cSZ11m-NUNCm116gYhsjF1HKfkqs6Wrn6Zl
+cadi_keystore_password_p12=enc:aH6rL1KPu8ZzMtQ16FiMvGE-janpERZBU3tnVuGcXBaK2T9_3F28UuBH-GJ2BRjM
+cadi_truststore=/opt/onap/ccsdk/config/org.onap.sdnc.trust.jks
+cadi_truststore_password=enc:Lhl6jEPxCYutrEpioq0woR1ypC4K1i9yPWKGRG7s9eARe5egSzsEBCooiKB7om5B
+cadi_x509_issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_7, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_9, OU=OSAAF, O=ONAP, C=US
diff --git a/ms/sliboot/src/main/resources/org.onap.sdnc.keyfile b/ms/sliboot/src/main/resources/org.onap.sdnc.keyfile
new file mode 100644
index 00000000..eb8fe842
--- /dev/null
+++ b/ms/sliboot/src/main/resources/org.onap.sdnc.keyfile
@@ -0,0 +1,27 @@
+Xgwa72kLHXU9NRElW4t4taIjudICPqMwywqYe1HVQ7Ve9ccqRRksY9gjK4hnDwU9mn0XdYEMlIU2
+OMWL4ck6PaxjHlaVR1qVBIFRcrkXs_ttagrjijBxXvJvJVI60JMCBGmIgNkI78wnEZOi6PLG0x7S
+agVQM34a5HHBEMePfqtgO-J8rBXMaeIrpHOTTEEtZXU-ZvbI8VZWhCD0e9fnn3YlFQaPeni0zqOE
+NY_lV6ZxlAtD5RCKdQWuU4O_cmmv3_LpIm41NT7Dn4sG6QzHjw2WM5essLTCEUvXJntlj3OmZTkr
+p4lPBVAWg2-qc_ZZyY2VEtoxVmKIMP15ctq50RVgPtQMmd-hdj5I51yW5MQYSM4jTgxtspiGUDJq
+ftsxb76K5w76X-ADxpZt85bEe068dwEoqZd5Qe33jIcZD2iNfGUb_ee1vSVlTQO1JlGqHAelUNks
+ellL5WE7X4g4TCG8KW38_GUOyohyQ5pv-Mozq-Sxz2bK8JCBs6hFBhKbnE07x3yY7SOBVnDbdCec
+cXZ86TNcdOsxBdqfNXD4PK_qMiXZTh3OMRsEG8IhhFyD3sbpFEyVhU_96o47iOgvAeAAiIKJ2Uww
+QUTHfNxp7LWUTw7aHhmK4wZLpFS-Lz1seat65uNp9DRuQ9jin0Hpi0XW1UwY4WzYvWeiQh2swwM8
+XCz9jawem18wTJ-pZUvKtkAQ5ImwSBuIFaKoUkbiowrNAGFOFGaFhtapV1uvehPlpmzbvn9HfPO8
+1xAp3Jusu3G4tGrrsJdvkenUB-3BbcJHMPE-Ku1jEWGoOXnrn0WURiHXhYMy8gWbko56ykftIJRP
+Q4bq4TCwxNE8nzhNXSh0_dqYK0JlAkoOtvkBogM42Ljly5ODCIDb7NZFtTyK3FpYVXLC-um9wYxI
+2t7V5N-nPinFf9hWzgTCvnjfAn0X2kAWTBQVwO-Sxepy40ZbTkEkQzsKyFKa3pnB_BmkE6dvQMqj
+QZlg5dpu3eacVSMPaZCdgISYN-pYrWNYtPKKlxYQgsK0Z6hJuS-87snx-WYRN4SRhWBY_b-G1EsZ
+SeL9L8daNXYzmOHnprenlz5ZqitnM_KoL9th_rG4krV8-Nlw1Rh7K_YcXuFsKGTlzYbuoHyM1CBn
+oWPIf32W5DN4BRcSTi74wV_tScQL4sueKYo3epZMrTA0djFyq94-wyA0bOzySQxcrGIvvLMITJ51
+U6c845RXFAK8_Z2Nt8-Mdv6Ox_KDmZtX4P9bNJ21nM9D9Htgr2H5GIBXFBt_ZDUzwZ5WLrs-l4Li
+26dHL5OudyekOaI4BVxg_09hRD9xNPpU5kiVcz5_QAi7QsnYqf53oB55H_NEhq1h3KOmqzJw9q7M
+kYQgO-q5Y5dIvduBe9zruFIQIt-WhhRJM8v4i50QNaOCnbZfmDalStlSzFX9xEXKESU8q-7VwxRT
+Aro7Teu_fS3PXvsgr6hHSf-SK2zbrizPG-5AaPn3SkBoU-3Ofr-HeJfihx0NnvcCnjDYvQw9C5d6
+845zvcrJrphNkXVPNO23lRMTEuStQiCbbdZcaNcPFXMpjlS4x8tonxwNqBBa4CwO7p5omkayEVLi
+i_JbOg4JSor1C_cSnA9TIfEcwVe9znPeEE01uFp_IBP5rJHuiInca-f7NbZFDkhO5LJPIoyvmTHZ
+76LBniKhcocSW8CR7Gc9Q8wxXJFEivQb4JvA1gd8VZ_A31yqnSTnApxGcAu1DEHNnCd9AVYIq9jd
+weFikVaf5n3GF-DBYxeesu1ChEmTOLN0tZw43uyAvqWrqLU_m5DspMAv-MNA0ddgcMOw8yph0035
+5HgcosFyhnx_FByGJtbr0bahZ1dJnswN_lXlRUYB2-WYnWUot-ONKiw3cD7kU095p3zPOHkd6KlI
+cyRcCDVN9KQkE-S9VDWBWD8V2A6wudLLICsRug_Ypa6doZKGcF335ZT9U54R9DNqUHCf3IEu0xl3
+YlQrkCwrFZB8WVMkfJQJKFfqYyjeH-t-afS3JR-PkH-qBRDFFYZ3m1anYuZI20-IiP8BZKCI \ No newline at end of file
diff --git a/ms/sliboot/src/main/resources/org.onap.sdnc.p12 b/ms/sliboot/src/main/resources/org.onap.sdnc.p12
new file mode 100644
index 00000000..23a701a2
--- /dev/null
+++ b/ms/sliboot/src/main/resources/org.onap.sdnc.p12
Binary files differ
diff --git a/ms/sliboot/src/main/resources/org.onap.sdnc.props b/ms/sliboot/src/main/resources/org.onap.sdnc.props
new file mode 100644
index 00000000..adef904d
--- /dev/null
+++ b/ms/sliboot/src/main/resources/org.onap.sdnc.props
@@ -0,0 +1,14 @@
+############################################################
+# Properties Generated by AT&T Certificate Manager
+# by root
+# on 2020-04-07T19:49:08.370+0000
+# @copyright 2019, AT&T
+############################################################
+aaf_id=sdnc@sdnc.onap.org
+aaf_locate_url=https://aaf-onap-test.osaaf.org:8095
+aaf_url=https://AAF_LOCATE_URL/AAF_NS.service:2.1
+cadi_latitude=38.432899
+cadi_longitude=-90.43248
+cadi_prop_files=/opt/onap/ccsdk/config/org.onap.sdnc.cred.props
+cm_url=https://AAF_LOCATE_URL/AAF_NS.cm:2.1
+cadi_protocols=TLSv1.1,TLSv1.2
diff --git a/ms/sliboot/src/main/resources/org.onap.sdnc.trust.jks b/ms/sliboot/src/main/resources/org.onap.sdnc.trust.jks
new file mode 100644
index 00000000..7a698619
--- /dev/null
+++ b/ms/sliboot/src/main/resources/org.onap.sdnc.trust.jks
Binary files differ
diff --git a/ms/sliboot/src/main/resources/schema-derby.sql b/ms/sliboot/src/main/resources/schema-derby.sql
new file mode 100644
index 00000000..b98b4ad0
--- /dev/null
+++ b/ms/sliboot/src/main/resources/schema-derby.sql
@@ -0,0 +1,2764 @@
+
+
+--
+-- Table structure for table `ACCESS_LOG`
+--
+
+CREATE TABLE `ACCESS_LOG` (
+ `access_log_seq` int(11) NOT NULL AUTO_INCREMENT,
+ `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `method` varchar(12) DEFAULT NULL,
+ `version` varchar(12) DEFAULT NULL,
+ `status` varchar(12) DEFAULT NULL,
+ `url` varchar(256) DEFAULT NULL,
+ `remote_address` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`access_log_seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=1034 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CUSTOMER`
+--
+
+
+CREATE TABLE `CUSTOMER` (
+ `cust_id` int(11) NOT NULL AUTO_INCREMENT,
+ `customer_name` varchar(256) DEFAULT NULL,
+ `grua` varchar(4) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`cust_id`),
+ UNIQUE KEY `IU1_CUSTOMER` (`customer_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=155 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `ADDRESS_PLAN_POLICIES`
+--
+
+CREATE TABLE `ADDRESS_PLAN_POLICIES` (
+ `key_name` varchar(255) NOT NULL,
+ `key_value_source_type` varchar(255) NOT NULL,
+ `key_value_source` varchar(255) NOT NULL,
+ PRIMARY KEY (`key_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AGNOSTIC_NOTIFICATION_URL`
+--
+
+CREATE TABLE `AGNOSTIC_NOTIFICATION_URL` (
+ `service_type` varchar(128) NOT NULL,
+ `service_instance_id` varchar(128) NOT NULL,
+ `request_id` varchar(128) NOT NULL,
+ `svc_notification_url` varchar(256) NOT NULL,
+ PRIMARY KEY (`service_type`,`service_instance_id`,`request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `AGNOSTIC_TO_SVC_SPCFC_API`
+--
+CREATE TABLE `AGNOSTIC_TO_SVC_SPCFC_API` (
+ `operation` varchar(128) NOT NULL,
+ `service` varchar(128) NOT NULL,
+ `service_specific_api` varchar(128) NOT NULL,
+ `async_process` varchar(15) DEFAULT NULL,
+ PRIMARY KEY (`operation`,`service`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_AVAIL_ZONE_POOL`
+--
+CREATE TABLE `AIC_AVAIL_ZONE_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `token` varchar(5) NOT NULL,
+ `vnf_id` varchar(80) DEFAULT NULL,
+ `service_type` varchar(100) NOT NULL,
+ `vnf_type` varchar(20) DEFAULT NULL,
+ `hypervisor` varchar(10) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`token`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_HOSTNAME`
+--
+CREATE TABLE `AIC_HOSTNAME` (
+ `hostname` varchar(20) NOT NULL,
+ `cust_id` int(11) NOT NULL,
+ `vendor_code` varchar(1) NOT NULL,
+ `virtual_device_type` varchar(2) DEFAULT NULL,
+ `device_sequence` varchar(3) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`hostname`),
+ UNIQUE KEY `hostname` (`hostname`),
+ KEY `IN1_AIC_HOSTNAME` (`cust_id`),
+ CONSTRAINT `AC1_HOSTNAME` FOREIGN KEY (`cust_id`) REFERENCES `CUSTOMER` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_NETWORK`
+--
+
+CREATE TABLE `AIC_NETWORK` (
+ `network_id` varchar(100) NOT NULL,
+ `network_name` varchar(100) DEFAULT NULL,
+ `status` varchar(20) DEFAULT NULL,
+ `tenant_id` varchar(100) DEFAULT NULL,
+ `switch_uuid` varchar(100) DEFAULT NULL,
+ `portgroup_name` varchar(100) DEFAULT NULL,
+ `portgroup_id` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_SITE`
+--
+
+CREATE TABLE `AIC_SITE` (
+ `name` varchar(100) DEFAULT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `vcenter_url` varchar(200) DEFAULT NULL,
+ `vcenter_username` varchar(40) DEFAULT NULL,
+ `vcenter_passwd` varbinary(255) DEFAULT NULL,
+ `city` varchar(100) DEFAULT NULL,
+ `state` varchar(2) DEFAULT NULL,
+ `operational_status` varchar(20) DEFAULT NULL,
+ `oam_gateway_addr` varchar(20) DEFAULT '',
+ PRIMARY KEY (`aic_site_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_SWITCH`
+--
+
+CREATE TABLE `AIC_SWITCH` (
+ `switch_name` varchar(100) DEFAULT NULL,
+ `physical_network_name` varchar(100) NOT NULL,
+ `aic_site_id` varchar(100) DEFAULT NULL,
+ `uuid` varchar(100) DEFAULT NULL,
+ `availability_zone` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`physical_network_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_ZONE_CLOUD_REGION_ID`
+--
+
+CREATE TABLE `AIC_ZONE_CLOUD_REGION_ID` (
+ `zone_region_id` varchar(255) NOT NULL,
+ `cilli_code` varchar(255) NOT NULL,
+ `location_id` varchar(255) NOT NULL DEFAULT '',
+ `city_state_country` varchar(255) NOT NULL DEFAULT '',
+ PRIMARY KEY (`zone_region_id`,`cilli_code`,`location_id`,`city_state_country`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALLOCATION_ITEM`
+--
+
+CREATE TABLE `ALLOCATION_ITEM` (
+ `allocation_item_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_id` bigint(20) NOT NULL,
+ `application_id` varchar(50) NOT NULL,
+ `resource_set_id` varchar(200) NOT NULL,
+ `resource_union_id` varchar(200) NOT NULL,
+ `resource_share_group_list` varchar(200) DEFAULT NULL,
+ `lt_used` bigint(20) DEFAULT NULL,
+ `ll_label` varchar(50) DEFAULT NULL,
+ `rr_used` varchar(200) DEFAULT NULL,
+ `allocation_time` datetime NOT NULL,
+ PRIMARY KEY (`allocation_item_id`),
+ UNIQUE KEY `allocation_item_id` (`allocation_item_id`),
+ UNIQUE KEY `IX2_ALLOCATION_ITEM` (`resource_id`,`resource_set_id`),
+ KEY `IX1_ALLOCATION_ITEM` (`resource_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=5764 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALLOTTED_RESOURCE_MODEL`
+--
+
+CREATE TABLE `ALLOTTED_RESOURCE_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `depending_service` varchar(255) DEFAULT NULL,
+ `role` varchar(255) DEFAULT NULL,
+ `type` varchar(255) DEFAULT NULL,
+ `service_dependency` varchar(255) DEFAULT NULL,
+ `allotted_resource_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALTS_CREDENTIALS`
+--
+
+CREATE TABLE `ALTS_CREDENTIALS` (
+ `alts_username` varchar(255) NOT NULL,
+ `alts_password` varbinary(255) NOT NULL,
+ PRIMARY KEY (`alts_username`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ASDC_ARTIFACTS`
+--
+
+CREATE TABLE `ASDC_ARTIFACTS` (
+ `asdc_artifacts_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_uuid` varchar(50) DEFAULT NULL,
+ `distribution_id` varchar(50) DEFAULT NULL,
+ `service_name` varchar(255) DEFAULT NULL,
+ `service_description` varchar(255) DEFAULT NULL,
+ `resource_uuid` varchar(255) DEFAULT NULL,
+ `resource_instance_name` varchar(255) DEFAULT NULL,
+ `resource_name` varchar(255) DEFAULT NULL,
+ `resource_version` varchar(50) DEFAULT NULL,
+ `resource_type` varchar(50) DEFAULT NULL,
+ `artifact_uuid` varchar(50) DEFAULT NULL,
+ `artifact_type` varchar(50) DEFAULT NULL,
+ `artifact_version` varchar(25) DEFAULT NULL,
+ `artifact_description` varchar(255) DEFAULT NULL,
+ `internal_version` int(11) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `artifact_name` varchar(255) DEFAULT NULL,
+ `artifact_content` longtext,
+ PRIMARY KEY (`asdc_artifacts_id`),
+ UNIQUE KEY `asdc_artifacts_id` (`asdc_artifacts_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ASDC_REFERENCE`
+--
+
+CREATE TABLE `ASDC_REFERENCE` (
+ `asdc_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_type` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `file_category` varchar(50) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `artifact_type` varchar(50) DEFAULT NULL,
+ `artifact_name` varchar(255) NOT NULL,
+ PRIMARY KEY (`asdc_reference_id`),
+ UNIQUE KEY `asdc_reference_id` (`asdc_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `BLOB_TEST`
+--
+
+CREATE TABLE `BLOB_TEST` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `odl` varchar(20) DEFAULT NULL,
+ `communities` mediumblob,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `retry_count` int(11) DEFAULT '-1',
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CAPABILITY`
+--
+
+CREATE TABLE `CAPABILITY` (
+ `capability_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_name` varchar(50) NOT NULL,
+ `implementation_name` varchar(100) NOT NULL,
+ `operation_name` varchar(50) NOT NULL,
+ `operation_description` varchar(100) NOT NULL,
+ `input_definition` longtext,
+ `output_definition` longtext,
+ `dependency_definition` longtext,
+ `tags` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`capability_id`),
+ UNIQUE KEY `capability_id` (`capability_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CITY_CODE`
+--
+
+CREATE TABLE `CITY_CODE` (
+ `city_code_id` int(11) NOT NULL AUTO_INCREMENT,
+ `city_code` varchar(3) NOT NULL,
+ `city` varchar(150) NOT NULL,
+ `state` varchar(10) NOT NULL,
+ `country_code` varchar(10) NOT NULL,
+ PRIMARY KEY (`city_code_id`),
+ KEY `IN1_CITY_CODE` (`city`,`state`,`country_code`)
+) ENGINE=InnoDB AUTO_INCREMENT=37822 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CLI_UPDATES`
+--
+
+CREATE TABLE `CLI_UPDATES` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `create_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+ `last_processed_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `target_address` varchar(128) DEFAULT NULL,
+ `cli_text` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIGFILES`
+--
+
+CREATE TABLE `CONFIGFILES` (
+ `config_file_id` int(11) NOT NULL AUTO_INCREMENT,
+ `external_version` varchar(50) DEFAULT NULL,
+ `data_source` varchar(25) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `file_category` varchar(50) DEFAULT NULL,
+ `file_name` varchar(255) DEFAULT NULL,
+ `file_content` longtext,
+ `action` varchar(50) DEFAULT NULL,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`config_file_id`),
+ UNIQUE KEY `config_file_id` (`config_file_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIGURE_ACTION_DG`
+--
+
+
+CREATE TABLE `CONFIGURE_ACTION_DG` (
+ `configure_action_dg_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `init_config_dg` varchar(50) DEFAULT NULL,
+ `generate_config_dg` varchar(50) DEFAULT NULL,
+ `download_config_dg` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`configure_action_dg_id`),
+ UNIQUE KEY `configure_action_dg_id` (`configure_action_dg_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `CONFIG_CONTENT`
+--
+
+CREATE TABLE `CONFIG_CONTENT` (
+ `config_content_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` varchar(50) NOT NULL,
+ `content_type` varchar(50) NOT NULL,
+ `template_name` varchar(50) DEFAULT NULL,
+ `originator_id` varchar(50) DEFAULT NULL,
+ `service_description` varchar(100) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `service_type` varchar(50) DEFAULT NULL,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `host_ip_address` varchar(50) DEFAULT NULL,
+ `config_indicator` varchar(25) DEFAULT NULL,
+ `pending_delete` varchar(1) DEFAULT NULL,
+ `content` longtext,
+ PRIMARY KEY (`config_content_id`),
+ UNIQUE KEY `config_content_id` (`creation_date`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `CONFIG_FILE_REFERENCE`
+--
+
+CREATE TABLE `CONFIG_FILE_REFERENCE` (
+ `config_file_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `site_location` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `import_type` varchar(50) DEFAULT NULL,
+ `file_type` varchar(50) DEFAULT NULL,
+ `source_server_name` varchar(255) DEFAULT NULL,
+ `source_file_path` varchar(255) DEFAULT NULL,
+ `target_file_path` varchar(255) DEFAULT NULL,
+ `name` varchar(50) DEFAULT NULL,
+ `file_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`config_file_reference_id`),
+ UNIQUE KEY `config_file_reference_id` (`config_file_reference_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIG_TRANSACTION_LOG`
+--
+
+CREATE TABLE `CONFIG_TRANSACTION_LOG` (
+ `config_transaction_log_id` varchar(50) NOT NULL,
+ `request_id` varchar(50) DEFAULT NULL,
+ `message_type` varchar(100) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `message` longtext,
+ PRIMARY KEY (`config_transaction_log_id`),
+ UNIQUE KEY `config_transaction_log_id` (`config_transaction_log_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `COUNTRY_ASN_MAPPING`
+--
+
+CREATE TABLE `COUNTRY_ASN_MAPPING` (
+ `asn` int(5) NOT NULL,
+ `iso_2char` varchar(5) NOT NULL,
+ `iso_3char` varchar(5) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+
+
+--
+-- Table structure for table `CUSTOMER2CONNECTION_MAPPING`
+--
+
+CREATE TABLE `CUSTOMER2CONNECTION_MAPPING` (
+ `customer2connection_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `service_type` varchar(30) DEFAULT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ `status` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`customer2connection_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CUSTOMER2CONNECTION_MAPPING_NEW`
+--
+
+CREATE TABLE `CUSTOMER2CONNECTION_MAPPING_NEW` (
+ `customer2connection_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `service_type` varchar(30) DEFAULT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ `status` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`customer2connection_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DATA_OBJECT_MAPPING`
+--
+
+CREATE TABLE `DATA_OBJECT_MAPPING` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `data_object_key` varchar(100) NOT NULL,
+ `data_object_type` varchar(50) NOT NULL,
+ `service_type` varchar(50) NOT NULL,
+ `data_object_key2` varchar(100) NOT NULL,
+ `data_object_key2_type` varchar(50) NOT NULL,
+ `data_object_key3` varchar(100) DEFAULT NULL,
+ `data_object_key3_type` varchar(50) DEFAULT NULL,
+ `service` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DATA_OBJECT_MAPPING` (`data_object_key`,`data_object_type`,`service_type`),
+ KEY `IX2_DATA_OBJECT_MAPPING` (`service_type`,`data_object_key2`,`data_object_key2_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=3211 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2CONNECTION_MAPPING`
+--
+
+CREATE TABLE `DEVICE2CONNECTION_MAPPING` (
+ `vnf_host_name` varchar(100) NOT NULL,
+ `e2e_vpn_key` varchar(30) NOT NULL,
+ `service_type` varchar(30) NOT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ PRIMARY KEY (`vnf_host_name`,`e2e_vpn_key`,`service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2IPADDRESS_CONSUMPTION`
+--
+
+CREATE TABLE `DEVICE2IPADDRESS_CONSUMPTION` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `device_id` varchar(100) NOT NULL,
+ `device_type` varchar(30) NOT NULL,
+ `ip_version` varchar(10) NOT NULL,
+ `consumption_key` varchar(100) NOT NULL,
+ `logical_interface_service_id` varchar(100) NOT NULL,
+ `address_type` varchar(30) NOT NULL,
+ `ip_consumed` varchar(50) NOT NULL,
+ `vnf_type` varchar(30) NOT NULL,
+ `secondary_key` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DEVICEIPADDRESS_CONSUMPTION` (`device_id`,`device_type`,`ip_version`)
+) ENGINE=InnoDB AUTO_INCREMENT=1357 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2IPADDRESS_MAPPING`
+--
+
+CREATE TABLE `DEVICE2IPADDRESS_MAPPING` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `device_id` varchar(100) NOT NULL,
+ `device_type` varchar(30) NOT NULL,
+ `secondary_key` varchar(100) NOT NULL,
+ `secondary_key_type` varchar(30) NOT NULL,
+ `address` varchar(50) NOT NULL,
+ `address_type` varchar(30) NOT NULL,
+ `ip_version` varchar(10) NOT NULL,
+ `length` int(11) NOT NULL,
+ `status` varchar(30) NOT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DEVICE2IPADDRESS_MAPPING` (`device_id`,`device_type`,`secondary_key`,`secondary_key_type`,`address`,`address_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=4734 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_AUTHENTICATION`
+--
+
+CREATE TABLE `DEVICE_AUTHENTICATION` (
+ `device_authentication_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `user_name` varchar(50) DEFAULT NULL,
+ `password` varchar(100) DEFAULT NULL,
+ `protocol` varchar(100) DEFAULT NULL,
+ `port_number` int(11) DEFAULT NULL,
+ PRIMARY KEY (`device_authentication_id`),
+ UNIQUE KEY `device_authentication_id` (`device_authentication_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_INTERFACE_LOG`
+--
+
+CREATE TABLE `DEVICE_INTERFACE_LOG` (
+ `device_interface_log_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `request_id` varchar(50) DEFAULT NULL,
+ `creation_date` datetime NOT NULL,
+ `log` longtext,
+ PRIMARY KEY (`device_interface_log_id`),
+ UNIQUE KEY `device_interface_log_id` (`device_interface_log_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_INTERFACE_PROTOCOL`
+--
+
+CREATE TABLE `DEVICE_INTERFACE_PROTOCOL` (
+ `device_interface_protocol_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `protocol` varchar(50) DEFAULT NULL,
+ `module` varchar(50) DEFAULT NULL,
+ `dg_rpc` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`device_interface_protocol_id`),
+ UNIQUE KEY `device_interface_protocol_id` (`device_interface_protocol_id`),
+ UNIQUE KEY `vnf_type` (`vnf_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DOWNLOAD_CONFIG_TEMPLATE`
+--
+
+CREATE TABLE `DOWNLOAD_CONFIG_TEMPLATE` (
+ `download_config_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) NOT NULL,
+ `protocol` varchar(50) NOT NULL,
+ `template` longtext,
+ PRIMARY KEY (`download_config_template_id`),
+ UNIQUE KEY `download_config_template_id` (`download_config_template_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DOWNLOAD_DG_REFERENCE`
+--
+
+CREATE TABLE `DOWNLOAD_DG_REFERENCE` (
+ `download_dg_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `protocol` varchar(50) NOT NULL,
+ `download_config_dg` varchar(50) NOT NULL,
+ PRIMARY KEY (`download_dg_reference_id`),
+ UNIQUE KEY `download_dg_reference_id` (`download_dg_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_CLIENT_KEY_INDEX`
+--
+
+CREATE TABLE `EIPAM_CLIENT_KEY_INDEX` (
+ `vnf_name_prefix` varchar(100) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_ASSIGNMENTS`
+--
+
+CREATE TABLE `EIPAM_IP_ASSIGNMENTS` (
+ `plan_name` varchar(40) NOT NULL,
+ `client_key` varchar(100) NOT NULL,
+ `service_type` varchar(40) NOT NULL,
+ `ip_address` varchar(40) DEFAULT NULL,
+ `prefix_length` int(2) DEFAULT NULL,
+ `status` varchar(255) DEFAULT NULL,
+ `service_instance_id` varchar(80) DEFAULT NULL,
+ `last_modified_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `prev_status` varchar(20) DEFAULT NULL,
+ `info` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`plan_name`,`client_key`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_POOLS`
+--
+
+CREATE TABLE `EIPAM_IP_POOLS` (
+ `pool_id` int(11) NOT NULL AUTO_INCREMENT,
+ `key_name` varchar(50) NOT NULL,
+ `key_value` varchar(255) NOT NULL,
+ `level` int(2) NOT NULL,
+ `plan_name` varchar(50) NOT NULL,
+ `address_family` varchar(10) NOT NULL,
+ `parent_pool` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) DEFAULT NULL,
+ `network_id` varchar(255) DEFAULT NULL,
+ `created_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `delete_failure` varchar(20) DEFAULT NULL,
+ `delete_request_id` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`pool_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=339 DEFAULT CHARSET=latin1 COMMENT='This table will capture the pools being created by SDN-C in EIPAM_IP_POOLS. There is no data migration for existing vPE pool data.';
+
+--
+-- Table structure for table `EIPAM_IP_SUBNETS`
+--
+
+CREATE TABLE `EIPAM_IP_SUBNETS` (
+ `entity_id` int(6) NOT NULL,
+ `service_type` varchar(40) NOT NULL,
+ `plan_name` varchar(50) NOT NULL,
+ `address_family` varchar(10) NOT NULL,
+ `ip_address` varchar(40) NOT NULL,
+ `prefix_length` int(3) NOT NULL,
+ `status` varchar(20) NOT NULL,
+ `last_modified_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `network_id` varchar(255) DEFAULT NULL,
+ `pool_id` int(11) DEFAULT NULL,
+ `dealloc_failure` varchar(20) DEFAULT NULL,
+ `dealloc_request_id` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`entity_id`),
+ KEY `FK_EIPAM_IP_SUBNETS_EIPAM_IP_POOLS` (`pool_id`),
+ CONSTRAINT `EIPAM_IP_SUBNETS_ibfk_1` FOREIGN KEY (`pool_id`) REFERENCES `EIPAM_IP_POOLS` (`pool_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK_EIPAM_IP_SUBNETS_EIPAM_IP_POOLS` FOREIGN KEY (`pool_id`) REFERENCES `EIPAM_IP_POOLS` (`pool_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_SUBNET_KEYS`
+--
+
+CREATE TABLE `EIPAM_IP_SUBNET_KEYS` (
+ `entity_id` int(6) NOT NULL,
+ `key_name` varchar(50) NOT NULL,
+ `key_value` varchar(255) NOT NULL,
+ `level` int(2) NOT NULL,
+ PRIMARY KEY (`entity_id`,`key_name`,`key_value`,`level`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_REQUEST_KEY`
+--
+
+CREATE TABLE `EIPAM_REQUEST_KEY` (
+ `key_name_1` varchar(50) NOT NULL,
+ `address_family` varchar(4) NOT NULL,
+ `serial_key` int(2) NOT NULL AUTO_INCREMENT,
+ `plan_name` varchar(50) NOT NULL,
+ `request_length` int(2) NOT NULL,
+ `pools_length` int(2) NOT NULL,
+ `plan_length` int(2) NOT NULL,
+ `key_name_0` varchar(50) NOT NULL,
+ `key_name_type_0` varchar(255) NOT NULL,
+ `key_name_type_1` varchar(255) NOT NULL,
+ `prefix_length` int(2) NOT NULL,
+ `group_flag` char(1) NOT NULL,
+ `address_type` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`key_name_1`,`address_family`),
+ UNIQUE KEY `IX1_EIPAM_REQUEST_KEY` (`serial_key`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EXTERNAL_DATA`
+--
+
+CREATE TABLE `EXTERNAL_DATA` (
+ `external_data_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` int(11) DEFAULT NULL,
+ `param_name` varchar(30) NOT NULL,
+ `param_value` varchar(50) NOT NULL,
+ PRIMARY KEY (`external_data_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `FLOW_UPDATES`
+--
+
+CREATE TABLE `FLOW_UPDATES` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `create_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `last_processed_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `odl` varchar(128) DEFAULT NULL,
+ `address_family` enum('IPV4','IPV6') DEFAULT NULL,
+ `destination_prefix` varchar(50) DEFAULT NULL,
+ `communities` varchar(6000) DEFAULT NULL,
+ `route_key` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK`
+--
+
+CREATE TABLE `GENERIC_L3_NETWORK` (
+ `network_id` varchar(80) NOT NULL,
+ `network_name` varchar(80) DEFAULT NULL,
+ `network_type` varchar(80) DEFAULT NULL,
+ `network_role` varchar(80) DEFAULT NULL,
+ `network_technology` varchar(80) DEFAULT NULL,
+ `neutron_network_id` varchar(80) DEFAULT NULL,
+ `is_bound_to_vpn` tinyint(1) DEFAULT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `service_id` varchar(80) NOT NULL,
+ `tenant_id` varchar(80) NOT NULL,
+ `physical_location_id` varchar(20) DEFAULT NULL,
+ `network_role_instance` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK_SUBNET`
+--
+
+CREATE TABLE `GENERIC_L3_NETWORK_SUBNET` (
+ `network_id` varchar(80) NOT NULL,
+ `subnet_id` varchar(80) NOT NULL,
+ `neutron_subnet_id` varchar(80) DEFAULT NULL,
+ `gateway_address` varchar(45) NOT NULL,
+ `network_start_address` varchar(45) NOT NULL,
+ `cidr_mask` varchar(20) NOT NULL,
+ `ip_version` char(1) NOT NULL,
+ `orchestration_status` varchar(64) NOT NULL,
+ `dhcp_enabled` tinyint(1) NOT NULL,
+ `dhcp_start` varchar(45) DEFAULT NULL,
+ `dhcp_end` varchar(45) DEFAULT NULL,
+ PRIMARY KEY (`network_id`,`subnet_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK_VPN_BINDING`
+--
+
+CREATE TABLE `GENERIC_L3_NETWORK_VPN_BINDING` (
+ `network_id` varchar(80) NOT NULL,
+ `vpn_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_id`,`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_RESOURCE_NAME`
+--
+
+CREATE TABLE `GENERIC_RESOURCE_NAME` (
+ `type` varchar(50) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `prefix` varchar(255) NULL,
+ `name_index` int(11) NULL,
+ `context_id` varchar(255) NULL,
+ PRIMARY KEY (`type`,`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF`
+--
+
+CREATE TABLE `GENERIC_VNF` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vnf_name` varchar(80) NOT NULL,
+ `vnf_type` varchar(200) NOT NULL,
+ `vnf_name2` varchar(80) DEFAULT NULL,
+ `service_id` varchar(80) NOT NULL,
+ `equipment_role` varchar(80) NOT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `prov_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `regional_resource_zone` varchar(80) DEFAULT NULL,
+ `operational_state` varchar(80) DEFAULT NULL,
+ `license_key` varchar(80) DEFAULT NULL,
+ `ipv4_oam_address` varchar(20) DEFAULT NULL,
+ `ipv4_loopback0_address` varchar(20) DEFAULT NULL,
+ `nm_lan_v6_address` varchar(40) DEFAULT NULL,
+ `management_v6_address` varchar(40) DEFAULT NULL,
+ `management_option` varchar(45) DEFAULT NULL,
+ `vcpu` varchar(45) DEFAULT NULL,
+ `vmemory` varchar(45) DEFAULT NULL,
+ `vdisk` varchar(45) DEFAULT NULL,
+ `vcpu_units` varchar(45) DEFAULT NULL,
+ `vmemory_units` varchar(45) DEFAULT NULL,
+ `vdisk_units` varchar(45) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_L3_NETWORK`
+--
+
+CREATE TABLE `GENERIC_VNF_L3_NETWORK` (
+ `vnf_id` varchar(80) NOT NULL,
+ `network_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_LICENSE_MANAGEMENT`
+--
+
+CREATE TABLE `GENERIC_VNF_LICENSE_MANAGEMENT` (
+ `vnf_id` varchar(80) NOT NULL,
+ `att_uuid` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_LINTERFACE`
+--
+
+CREATE TABLE `GENERIC_VNF_LINTERFACE` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `interface_role` varchar(45) DEFAULT NULL,
+ `v6_wan_link_ip` varchar(45) DEFAULT NULL,
+ `selflink` varchar(128) DEFAULT NULL,
+ `interface_id` varchar(45) DEFAULT NULL,
+ `macaddr` varchar(64) DEFAULT NULL,
+ `network_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`),
+ KEY `FK_GENERIC_VNF_LINTERFACE_GENERIC_VNF_IDX` (`vnf_id`),
+ CONSTRAINT `FK_GENERIC_VNF_LINTERFACE_GENERIC_VNF` FOREIGN KEY (`vnf_id`) REFERENCES `GENERIC_VNF` (`vnf_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_PSERVER`
+--
+
+CREATE TABLE `GENERIC_VNF_PSERVER` (
+ `vnf_id` varchar(64) NOT NULL,
+ `hostname` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`hostname`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_SERVICE_INSTANCE`
+--
+
+CREATE TABLE `GENERIC_VNF_SERVICE_INSTANCE` (
+ `vnf_id` varchar(64) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ `relationship_key` varchar(64) NOT NULL,
+ `relationship_value` varchar(64) DEFAULT NULL,
+ `global_customer_id` varchar(255) DEFAULT NULL,
+ `service_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`service_instance_id`,`relationship_key`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_VNF_IMAGE`
+--
+
+CREATE TABLE `GENERIC_VNF_VNF_IMAGE` (
+ `vnf_id` varchar(64) NOT NULL,
+ `att_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_VSERVER`
+--
+
+CREATE TABLE `GENERIC_VNF_VSERVER` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vserver_id` varchar(128) NOT NULL,
+ `tenant_id` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VPN_BINDING`
+--
+
+CREATE TABLE `GENERIC_VPN_BINDING` (
+ `vpn_id` varchar(80) NOT NULL,
+ `vpn_name` varchar(80) NOT NULL,
+ `global_route_target` varchar(80) NOT NULL,
+ PRIMARY KEY (`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GET_CONFIG_TEMPLATE`
+--
+
+CREATE TABLE `GET_CONFIG_TEMPLATE` (
+ `get_config_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) NOT NULL,
+ `device_interface_protocol_id` int(11) NOT NULL,
+ `xml_processing` varchar(1) DEFAULT NULL,
+ `xml_protocol` varchar(30) DEFAULT NULL,
+ `template` longtext,
+ PRIMARY KEY (`get_config_template_id`),
+ UNIQUE KEY `get_config_template_id` (`get_config_template_id`),
+ KEY `get_config_template_ibfk_1` (`device_interface_protocol_id`),
+ CONSTRAINT `get_config_template_ibfk_1` FOREIGN KEY (`device_interface_protocol_id`) REFERENCES `DEVICE_INTERFACE_PROTOCOL` (`device_interface_protocol_id`) ON DELETE NO ACTION ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LOCATION`
+--
+
+CREATE TABLE `LOCATION` (
+ `loc_id` int(11) NOT NULL AUTO_INCREMENT,
+ `address` varchar(150) NOT NULL,
+ `city_code_id` int(11) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`loc_id`),
+ KEY `IN1_LOCATION_IDX` (`city_code_id`),
+ CONSTRAINT `FK1_LOCATION` FOREIGN KEY (`city_code_id`) REFERENCES `CITY_CODE` (`city_code_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB AUTO_INCREMENT=327 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `HOSTNAME`
+--
+
+CREATE TABLE `HOSTNAME` (
+ `hostname` varchar(21) NOT NULL,
+ `parent_hostname` varchar(21) DEFAULT NULL,
+ `cust_id` int(11) NOT NULL,
+ `loc_id` int(11) NOT NULL,
+ `site_sequence` varchar(2) NOT NULL,
+ `server_sequence` varchar(2) NOT NULL,
+ `activation_code` varchar(11) DEFAULT NULL,
+ `vnf_sequence` varchar(2) DEFAULT NULL,
+ `vendor_code` varchar(1) NOT NULL,
+ `virtual_device_type` varchar(2) DEFAULT NULL,
+ `device_sequence` varchar(3) DEFAULT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`hostname`),
+ KEY `IN1_HOSTNAME` (`cust_id`),
+ KEY `IN2_HOSTNAME` (`loc_id`),
+ KEY `IN3_HOSTNAME` (`vendor_code`),
+ KEY `IN4_HOSTNAME` (`parent_hostname`),
+ CONSTRAINT `FK1_HOSTNAME` FOREIGN KEY (`cust_id`) REFERENCES `CUSTOMER` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK2_HOSTNAME` FOREIGN KEY (`loc_id`) REFERENCES `LOCATION` (`loc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK4_HOSTNAME` FOREIGN KEY (`parent_hostname`) REFERENCES `HOSTNAME` (`hostname`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `IPV4_ADDRESS_POOL`
+--
+
+CREATE TABLE `IPV4_ADDRESS_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `universe` varchar(40) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `ipv4_addr` varchar(20) NOT NULL,
+ PRIMARY KEY (`ipv4_addr`,`universe`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LINK_MASTER`
+--
+
+CREATE TABLE `LINK_MASTER` (
+ `link_interface_ip` varchar(20) NOT NULL,
+ `source_crs_name` varchar(20) NOT NULL,
+ `destination_crs_name` varchar(20) NOT NULL,
+ `max_reserved_bw` int(11) DEFAULT NULL,
+ `default_cost` int(11) DEFAULT NULL,
+ `bundle_name` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`link_interface_ip`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LINTERFACE_VLAN`
+--
+
+CREATE TABLE `LINTERFACE_VLAN` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `vlan_id_inner` varchar(64) DEFAULT NULL,
+ `vlan_id_outer` varchar(64) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`),
+ KEY `FK_LINTERFACE_VLAN_GENERIC_VNF_LINTERFACE_IDX` (`vnf_id`,`interface_name`),
+ CONSTRAINT `FK_LINTERFACE_VLAN_GENERIC_VNF_LINTERFACE` FOREIGN KEY (`vnf_id`, `interface_name`) REFERENCES `GENERIC_VNF_LINTERFACE` (`vnf_id`, `interface_name`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `MAX_PORT_SPEED`
+--
+
+CREATE TABLE `MAX_PORT_SPEED` (
+ `max_port_speed_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `image_file_name` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `interface_name` varchar(100) NOT NULL,
+ `max_speed` bigint(20) NOT NULL,
+ `unit` varchar(10) NOT NULL,
+ PRIMARY KEY (`max_port_speed_id`),
+ UNIQUE KEY `max_port_speed_id` (`max_port_speed_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `MAX_SERVER_SPEED`
+--
+
+CREATE TABLE `MAX_SERVER_SPEED` (
+ `max_server_speed_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `server_model` varchar(50) NOT NULL,
+ `evc_count` smallint(6) NOT NULL,
+ `max_speed` bigint(20) NOT NULL,
+ `unit` varchar(10) NOT NULL,
+ `description` varchar(500) DEFAULT NULL,
+ PRIMARY KEY (`max_server_speed_id`),
+ UNIQUE KEY `max_server_speed_id` (`max_server_speed_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NAMING_POLICY_VM_NAME_INDEX`
+--
+
+CREATE TABLE `NAMING_POLICY_VM_NAME_INDEX` (
+ `vm_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vm_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NAMING_POLICY_VNFC_NAME_INDEX`
+--
+
+CREATE TABLE `NAMING_POLICY_VNFC_NAME_INDEX` (
+ `vnfc_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnfc_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_ASSIGN_VPN_OVERRIDE`
+--
+
+CREATE TABLE `NBNC_ASSIGN_VPN_OVERRIDE` (
+ `vpn_id` varchar(12) NOT NULL DEFAULT '',
+ `vpn_rt` varchar(16) NOT NULL DEFAULT '',
+ `service_type` varchar(16) NOT NULL DEFAULT '',
+ `be_location` varchar(16) NOT NULL DEFAULT '',
+ `be_type` varchar(32) NOT NULL DEFAULT '',
+ `be_id` varchar(32) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`vpn_id`,`vpn_rt`,`service_type`,`be_location`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_BORDER_ELEMENT`
+--
+
+CREATE TABLE `NBNC_BORDER_ELEMENT` (
+ `be_id` varchar(32) NOT NULL,
+ `be_type` varchar(16) NOT NULL,
+ `be_name` varchar(32) DEFAULT NULL,
+ `be_host_vnf_id` varchar(32) DEFAULT NULL,
+ `service_type` varchar(16) DEFAULT NULL,
+ `tangibility` varchar(16) DEFAULT NULL,
+ `usage_order` smallint(6) DEFAULT NULL,
+ `vlan_start` smallint(6) DEFAULT NULL,
+ `vlan_end` smallint(6) DEFAULT NULL,
+ `ipv4_subnet` varchar(18) DEFAULT NULL,
+ `ipv6_subnet` varchar(68) DEFAULT NULL,
+ `network_ip` varchar(48) DEFAULT NULL,
+ `be_location` varchar(16) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ `log_link_model_uuid` varchar(64) DEFAULT NULL,
+ PRIMARY KEY (`be_id`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_IPE`
+--
+
+CREATE TABLE `NBNC_IPE` (
+ `ipe_name` varchar(32) NOT NULL,
+ `ipe_location` varchar(16) DEFAULT NULL,
+ `ipe_ip_address` varchar(16) DEFAULT NULL,
+ `ipe_id` varchar(8) DEFAULT NULL,
+ `service_type_array` varchar(512) DEFAULT NULL,
+ `ipe_status` varchar(32) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`ipe_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_IPE_PORT`
+--
+
+CREATE TABLE `NBNC_IPE_PORT` (
+ `port_id` varchar(16) NOT NULL,
+ `ipe_name` varchar(32) NOT NULL,
+ `be_id` varchar(32) NOT NULL,
+ `be_type` varchar(16) NOT NULL,
+ `port_type` varchar(16) DEFAULT NULL,
+ `ae_name` varchar(16) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`port_id`,`ipe_name`,`be_id`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_MAPPING_SBG_BGF`
+--
+
+CREATE TABLE `NBNC_MAPPING_SBG_BGF` (
+ `asbg_vlan` smallint(6) NOT NULL,
+ `bgf_vlan` smallint(6) NOT NULL,
+ PRIMARY KEY (`asbg_vlan`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_SERVICE`
+--
+
+CREATE TABLE `NBNC_SERVICE` (
+ `service_type` varchar(16) NOT NULL,
+ `service_model_uuid` varchar(64) NOT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `created_timestamp` timestamp NULL DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_SERVICE_VLAN`
+--
+
+CREATE TABLE `NBNC_SERVICE_VLAN` (
+ `be_id` varchar(32) NOT NULL,
+ `vlan` smallint(6) NOT NULL,
+ `service_type` varchar(16) DEFAULT NULL,
+ `be_type` varchar(16) DEFAULT NULL,
+ `be_name` varchar(32) DEFAULT NULL,
+ `be_host_vnf_id` varchar(32) DEFAULT NULL,
+ `be_location` varchar(16) DEFAULT NULL,
+ `be_usage_order` smallint(6) DEFAULT NULL,
+ `vlan_usage_order` smallint(6) DEFAULT NULL,
+ `status` varchar(16) DEFAULT 'AVAILABLE',
+ `request_id` varchar(64) DEFAULT NULL,
+ `service_instance_id` varchar(64) DEFAULT NULL,
+ `vni_id` varchar(16) DEFAULT NULL,
+ `customer_id` varchar(16) DEFAULT NULL,
+ `ipe1_router_name` varchar(32) DEFAULT NULL,
+ `ipe1_port_id` varchar(16) DEFAULT NULL,
+ `ipe1_ae_name` varchar(16) DEFAULT NULL,
+ `ipe2_router_name` varchar(32) DEFAULT NULL,
+ `ipe2_port_id` varchar(16) DEFAULT NULL,
+ `ipe2_ae_name` varchar(16) DEFAULT NULL,
+ `available_timestamp` timestamp NULL DEFAULT NULL,
+ `allocated_timestamp` timestamp NULL DEFAULT NULL,
+ `disabled_timestamp` timestamp NULL DEFAULT NULL,
+ `enabled_timestamp` timestamp NULL DEFAULT NULL,
+ `vpn_id` varchar(12) DEFAULT NULL,
+ `vpn_rt` varchar(16) DEFAULT NULL,
+ PRIMARY KEY (`be_id`,`vlan`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NCS_EXPECTED_ASYNC_REQUESTS`
+--
+
+CREATE TABLE `NCS_EXPECTED_ASYNC_REQUESTS` (
+ `ncs_request_id` varchar(255) NOT NULL,
+ `mso_gp_request_id` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ `sdn_module_name` varchar(255) NOT NULL,
+ `sdn_rpc_name` varchar(255) NOT NULL,
+ `sdn_service_action` varchar(255) DEFAULT NULL,
+ `ncs_rpc` varchar(255) NOT NULL,
+ `ncs_sub_action` varchar(255) DEFAULT NULL,
+ `status` varchar(255) NOT NULL DEFAULT 'inProgress',
+ `creation_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`ncs_request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_INSTANCE_NAME_INDEX`
+--
+
+CREATE TABLE `NETWORK_INSTANCE_NAME_INDEX` (
+ `network_instance_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`network_instance_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `SERVICE_MODEL`
+--
+
+CREATE TABLE `SERVICE_MODEL` (
+ `service_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `description` varchar(1024) DEFAULT NULL,
+ `type` varchar(255) DEFAULT NULL,
+ `category` varchar(255) DEFAULT NULL,
+ `ecomp_naming` char(1) DEFAULT NULL,
+ `service_instance_name_prefix` varchar(255) DEFAULT NULL,
+ `filename` varchar(100) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`service_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `NETWORK_MODEL`
+--
+
+CREATE TABLE `NETWORK_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `service_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `network_type` varchar(255) DEFAULT NULL,
+ `network_role` varchar(255) DEFAULT NULL,
+ `network_technology` varchar(255) DEFAULT NULL,
+ `trunk_network_indicator` char(1) DEFAULT NULL,
+ `network_scope` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `is_shared_network` char(1) DEFAULT NULL,
+ `is_external_network` char(1) DEFAULT NULL,
+ `is_provider_network` char(1) DEFAULT NULL,
+ `physical_network_name` varchar(255) DEFAULT NULL,
+ `is_bound_to_vpn` char(1) DEFAULT NULL,
+ `vpn_binding` varchar(255) DEFAULT NULL,
+ `use_ipv4` char(1) DEFAULT NULL,
+ `ipv4_dhcp_enabled` char(1) DEFAULT NULL,
+ `ipv4_ip_version` char(1) DEFAULT NULL,
+ `ipv4_cidr_mask` varchar(255) DEFAULT NULL,
+ `eipam_v4_address_plan` varchar(255) DEFAULT NULL,
+ `use_ipv6` char(1) DEFAULT NULL,
+ `ipv6_dhcp_enabled` char(1) DEFAULT NULL,
+ `ipv6_ip_version` char(1) DEFAULT NULL,
+ `ipv6_cidr_mask` varchar(255) DEFAULT NULL,
+ `eipam_v6_address_plan` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`),
+ KEY `FK_NETWORK_MODEL` (`service_uuid`),
+ CONSTRAINT `FK_NETWORK_MODEL` FOREIGN KEY (`service_uuid`) REFERENCES `SERVICE_MODEL` (`service_uuid`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_PROFILE`
+--
+
+CREATE TABLE `NETWORK_PROFILE` (
+ `network_type` varchar(100) NOT NULL,
+ `technology` varchar(100) NOT NULL,
+ PRIMARY KEY (`network_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_ROLE_VPN_BINDING`
+--
+
+CREATE TABLE `NETWORK_ROLE_VPN_BINDING` (
+ `network_role` varchar(80) NOT NULL,
+ `vpn_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_role`,`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NODE_TYPES`
+--
+
+CREATE TABLE `NODE_TYPES` (
+ `nodetype` varchar(80) NOT NULL,
+ PRIMARY KEY (`nodetype`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `OBJECT_GROUPING`
+--
+
+CREATE TABLE `OBJECT_GROUPING` (
+ `group_id` varchar(128) NOT NULL,
+ `group_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`group_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `OBJECT_GROUP_MEMBER_TRACKING`
+--
+
+CREATE TABLE `OBJECT_GROUP_MEMBER_TRACKING` (
+ `group_id` varchar(128) NOT NULL,
+ `key_id` varchar(128) NOT NULL,
+ `key_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`group_id`,`key_id`,`key_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PARAMETERS`
+--
+
+CREATE TABLE `PARAMETERS` (
+ `name` varchar(100) NOT NULL,
+ `value` varchar(128) NOT NULL,
+ `category` varchar(24) DEFAULT NULL,
+ `memo` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PE_INV`
+--
+
+CREATE TABLE `PE_INV` (
+ `EQUIP_ID` int(11) DEFAULT NULL,
+ `EQUIP_TYPE` varchar(20) DEFAULT NULL,
+ `PTNII_EQUIP_NAME` varchar(20) DEFAULT NULL,
+ `IP_ADDR` varchar(15) DEFAULT NULL,
+ `ROUTER_PROV_STATUS` varchar(50) DEFAULT NULL,
+ `REGION` varchar(16) DEFAULT NULL,
+ `COUNTRY_ABBR` varchar(50) DEFAULT NULL,
+ `EQUIP_NAME_CODE` varchar(50) DEFAULT NULL,
+ `AS_NUMBER` varchar(5) DEFAULT NULL,
+ `LOOPBACK1` varchar(15) DEFAULT NULL,
+ `LOOPBACK2` varchar(15) DEFAULT NULL,
+ `LOOPBACK3` varchar(15) DEFAULT NULL,
+ `LOOPBACK40` varchar(15) DEFAULT NULL,
+ `LOOPBACK65535` varchar(15) DEFAULT NULL,
+ `INMS_LIST` varchar(20) DEFAULT NULL,
+ `ENCRYPTED_ACCESS_FLAG` varchar(50) DEFAULT NULL,
+ `SW_NAME` varchar(100) DEFAULT NULL,
+ `NMIPADDR` varchar(15) DEFAULT NULL,
+ `CREATE_DATE` datetime DEFAULT NULL,
+ `MOD_DATE` datetime DEFAULT NULL,
+ `FCN_CODE` varchar(50) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PHYSICAL_LINK`
+--
+
+CREATE TABLE `PHYSICAL_LINK` (
+ `link_name` varchar(255) NOT NULL,
+ `speed_value` varchar(64) DEFAULT NULL,
+ `speed_units` varchar(64) DEFAULT NULL,
+ `circuit_id` varchar(255) NOT NULL,
+ `dual_mode` varchar(64) NOT NULL,
+ PRIMARY KEY (`link_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PHYSICAL_LINK_PINTERFACE`
+--
+
+CREATE TABLE `PHYSICAL_LINK_PINTERFACE` (
+ `link_name` varchar(255) NOT NULL,
+ `hostname` varchar(255) NOT NULL,
+ `port_name_ft` varchar(255) NOT NULL,
+ PRIMARY KEY (`link_name`,`hostname`,`port_name_ft`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PINTERFACE`
+--
+
+CREATE TABLE `PINTERFACE` (
+ `hostname` varchar(255) NOT NULL,
+ `port_name_ft` varchar(255) NOT NULL,
+ `interface_name` varchar(255) DEFAULT '',
+ `physical_speed` varchar(255) DEFAULT '',
+ `physical_units` varchar(255) DEFAULT '',
+ `port_description` varchar(255) DEFAULT '',
+ PRIMARY KEY (`hostname`,`port_name_ft`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `POLICY_UPDATE_NOTIFICATION`
+--
+
+CREATE TABLE `POLICY_UPDATE_NOTIFICATION` (
+ `policy_name` varchar(255) NOT NULL,
+ `version_id` varchar(255) NOT NULL,
+ `update_type` varchar(255) NOT NULL,
+ `timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ PRIMARY KEY (`policy_name`,`version_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PORTAL_USERS`
+--
+
+CREATE TABLE `PORTAL_USERS` (
+ `email` varchar(64) NOT NULL,
+ `password` varbinary(255) NOT NULL,
+ `privilege` char(1) NOT NULL,
+ PRIMARY KEY (`email`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `PREPARE_FILE_RELATIONSHIP`
+--
+
+CREATE TABLE `PREPARE_FILE_RELATIONSHIP` (
+ `prepare_file_relationship_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `request_id` varchar(255) DEFAULT NULL,
+ `config_file_id` int(11) DEFAULT NULL,
+ `asdc_artifacts_id` int(11) DEFAULT NULL,
+ PRIMARY KEY (`prepare_file_relationship_id`),
+ UNIQUE KEY `prepare_file_relationship_id` (`prepare_file_relationship_id`),
+ KEY `ie_prepare_file_relationship` (`config_file_id`),
+ KEY `ie2_prepare_file_relationship` (`asdc_artifacts_id`),
+ CONSTRAINT `prepare_file_relationship_ibfk_2` FOREIGN KEY (`asdc_artifacts_id`) REFERENCES `ASDC_ARTIFACTS` (`asdc_artifacts_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
+ CONSTRAINT `prepare_file_replationship_ibfk_1` FOREIGN KEY (`config_file_id`) REFERENCES `CONFIGFILES` (`config_file_id`) ON DELETE NO ACTION ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PRE_LOAD_VNF_DATA`
+--
+
+CREATE TABLE `PRE_LOAD_VNF_DATA` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `svc_request_id` varchar(100) DEFAULT '',
+ `svc_action` varchar(40) DEFAULT '',
+ `status` varchar(10) NOT NULL DEFAULT 'pending',
+ `filename` varchar(100) NOT NULL,
+ `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `preload_data` longblob,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=295 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PRE_LOAD_VNF_NETWORK_DATA`
+--
+
+CREATE TABLE `PRE_LOAD_VNF_NETWORK_DATA` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `svc_request_id` varchar(100) DEFAULT '',
+ `svc_action` varchar(40) DEFAULT '',
+ `status` varchar(10) NOT NULL DEFAULT 'pending',
+ `filename` varchar(100) NOT NULL,
+ `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `preload_data` longblob,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=278 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PSERVER`
+--
+
+CREATE TABLE `PSERVER` (
+ `hostname` varchar(255) NOT NULL,
+ `ptnii_equip_name` varchar(255) DEFAULT '',
+ `number_of_cpus` varchar(255) DEFAULT '',
+ `disk_in_gigabytes` varchar(255) DEFAULT '',
+ `ram_in_megabytes` varchar(255) DEFAULT '',
+ `equip_type` varchar(255) DEFAULT '',
+ `equip_vendor` varchar(255) DEFAULT '',
+ `equip_model` varchar(255) DEFAULT '',
+ `fqdn` varchar(255) DEFAULT '',
+ `pserver_selflink` varchar(255) DEFAULT '',
+ `ipv4_oam_address` varchar(40) DEFAULT NULL,
+ `serial_number` varchar(255) DEFAULT '',
+ `pserver_id` varchar(255) DEFAULT '',
+ `internet_topology` varchar(40) DEFAULT '',
+ `aic_site_id` varchar(100) DEFAULT '',
+ `in_maint` varchar(5) DEFAULT '',
+ `pserver_name2` varchar(255) DEFAULT '',
+ `purpose` varchar(255) DEFAULT '',
+ PRIMARY KEY (`hostname`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RANGE_RULE`
+--
+
+CREATE TABLE `RANGE_RULE` (
+ `range_rule_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `range_name` varchar(50) NOT NULL,
+ `service_model` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `equipment_level` varchar(50) NOT NULL,
+ `min_value` int(11) NOT NULL,
+ `max_value` int(11) NOT NULL,
+ PRIMARY KEY (`range_rule_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_DETAILS`
+--
+
+CREATE TABLE `REQUEST_DETAILS` (
+ `request_id` varchar(255) NOT NULL,
+ `controller_id` varchar(255) DEFAULT NULL,
+ `status` varchar(255) DEFAULT NULL,
+ `service_rate` varchar(255) DEFAULT NULL,
+ `service_instance_id` varchar(255) DEFAULT NULL,
+ `service_type` varchar(255) DEFAULT NULL,
+ `global_customer_id` varchar(255) DEFAULT NULL,
+ `notification_url` varchar(255) DEFAULT NULL,
+ `domain_requests` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_PROGRESS`
+--
+
+CREATE TABLE `REQUEST_PROGRESS` (
+ `request_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_type` varchar(20) DEFAULT NULL,
+ `service_instance_id` varchar(80) NOT NULL,
+ `request_instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `overall_status` varchar(20) DEFAULT NULL,
+ `status_date` varchar(80) DEFAULT NULL,
+ `message` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_PROGRESS_STATE`
+--
+
+CREATE TABLE `REQUEST_PROGRESS_STATE` (
+ `request_progress_state_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` int(11) DEFAULT NULL,
+ `service_instance_id` varchar(80) NOT NULL,
+ `request_instance_type` varchar(20) NOT NULL,
+ `progress_state` varchar(30) DEFAULT NULL,
+ `transaction_status` varchar(20) DEFAULT NULL,
+ `status_date` varchar(80) DEFAULT NULL,
+ `response_code` varchar(20) DEFAULT NULL,
+ `message` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_progress_state_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE`
+--
+
+CREATE TABLE `RESOURCE` (
+ `resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `asset_id` varchar(100) NOT NULL,
+ `resource_name` varchar(50) NOT NULL,
+ `resource_type` enum('Limit','Label','Range') NOT NULL,
+ `lt_used` bigint(20) DEFAULT NULL,
+ `ll_label` varchar(50) DEFAULT NULL,
+ `ll_reference_count` smallint(6) DEFAULT NULL,
+ `rr_used` varchar(4000) DEFAULT NULL,
+ PRIMARY KEY (`resource_id`),
+ UNIQUE KEY `resource_id` (`resource_id`),
+ UNIQUE KEY `IX1_RESOURCE` (`asset_id`,`resource_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=179 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_LOAD`
+--
+
+CREATE TABLE `RESOURCE_LOAD` (
+ `resource_load_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_id` bigint(20) NOT NULL,
+ `application_id` varchar(20) NOT NULL,
+ `resource_load_time` datetime NOT NULL,
+ `resource_expiration_time` datetime DEFAULT NULL,
+ PRIMARY KEY (`resource_load_id`),
+ UNIQUE KEY `resource_load_id` (`resource_load_id`),
+ UNIQUE KEY `IX2_RESOURCE_LOAD` (`resource_id`,`application_id`),
+ KEY `IX1_RESOURCE_LOAD` (`resource_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_LOCK`
+--
+
+CREATE TABLE `RESOURCE_LOCK` (
+ `resource_lock_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_name` varchar(256) DEFAULT NULL,
+ `lock_holder` varchar(100) NOT NULL,
+ `lock_count` smallint(6) NOT NULL,
+ `lock_time` datetime NOT NULL,
+ `expiration_time` datetime NOT NULL,
+ PRIMARY KEY (`resource_lock_id`),
+ UNIQUE KEY `resource_lock_id` (`resource_lock_id`),
+ UNIQUE KEY `IX1_RESOURCE_LOCK` (`resource_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=29681 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_RULE`
+--
+
+CREATE TABLE `RESOURCE_RULE` (
+ `resource_rule_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_name` varchar(50) NOT NULL,
+ `service_model` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `service_expression` varchar(2000) NOT NULL,
+ `equipment_level` varchar(50) NOT NULL,
+ `equipment_expression` varchar(2000) NOT NULL,
+ `allocation_expression` varchar(2000) NOT NULL,
+ `soft_limit_expression` varchar(2000) NOT NULL,
+ `hard_limit_expression` varchar(2000) NOT NULL,
+ PRIMARY KEY (`resource_rule_id`),
+ UNIQUE KEY `resource_rule_id` (`resource_rule_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_THRESHOLD`
+--
+
+CREATE TABLE `RESOURCE_THRESHOLD` (
+ `resource_threshold_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_rule_id` bigint(20) NOT NULL,
+ `threshold_expression` varchar(2000) NOT NULL,
+ `threshold_message` varchar(2000) NOT NULL,
+ PRIMARY KEY (`resource_threshold_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ROUTER_MASTER`
+--
+
+CREATE TABLE `ROUTER_MASTER` (
+ `crs_name` varchar(20) NOT NULL,
+ `loopback_ip` varchar(20) NOT NULL,
+ PRIMARY KEY (`crs_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ROUTING_CHARACTERISTIC_MAPPING`
+--
+
+CREATE TABLE `ROUTING_CHARACTERISTIC_MAPPING` (
+ `network_role` varchar(255) NOT NULL,
+ `vrf_name` varchar(255) NOT NULL,
+ `routing_characteristic` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_role`,`vrf_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_HOMING`
+--
+
+CREATE TABLE `SERVICE_HOMING` (
+ `service_type` varchar(100) NOT NULL,
+ `lata` int(3) NOT NULL,
+ `hubbing_city_type` varchar(40) NOT NULL,
+ `latitude` float DEFAULT NULL,
+ `longitude` float DEFAULT NULL,
+ `primary_aic_site_name` varchar(100) NOT NULL,
+ `secondary_aic_site_name` varchar(100) DEFAULT NULL,
+ `tertiary_aic_site_name` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`service_type`,`lata`,`hubbing_city_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_HOMING_BACKUP`
+--
+
+CREATE TABLE `SERVICE_HOMING_BACKUP` (
+ `service_type` varchar(100) NOT NULL,
+ `lata` int(3) NOT NULL,
+ `hubbing_city_type` varchar(40) NOT NULL,
+ `latitude` float DEFAULT NULL,
+ `longitude` float DEFAULT NULL,
+ `primary_aic_site_name` varchar(100) NOT NULL,
+ `secondary_aic_site_name` varchar(100) DEFAULT NULL,
+ `tertiary_aic_site_name` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`service_type`,`lata`,`hubbing_city_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_INSTANCE_NAME_INDEX`
+--
+
+CREATE TABLE `SERVICE_INSTANCE_NAME_INDEX` (
+ `service_instance_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`service_instance_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_MANAGER_CREDENTIALS`
+--
+
+CREATE TABLE `SERVICE_MANAGER_CREDENTIALS` (
+ `service_manager_username` varchar(255) NOT NULL,
+ `service_manager_password` varbinary(255) NOT NULL,
+ PRIMARY KEY (`service_manager_username`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_PROXY`
+--
+
+CREATE TABLE `SERVICE_PROXY` (
+ `port_mirror_service_uuid` varchar(255) NOT NULL,
+ `service_proxy_name` varchar(255) NOT NULL,
+ `source_service_uuid` varchar(255) NOT NULL,
+ `resources_vendor` varchar(255) DEFAULT NULL,
+ `resource_vendor_release` varchar(255) DEFAULT NULL,
+ `description` varchar(255) DEFAULT NULL,
+ `category` varchar(255) DEFAULT NULL,
+ `subcategory` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `role` varchar(255) NOT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `customization_uuid` varchar(255) DEFAULT NULL,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`port_mirror_service_uuid`,`service_proxy_name`),
+ KEY `FK_SERVICE_PROXY_SOURCE_TO_SERVICE_MODE` (`source_service_uuid`),
+ CONSTRAINT `FK_SERVICE_PROXY_MIRROR_TO_SERVICE_MODE` FOREIGN KEY (`port_mirror_service_uuid`) REFERENCES `SERVICE_MODEL` (`service_uuid`) ON DELETE CASCADE ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_RESOURCE`
+--
+
+CREATE TABLE `SERVICE_RESOURCE` (
+ `service_resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `service_status` enum('Active','Pending') NOT NULL,
+ `service_change_number` smallint(6) NOT NULL,
+ `resource_set_id` varchar(100) NOT NULL,
+ `resource_union_id` varchar(100) NOT NULL,
+ PRIMARY KEY (`service_instance_id`,`service_change_number`),
+ UNIQUE KEY `service_resource_id` (`service_resource_id`),
+ KEY `IX1_SERVICE_RESOURCE` (`service_instance_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=955 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_TYPE_MAPPING`
+--
+
+CREATE TABLE `SERVICE_TYPE_MAPPING` (
+ `sdnc_service_type` varchar(128) NOT NULL,
+ `ncs_service_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`sdnc_service_type`,`ncs_service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SUBNETPOOL_MAPPING`
+--
+
+CREATE TABLE `SUBNETPOOL_MAPPING` (
+ `aic_cloud_region` varchar(16) NOT NULL,
+ `ntc` varchar(32) NOT NULL,
+ `lcp` varchar(32) NOT NULL,
+ `aic_region_id` varchar(255) NOT NULL,
+ PRIMARY KEY (`aic_cloud_region`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SUPPORTED_SEQUENCE_NUMBER`
+--
+
+CREATE TABLE `SUPPORTED_SEQUENCE_NUMBER` (
+ `resource_sequence_number` varchar(10) NOT NULL,
+ `resource_type` varchar(10) NOT NULL,
+ PRIMARY KEY (`resource_sequence_number`,`resource_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SVC_LOGIC`
+--
+
+CREATE TABLE `SVC_LOGIC` (
+ `module` varchar(80) NOT NULL,
+ `rpc` varchar(80) NOT NULL,
+ `version` varchar(40) NOT NULL,
+ `mode` varchar(5) NOT NULL,
+ `active` varchar(1) NOT NULL,
+ `graph` longblob,
+ `modified_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `md5sum` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`module`,`rpc`,`version`,`mode`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TABLE_CLEANUP_CONFIGURATION`
+--
+
+CREATE TABLE `TABLE_CLEANUP_CONFIGURATION` (
+ `table_name` varchar(255) NOT NULL COMMENT 'The name of the table the cleanup will be performed on',
+ `days_old` int(11) NOT NULL COMMENT 'Records older than the current date minus DAYS_OLD will be deleted',
+ `date_column` varchar(255) NOT NULL COMMENT 'The name of the column containing the date to be checked',
+ `commit_interval` int(11) NOT NULL DEFAULT '2500' COMMENT 'The maximum number of rows a commit may contain',
+ `query_clause` varchar(1000) DEFAULT NULL COMMENT 'An optional additional query clause to further restrict deletion criteria',
+ `child_table_name` varchar(255) DEFAULT NULL,
+ `child_table_pk` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`table_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table will be used by the table clean-up script, tableCleanup.sh, to drive what tables should be purged and what the purge criteria are.';
+
+--
+-- Table structure for table `TASK_TEMPLATE`
+--
+
+CREATE TABLE `TASK_TEMPLATE` (
+ `task_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_type` varchar(20) DEFAULT NULL,
+ `task_name` varchar(30) NOT NULL,
+ `task_category` varchar(50) NOT NULL,
+ `ecomp_task` varchar(50) NOT NULL,
+ `initial_load` varchar(1) NOT NULL,
+ `service` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`task_template_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TENANT`
+--
+
+CREATE TABLE `TENANT` (
+ `tenant_id` varchar(255) NOT NULL,
+ `tenant_name` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ PRIMARY KEY (`tenant_id`,`tenant_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TESTTBL`
+--
+
+CREATE TABLE `TESTTBL` (
+ `pk` varchar(25) NOT NULL,
+ `col1` varchar(25) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `THRESHOLD_NOTIFICATION`
+--
+
+CREATE TABLE `THRESHOLD_NOTIFICATION` (
+ `resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `threshold_expression` varchar(2000) DEFAULT NULL,
+ `threshold_message` varchar(500) DEFAULT NULL,
+ PRIMARY KEY (`resource_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TMP_AIC_AVAIL_ZONE_POOL`
+--
+
+CREATE TABLE `TMP_AIC_AVAIL_ZONE_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `token` int(4) NOT NULL,
+ `vnf_id` varchar(80) DEFAULT NULL,
+ `service_type` varchar(100) NOT NULL,
+ `vnf_type` varchar(20) DEFAULT NULL,
+ `hypervisor` varchar(10) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`token`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER`
+--
+
+CREATE TABLE `TOPOLOGY_PARAMETER` (
+ `parameter_id` int(11) NOT NULL,
+ `parameter_name` varchar(20) NOT NULL,
+ `parameter_set` int(11) NOT NULL,
+ `create_update_time` datetime NOT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ PRIMARY KEY (`parameter_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER_ENTRIES`
+--
+
+CREATE TABLE `TOPOLOGY_PARAMETER_ENTRIES` (
+ `parameter_entry_id` int(11) NOT NULL,
+ `parameter_name` varchar(255) NOT NULL,
+ `parameter_value` varchar(64) NOT NULL,
+ `create_update_time` datetime NOT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ PRIMARY KEY (`parameter_entry_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER_TO_ENTRIES`
+--
+
+CREATE TABLE `TOPOLOGY_PARAMETER_TO_ENTRIES` (
+ `parameter_id` int(11) DEFAULT NULL,
+ `parameter_entry_id` int(11) DEFAULT NULL,
+ `entry_order` int(11) DEFAULT NULL,
+ `create_update_time` datetime DEFAULT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ KEY `FK1_TOPOLOGY_PARAMETER_TO_ENTRIES` (`parameter_id`),
+ KEY `FK2_TOPOLOGY_PARAMETER_TO_ENTRIES` (`parameter_entry_id`),
+ CONSTRAINT `FK1_TOPOLOGY_PARAMETER_TO_ENTRIES` FOREIGN KEY (`parameter_id`) REFERENCES `TOPOLOGY_PARAMETER` (`parameter_id`),
+ CONSTRAINT `FK2_TOPOLOGY_PARAMETER_TO_ENTRIES` FOREIGN KEY (`parameter_entry_id`) REFERENCES `TOPOLOGY_PARAMETER_ENTRIES` (`parameter_entry_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE`
+--
+
+CREATE TABLE `TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE` (
+ `interface_name` varchar(255) NOT NULL,
+ `interface_id` varchar(255) NOT NULL,
+ `pnf_name` varchar(255) NOT NULL,
+ `pnf_id` varchar(255) NOT NULL,
+ `controller_id` varchar(255) DEFAULT NULL,
+ `rate` varchar(255) DEFAULT NULL,
+ `clli` varchar(255) DEFAULT NULL,
+ `connection_point` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`interface_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TRANSACTION_LOG`
+--
+
+CREATE TABLE `TRANSACTION_LOG` (
+ `serial_key` int(10) NOT NULL AUTO_INCREMENT,
+ `log_time` varchar(40) NOT NULL,
+ `request_id` varchar(80) DEFAULT NULL,
+ `svc_request_id` varchar(80) DEFAULT NULL,
+ `x_ecomp_request_id` varchar(80) DEFAULT NULL,
+ `graph_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`)
+) ENGINE=InnoDB AUTO_INCREMENT=249 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `UPLOAD_CONFIG`
+--
+
+CREATE TABLE `UPLOAD_CONFIG` (
+ `upload_config_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` varchar(50) DEFAULT NULL,
+ `originator_id` varchar(50) DEFAULT NULL,
+ `service_description` varchar(100) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `upload_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `host_ip_address` varchar(50) DEFAULT NULL,
+ `config_indicator` varchar(25) DEFAULT NULL,
+ `pending_delete` varchar(1) DEFAULT NULL,
+ `content` longtext,
+ PRIMARY KEY (`upload_config_id`),
+ UNIQUE KEY `upload_config_id` (`upload_config_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `USED_SEQUENCE_NUMBER`
+--
+
+CREATE TABLE `USED_SEQUENCE_NUMBER` (
+ `resource_sequence_number` varchar(10) NOT NULL,
+ `resource_type` varchar(10) NOT NULL,
+ `zone_region_id` varchar(50) NOT NULL,
+ PRIMARY KEY (`resource_sequence_number`,`resource_type`,`zone_region_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `USER_TRACE`
+--
+
+CREATE TABLE `USER_TRACE` (
+ `user_trace_seq` int(11) NOT NULL AUTO_INCREMENT,
+ `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `identity` varchar(12) DEFAULT NULL,
+ `action` varchar(128) DEFAULT NULL,
+ `description` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`user_trace_seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=392 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VENDOR_CODE`
+--
+
+CREATE TABLE `VENDOR_CODE` (
+ `vendor_code` varchar(1) NOT NULL,
+ `vendor` varchar(45) NOT NULL DEFAULT '',
+ PRIMARY KEY (`vendor_code`,`vendor`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VFC_MODEL`
+--
+
+CREATE TABLE `VFC_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `nfc_function` varchar(255) DEFAULT NULL,
+ `nfc_naming_code` varchar(255) DEFAULT NULL,
+ `vm_type` varchar(255) DEFAULT NULL,
+ `vm_type_tag` varchar(255) DEFAULT NULL,
+ `vm_image_name` varchar(255) DEFAULT NULL,
+ `vm_flavor_name` varchar(255) DEFAULT NULL,
+ `high_availability` varchar(255) DEFAULT NULL,
+ `nfc_naming` varchar(255) DEFAULT NULL,
+ `min_instances` int(11) DEFAULT NULL,
+ `max_instances` int(11) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VFC_TO_NETWORK_ROLE_MAPPING`
+--
+
+CREATE TABLE `VFC_TO_NETWORK_ROLE_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `vm_type` varchar(255) DEFAULT NULL,
+ `network_role_tag` varchar(255) DEFAULT NULL,
+ `ipv4_count` int(11) NOT NULL,
+ `ipv6_count` int(11) NOT NULL,
+ `ipv4_use_dhcp` char(1) DEFAULT NULL,
+ `ipv6_use_dhcp` char(1) DEFAULT NULL,
+ `ipv4_ip_version` char(1) DEFAULT NULL,
+ `ipv6_ip_version` char(1) DEFAULT NULL,
+ `extcp_subnetpool_id` varchar(512) DEFAULT NULL,
+ `ipv4_floating_count` int(11) DEFAULT NULL,
+ `ipv6_floating_count` int(11) DEFAULT NULL,
+ `ipv4_address_plan_name` varchar(512) DEFAULT NULL,
+ `ipv6_address_plan_name` varchar(512) DEFAULT NULL,
+ `ipv4_vrf_name` varchar(512) DEFAULT NULL,
+ `ipv6_vrf_name` varchar(512) DEFAULT NULL,
+ `subnet_role` varchar(255) DEFAULT NULL,
+ `subinterface_indicator` char(1) DEFAULT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VFC_TO_NETWORK_ROLE_MAPPING` (`vfc_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=1791 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODEL`
+--
+
+CREATE TABLE `VF_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `avail_zone_max_count` int(11) DEFAULT NULL,
+ `nf_function` varchar(255) DEFAULT NULL,
+ `nf_code` varchar(255) DEFAULT NULL,
+ `nf_type` varchar(255) DEFAULT NULL,
+ `nf_role` varchar(255) DEFAULT NULL,
+ `vendor` varchar(255) DEFAULT NULL,
+ `vendor_version` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODULE_MODEL`
+--
+
+CREATE TABLE `VF_MODULE_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `vf_module_type` varchar(255) DEFAULT NULL,
+ `availability_zone_count` int(11) DEFAULT NULL,
+ `ecomp_generated_vm_assignments` char(1) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODULE_TO_VFC_MAPPING`
+--
+
+CREATE TABLE `VF_MODULE_TO_VFC_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vf_module_customization_uuid` varchar(255) NOT NULL,
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `vm_type` varchar(255) NOT NULL,
+ `vm_count` int(11) NOT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VF_MODULE_TO_VFC_MAPPING` (`vf_module_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=1591 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_TO_NETWORK_ROLE_MAPPING`
+--
+
+CREATE TABLE `VF_TO_NETWORK_ROLE_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vf_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VF_TO_NETWORK_ROLE_MAPPING` (`vf_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=348 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VIPR_CONFIGURATION`
+--
+
+CREATE TABLE `VIPR_CONFIGURATION` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `serial_number` varchar(255) DEFAULT NULL,
+ `vnf_id` varchar(255) DEFAULT NULL,
+ `vnf_name` varchar(255) DEFAULT NULL,
+ `ecomp_service_instance_id` varchar(255) DEFAULT NULL,
+ `vm_name` varchar(255) DEFAULT NULL,
+ `cloud_region_id` varchar(255) DEFAULT NULL,
+ `cloud_owner` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VIPR_SZ_MANAGER_KEY`
+--
+
+CREATE TABLE `VIPR_SZ_MANAGER_KEY` (
+ `vipr_sz_manager_ip_addr` varchar(40) NOT NULL,
+ `vipr_sz_manager_state` varchar(10) DEFAULT NULL,
+ `vipr_sz_manager_api_key` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vipr_sz_manager_ip_addr`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_ID_POOL`
+--
+
+CREATE TABLE `VLAN_ID_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `svc_instance_id` varchar(80) DEFAULT NULL,
+ `availability_zone` varchar(100) DEFAULT NULL,
+ `vplspe_name` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`vlan_id`,`aic_site_id`,`purpose`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_L3INTERFACE_IPV4_ADDRESS`
+--
+
+CREATE TABLE `VLAN_L3INTERFACE_IPV4_ADDRESS` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `l3_interface_ipv4_address` varchar(64) NOT NULL,
+ `l3_interface_ipv4_prefix_length` varchar(45) DEFAULT NULL,
+ `vlan_id_inner` varchar(45) DEFAULT NULL,
+ `vlan_id_outer` varchar(45) DEFAULT NULL,
+ `is_floating` varchar(1) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`,`l3_interface_ipv4_address`),
+ KEY `FK_VLAN_L3INTERFACE_IPV4_ADDRESS_LINTERFACE_VLAN_IDX` (`vnf_id`,`interface_name`),
+ CONSTRAINT `FK_VLAN_L3INTERFACE_IPV4_ADDRESS_LINTERFACE_VLAN` FOREIGN KEY (`vnf_id`, `interface_name`, `vlan_interface`) REFERENCES `LINTERFACE_VLAN` (`vnf_id`, `interface_name`, `vlan_interface`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_L3INTERFACE_IPV6_ADDRESS`
+--
+
+CREATE TABLE `VLAN_L3INTERFACE_IPV6_ADDRESS` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `l3_interface_ipv6_address` varchar(64) NOT NULL,
+ `l3_interface_ipv6_prefix_length` varchar(45) DEFAULT NULL,
+ `vlan_id_inner` varchar(45) DEFAULT NULL,
+ `vlan_id_outer` varchar(45) DEFAULT NULL,
+ `is_floating` varchar(1) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`,`l3_interface_ipv6_address`),
+ KEY `FK_VLAN_L3INTERFACE_IPV6_ADDRESS_LINTERFACE_VLAN_IDX` (`vnf_id`,`interface_name`,`vlan_interface`),
+ CONSTRAINT `FK_VLAN_L3INTERFACE_IPV6_ADDRESS_LINTERFACE_VLAN` FOREIGN KEY (`vnf_id`, `interface_name`, `vlan_interface`) REFERENCES `LINTERFACE_VLAN` (`vnf_id`, `interface_name`, `vlan_interface`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_PLAN_ID`
+--
+
+CREATE TABLE `VLAN_PLAN_ID` (
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `vlan_plan_id_count` int(4) NOT NULL,
+ PRIMARY KEY (`vlan_plan_id_count`,`plan_type`,`purpose`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_POOL`
+--
+
+CREATE TABLE `VLAN_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `vlan_plan_id` varchar(100) NOT NULL,
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `reserved_id` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`vlan_plan_id`,`plan_type`,`purpose`,`vlan_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_RANGES`
+--
+
+CREATE TABLE `VLAN_RANGES` (
+ `vlan_plan_id` varchar(100) NOT NULL,
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `range_start` int(4) NOT NULL,
+ `range_end` int(4) NOT NULL,
+ `generated` char(1) DEFAULT NULL,
+ PRIMARY KEY (`vlan_plan_id`,`plan_type`,`purpose`,`range_start`,`range_end`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_NAME_INDEX`
+--
+
+CREATE TABLE `VM_NAME_INDEX` (
+ `vm_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vm_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_NETWORKS`
+--
+
+CREATE TABLE `VM_NETWORKS` (
+ `vnf_type` varchar(200) NOT NULL,
+ `vm_type` varchar(45) NOT NULL,
+ `network_role` varchar(45) NOT NULL,
+ `assign_ips` tinyint(1) NOT NULL,
+ `assign_macs` tinyint(1) NOT NULL,
+ `assign_floating_ip` tinyint(1) NOT NULL,
+ `ip_count` int(11) DEFAULT NULL,
+ PRIMARY KEY (`vnf_type`,`vm_type`,`network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_PROFILE`
+--
+
+CREATE TABLE `VM_PROFILE` (
+ `vnf_type` varchar(200) NOT NULL,
+ `vm_type` varchar(45) NOT NULL,
+ `vm_count` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_type`,`vm_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF`
+--
+
+CREATE TABLE `VNF` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vnf_name` varchar(80) NOT NULL,
+ `vnf_type` varchar(10) NOT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `availability_zone` varchar(80) DEFAULT NULL,
+ `aic_site_id` varchar(80) DEFAULT NULL,
+ `oam_ipv4_address` varchar(20) DEFAULT NULL,
+ `vnf_name2` varchar(80) DEFAULT NULL,
+ `vpe_id` varchar(80) NOT NULL,
+ `ipv4_loopback0_address` varchar(80) DEFAULT NULL,
+ `license_key` varchar(256) DEFAULT NULL,
+ `entitlement_resource_uuid` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNFC_DG_MAPPING`
+--
+
+CREATE TABLE `VNFC_DG_MAPPING` (
+ `vnfc_dg_mapping_id` int(11) NOT NULL AUTO_INCREMENT,
+ `action` varchar(50) DEFAULT NULL,
+ `api_version` varchar(10) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `dg_name` varchar(50) NOT NULL,
+ `dg_version` varchar(50) DEFAULT NULL,
+ `dg_module` varchar(50) NOT NULL,
+ PRIMARY KEY (`vnfc_dg_mapping_id`),
+ UNIQUE KEY `input_constraint` (`action`,`api_version`,`vnf_type`,`vnfc_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNFC_REFERENCE`
+--
+
+CREATE TABLE `VNFC_REFERENCE` (
+ `vnfc_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `action` varchar(50) NOT NULL,
+ `vnf_type` varchar(50) NOT NULL,
+ `vm_instance` int(11) NOT NULL,
+ `vnfc_instance` int(11) NOT NULL,
+ `vnfc_type` varchar(50) NOT NULL,
+ `vnfc_function_code` varchar(50) NOT NULL,
+ `ipaddress_v4_oam_vip` varchar(50) DEFAULT NULL,
+ `group_notation_type` varchar(50) DEFAULT NULL,
+ `group_notation_value` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`vnfc_reference_id`),
+ UNIQUE KEY `vnfc_reference_id` (`vnfc_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_IMAGE`
+--
+
+CREATE TABLE `VNF_IMAGE` (
+ `application_vendor` varchar(255) NOT NULL,
+ `application_version` varchar(255) NOT NULL,
+ `att_uuid` varchar(255) NOT NULL,
+ `application` varchar(255) DEFAULT NULL,
+ `selflink` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`application_vendor`,`application_version`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_MODEL_LICENSES`
+--
+
+CREATE TABLE `VNF_MODEL_LICENSES` (
+ `att_part_number` varchar(255) NOT NULL,
+ `license_assignment_group` varchar(255) NOT NULL,
+ `license_required` tinyint(1) DEFAULT NULL,
+ `entitlement_assignment_group` varchar(255) DEFAULT NULL,
+ `entitlement_required` tinyint(1) DEFAULT '0',
+ `feature_group_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`att_part_number`,`license_assignment_group`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_MODEL_LICENSE_FEATURES`
+--
+
+CREATE TABLE `VNF_MODEL_LICENSE_FEATURES` (
+ `att_part_number` varchar(255) NOT NULL,
+ `license_assignment_group` varchar(255) NOT NULL,
+ `feature` varchar(255) NOT NULL,
+ PRIMARY KEY (`att_part_number`,`license_assignment_group`,`feature`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NAME_INDEX`
+--
+
+CREATE TABLE `VNF_NAME_INDEX` (
+ `vnf_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORKS`
+--
+
+CREATE TABLE `VNF_NETWORKS` (
+ `vnf_type` varchar(200) NOT NULL,
+ `network_role` varchar(45) NOT NULL,
+ PRIMARY KEY (`vnf_type`,`network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORK_CONNECTION`
+--
+
+CREATE TABLE `VNF_NETWORK_CONNECTION` (
+ `connection_uuid` varchar(80) NOT NULL,
+ `vnf_id` varchar(80) NOT NULL,
+ `connection_id` varchar(80) DEFAULT NULL,
+ `connection_type` varchar(20) DEFAULT NULL,
+ `neutron_network_id` varchar(80) DEFAULT NULL,
+ `neutron_network_name` varchar(80) DEFAULT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `switch_id` varchar(40) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `provider_network` varchar(80) DEFAULT NULL,
+ `port_group_id` varchar(80) DEFAULT NULL,
+ `port_group_name` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`connection_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORK_CONNECTION_VLAN`
+--
+
+CREATE TABLE `VNF_NETWORK_CONNECTION_VLAN` (
+ `vlan_uuid` varchar(80) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `vlan_type` varchar(5) NOT NULL,
+ `connection_uuid` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`vlan_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_PROFILE`
+--
+
+CREATE TABLE `VNF_PROFILE` (
+ `vnf_type` varchar(200) NOT NULL,
+ `availability_zone_count` int(11) NOT NULL,
+ `equipment_role` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_SERVICE_TO_NETWORK_ROLE_FILTER`
+--
+
+CREATE TABLE `VNF_SERVICE_TO_NETWORK_ROLE_FILTER` (
+ `vnf_service_type` varchar(60) NOT NULL,
+ `network_role_filter` varchar(60) NOT NULL,
+ PRIMARY KEY (`vnf_service_type`,`network_role_filter`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_LOCK`
+--
+
+CREATE TABLE `VPE_LOCK` (
+ `vpe_name` varchar(20) NOT NULL,
+ `vpn_lock` varchar(20) NOT NULL,
+ PRIMARY KEY (`vpe_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_MAC_ADDRESS_POOL`
+--
+
+CREATE TABLE `VPE_MAC_ADDRESS_POOL` (
+ `id` int(11) NOT NULL,
+ `mac_address` varchar(50) NOT NULL,
+ `sw_name` varchar(30) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_MAC_ADDRESS_TO_HOSTNAME_MAPPING`
+--
+
+CREATE TABLE `VPE_MAC_ADDRESS_TO_HOSTNAME_MAPPING` (
+ `id` int(11) NOT NULL,
+ `hostname` varchar(50) NOT NULL,
+ `assigned_user` varchar(25) NOT NULL,
+ `assigned_date` date DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_POOL`
+--
+
+CREATE TABLE `VPE_POOL` (
+ `vpe_name` varchar(20) NOT NULL,
+ `ipv4_oam_address` varchar(20) NOT NULL,
+ `loopback0_ipv4_address` varchar(20) NOT NULL,
+ `provisioning_status` varchar(10) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `vlan_id_outer` varchar(20) NOT NULL,
+ `vendor` varchar(20) NOT NULL,
+ `physical_intf_name` varchar(40) NOT NULL,
+ `physical_intf_speed` varchar(20) NOT NULL,
+ `physical_intf_units` varchar(20) NOT NULL,
+ `vpe_uuid` varchar(80) DEFAULT NULL,
+ `vpe_id` varchar(80) NOT NULL,
+ `image_filename` varchar(100) DEFAULT NULL,
+ `as_number` varchar(20) NOT NULL,
+ `loopback5000` varchar(16) DEFAULT NULL,
+ `loopback10` varchar(16) DEFAULT NULL,
+ `aic_version` varchar(50) DEFAULT NULL,
+ `vpe_capacity` int(11) NOT NULL,
+ PRIMARY KEY (`aic_site_id`,`vpe_name`,`availability_zone`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPLSPE_POOL`
+--
+
+CREATE TABLE `VPLSPE_POOL` (
+ `vplspe_name` varchar(20) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `physical_intf_name` varchar(40) NOT NULL,
+ `physical_intf_speed` varchar(20) NOT NULL,
+ `physical_intf_units` varchar(20) NOT NULL,
+ `loopback0_ipv4_address` varchar(20) NOT NULL,
+ `vlan_id_outer` varchar(20) NOT NULL,
+ `vplspe_uuid` varchar(80) DEFAULT NULL,
+ `image_filename` varchar(100) DEFAULT NULL,
+ `provisioning_status` varchar(10) DEFAULT NULL,
+ `vendor` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`vplspe_name`,`aic_site_id`,`availability_zone`,`physical_intf_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPN_BINDINGS`
+--
+
+CREATE TABLE `VPN_BINDINGS` (
+ `network_customization_uuid` varchar(255) NOT NULL,
+ `binding_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_customization_uuid`,`binding_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VRR_FUNCTION_CODE_VMTYPE_MAPPING`
+--
+
+CREATE TABLE `VRR_FUNCTION_CODE_VMTYPE_MAPPING` (
+ `ptnii_function_code` varchar(128) NOT NULL,
+ `vm_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`ptnii_function_code`,`vm_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER`
+--
+
+CREATE TABLE `VSERVER` (
+ `tenant_id` varchar(40) NOT NULL,
+ `vserver_id` varchar(40) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `vendor` varchar(20) NOT NULL,
+ `image_name` varchar(100) NOT NULL,
+ `vnf_type` varchar(10) NOT NULL,
+ `vnf_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`tenant_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER2`
+--
+
+CREATE TABLE `VSERVER2` (
+ `tenant_id` varchar(255) NOT NULL,
+ `vserver_id` varchar(128) NOT NULL,
+ `vserver_name` varchar(255) NOT NULL,
+ `vserver_name2` varchar(255) DEFAULT NULL,
+ `prov_status` varchar(20) DEFAULT NULL,
+ `selflink` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`tenant_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER_PSERVER`
+--
+
+CREATE TABLE `VSERVER_PSERVER` (
+ `vserver_id` varchar(128) NOT NULL,
+ `pserver_hostname` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VVIG_VM_INSTANCE_TO_CLOUD_REGION_MAPPING`
+--
+
+CREATE TABLE `VVIG_VM_INSTANCE_TO_CLOUD_REGION_MAPPING` (
+ `key_id` varchar(128) NOT NULL,
+ `cloud_region` varchar(128) NOT NULL,
+ `key_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`key_id`,`cloud_region`,`key_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `WAN_COMBO_ALLOWABLE`
+--
+
+CREATE TABLE `WAN_COMBO_ALLOWABLE` (
+ `combo_sequence` int(11) NOT NULL AUTO_INCREMENT,
+ `topology` varchar(16) DEFAULT 'unknown',
+ `internet_topology` varchar(20) DEFAULT NULL,
+ `wan1` varchar(40) DEFAULT NULL,
+ `wan2` varchar(40) DEFAULT NULL,
+ `new_start_release_flexware` varchar(16) DEFAULT 'unknown',
+ `is_active_flexware` varchar(1) DEFAULT 'N',
+ `new_start_release_dhv` varchar(16) DEFAULT 'unknown',
+ `is_active_dhv` varchar(1) DEFAULT 'N',
+ `ucpe_type` varchar(32) DEFAULT 'stand-alone',
+ `description` varchar(128) NOT NULL,
+ PRIMARY KEY (`combo_sequence`),
+ UNIQUE KEY `IX1_WAN_COMBO_ALLOWABLE` (`internet_topology`,`wan1`,`wan2`)
+) ENGINE=InnoDB AUTO_INCREMENT=147 DEFAULT CHARSET=latin1;
+
+CREATE TABLE `DHCP_MAP` (
+ `mac_addr` varchar(128) NOT NULL,
+ `ip_addr` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`mac_addr`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `RESOURCE_GROUP_TO_TARGET_NODE_MAPPING` (
+ `group_uuid` varchar(255) NOT NULL,
+ `parent_uuid` varchar(255) NOT NULL,
+ `target_node_uuid` varchar(255) NOT NULL,
+ `target_type` varchar(255) NULL,
+ `table_name` varchar(255) NULL,
+ PRIMARY KEY (`group_uuid`, `parent_uuid`, `target_node_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+
+CREATE TABLE `ATTRIBUTE_VALUE_PAIR` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `attribute_name` varchar(255) NOT NULL,
+ `resource_type` varchar(255) NOT NULL,
+ `attribute_value` varchar(255) DEFAULT NULL,
+ `resource_customization_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`attribute_name`,`resource_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `COMPLEX_RESOURCE` (
+ `uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) NOT NULL,
+ `customization_uuid` varchar(255) NOT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `description` varchar(255) DEFAULT NULL,
+ `type` varchar(255) NOT NULL,
+ PRIMARY KEY (`uuid`,`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `NODE_CAPABILITY` (
+ `capability_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_provider_uuid` varchar(255) NOT NULL,
+ `capability_provider_customization_uuid` varchar(255) NOT NULL,
+ `capability_name` varchar(255) DEFAULT NULL,
+ `capability_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`capability_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=latin1;
+
+CREATE TABLE `NODE_REQUIREMENT` (
+ `requirement_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_id` int(11) DEFAULT NULL,
+ `capability_provider_uuid` varchar(255) DEFAULT NULL,
+ `capability_provider_customization_uuid` varchar(255) DEFAULT NULL,
+ `capability_consumer_uuid` varchar(255) NOT NULL,
+ `capability_consumer_customization_uuid` varchar(255) NOT NULL,
+ `requirement_name` varchar(255) NOT NULL,
+ PRIMARY KEY (`requirement_id`),
+ KEY `NODE_REQUIREMENT_TO_NODE_CAPABILITY` (`capability_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+CREATE TABLE `RELATED_NETWORK_ROLE` (
+ `network_model_customization_uuid` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_model_customization_uuid`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `RESOURCE_GROUP` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `group_uuid` varchar(255) NOT NULL,
+ `group_customization_uuid` varchar(255) DEFAULT NULL,
+ `group_invariant_uuid` varchar(255) NOT NULL,
+ `group_name` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `group_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`group_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `RESOURCE_POLICY` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `policy_uuid` varchar(255) NOT NULL,
+ `policy_customization_uuid` varchar(255) DEFAULT NULL,
+ `policy_invariant_uuid` varchar(255) NOT NULL,
+ `policy_name` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `policy_type` varchar(255) DEFAULT NULL,
+ `property_type` varchar(255) DEFAULT NULL,
+ `property_source` varchar(255) DEFAULT NULL,
+ `property_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`policy_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `RESOURCE_POLICY_TO_TARGET_NODE_MAPPING` (
+ `policy_uuid` varchar(255) NOT NULL,
+ `parent_uuid` varchar(255) NOT NULL,
+ `target_node_uuid` varchar(255) NOT NULL,
+ `target_type` varchar(255) DEFAULT NULL,
+ `target_node_customization_uuid` varchar(255) DEFAULT NULL,
+ `policy_customization_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`policy_uuid`,`parent_uuid`,`target_node_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+CREATE TABLE `SERVICE_MODEL_TO_COMPLEX_RESOURCE_MAPPING` (
+ `service_uuid` varchar(255) NOT NULL,
+ `complex_resource_uuid` varchar(255) NOT NULL,
+ `complex_resource_customization_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`service_uuid`,`complex_resource_uuid`,`complex_resource_customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `VFC_RELATED_NETWORK_ROLE` (
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `vm_type` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`vfc_customization_uuid`,`vm_type`,`network_role`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE `VNF_RELATED_NETWORK_ROLE` (
+ `vnf_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_customization_uuid`,`network_role`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
diff --git a/ms/sliboot/src/main/resources/schema-mariadb.sql b/ms/sliboot/src/main/resources/schema-mariadb.sql
new file mode 100644
index 00000000..a1a8b5a6
--- /dev/null
+++ b/ms/sliboot/src/main/resources/schema-mariadb.sql
@@ -0,0 +1,2764 @@
+
+
+--
+-- Table structure for table `ACCESS_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `ACCESS_LOG` (
+ `access_log_seq` int(11) NOT NULL AUTO_INCREMENT,
+ `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `method` varchar(12) DEFAULT NULL,
+ `version` varchar(12) DEFAULT NULL,
+ `status` varchar(12) DEFAULT NULL,
+ `url` varchar(256) DEFAULT NULL,
+ `remote_address` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`access_log_seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=1034 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CUSTOMER`
+--
+
+
+CREATE TABLE IF NOT EXISTS `CUSTOMER` (
+ `cust_id` int(11) NOT NULL AUTO_INCREMENT,
+ `customer_name` varchar(256) DEFAULT NULL,
+ `grua` varchar(4) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`cust_id`),
+ UNIQUE KEY `IU1_CUSTOMER` (`customer_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=155 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `ADDRESS_PLAN_POLICIES`
+--
+
+CREATE TABLE IF NOT EXISTS `ADDRESS_PLAN_POLICIES` (
+ `key_name` varchar(255) NOT NULL,
+ `key_value_source_type` varchar(255) NOT NULL,
+ `key_value_source` varchar(255) NOT NULL,
+ PRIMARY KEY (`key_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AGNOSTIC_NOTIFICATION_URL`
+--
+
+CREATE TABLE IF NOT EXISTS `AGNOSTIC_NOTIFICATION_URL` (
+ `service_type` varchar(128) NOT NULL,
+ `service_instance_id` varchar(128) NOT NULL,
+ `request_id` varchar(128) NOT NULL,
+ `svc_notification_url` varchar(256) NOT NULL,
+ PRIMARY KEY (`service_type`,`service_instance_id`,`request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `AGNOSTIC_TO_SVC_SPCFC_API`
+--
+CREATE TABLE IF NOT EXISTS `AGNOSTIC_TO_SVC_SPCFC_API` (
+ `operation` varchar(128) NOT NULL,
+ `service` varchar(128) NOT NULL,
+ `service_specific_api` varchar(128) NOT NULL,
+ `async_process` varchar(15) DEFAULT NULL,
+ PRIMARY KEY (`operation`,`service`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_AVAIL_ZONE_POOL`
+--
+CREATE TABLE IF NOT EXISTS `AIC_AVAIL_ZONE_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `token` varchar(5) NOT NULL,
+ `vnf_id` varchar(80) DEFAULT NULL,
+ `service_type` varchar(100) NOT NULL,
+ `vnf_type` varchar(20) DEFAULT NULL,
+ `hypervisor` varchar(10) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`token`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_HOSTNAME`
+--
+CREATE TABLE IF NOT EXISTS `AIC_HOSTNAME` (
+ `hostname` varchar(20) NOT NULL,
+ `cust_id` int(11) NOT NULL,
+ `vendor_code` varchar(1) NOT NULL,
+ `virtual_device_type` varchar(2) DEFAULT NULL,
+ `device_sequence` varchar(3) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`hostname`),
+ UNIQUE KEY `hostname` (`hostname`),
+ KEY `IN1_AIC_HOSTNAME` (`cust_id`),
+ CONSTRAINT `AC1_HOSTNAME` FOREIGN KEY (`cust_id`) REFERENCES `CUSTOMER` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_NETWORK`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_NETWORK` (
+ `network_id` varchar(100) NOT NULL,
+ `network_name` varchar(100) DEFAULT NULL,
+ `status` varchar(20) DEFAULT NULL,
+ `tenant_id` varchar(100) DEFAULT NULL,
+ `switch_uuid` varchar(100) DEFAULT NULL,
+ `portgroup_name` varchar(100) DEFAULT NULL,
+ `portgroup_id` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_SITE`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_SITE` (
+ `name` varchar(100) DEFAULT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `vcenter_url` varchar(200) DEFAULT NULL,
+ `vcenter_username` varchar(40) DEFAULT NULL,
+ `vcenter_passwd` varbinary(255) DEFAULT NULL,
+ `city` varchar(100) DEFAULT NULL,
+ `state` varchar(2) DEFAULT NULL,
+ `operational_status` varchar(20) DEFAULT NULL,
+ `oam_gateway_addr` varchar(20) DEFAULT '',
+ PRIMARY KEY (`aic_site_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_SWITCH`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_SWITCH` (
+ `switch_name` varchar(100) DEFAULT NULL,
+ `physical_network_name` varchar(100) NOT NULL,
+ `aic_site_id` varchar(100) DEFAULT NULL,
+ `uuid` varchar(100) DEFAULT NULL,
+ `availability_zone` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`physical_network_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_ZONE_CLOUD_REGION_ID`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_ZONE_CLOUD_REGION_ID` (
+ `zone_region_id` varchar(255) NOT NULL,
+ `cilli_code` varchar(255) NOT NULL,
+ `location_id` varchar(255) NOT NULL DEFAULT '',
+ `city_state_country` varchar(255) NOT NULL DEFAULT '',
+ PRIMARY KEY (`zone_region_id`,`cilli_code`,`location_id`,`city_state_country`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALLOCATION_ITEM`
+--
+
+CREATE TABLE IF NOT EXISTS `ALLOCATION_ITEM` (
+ `allocation_item_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_id` bigint(20) NOT NULL,
+ `application_id` varchar(50) NOT NULL,
+ `resource_set_id` varchar(200) NOT NULL,
+ `resource_union_id` varchar(200) NOT NULL,
+ `resource_share_group_list` varchar(200) DEFAULT NULL,
+ `lt_used` bigint(20) DEFAULT NULL,
+ `ll_label` varchar(50) DEFAULT NULL,
+ `rr_used` varchar(200) DEFAULT NULL,
+ `allocation_time` datetime NOT NULL,
+ PRIMARY KEY (`allocation_item_id`),
+ UNIQUE KEY `allocation_item_id` (`allocation_item_id`),
+ UNIQUE KEY `IX2_ALLOCATION_ITEM` (`resource_id`,`resource_set_id`),
+ KEY `IX1_ALLOCATION_ITEM` (`resource_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=5764 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALLOTTED_RESOURCE_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `ALLOTTED_RESOURCE_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `depending_service` varchar(255) DEFAULT NULL,
+ `role` varchar(255) DEFAULT NULL,
+ `type` varchar(255) DEFAULT NULL,
+ `service_dependency` varchar(255) DEFAULT NULL,
+ `allotted_resource_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALTS_CREDENTIALS`
+--
+
+CREATE TABLE IF NOT EXISTS `ALTS_CREDENTIALS` (
+ `alts_username` varchar(255) NOT NULL,
+ `alts_password` varbinary(255) NOT NULL,
+ PRIMARY KEY (`alts_username`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ASDC_ARTIFACTS`
+--
+
+CREATE TABLE IF NOT EXISTS `ASDC_ARTIFACTS` (
+ `asdc_artifacts_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_uuid` varchar(50) DEFAULT NULL,
+ `distribution_id` varchar(50) DEFAULT NULL,
+ `service_name` varchar(255) DEFAULT NULL,
+ `service_description` varchar(255) DEFAULT NULL,
+ `resource_uuid` varchar(255) DEFAULT NULL,
+ `resource_instance_name` varchar(255) DEFAULT NULL,
+ `resource_name` varchar(255) DEFAULT NULL,
+ `resource_version` varchar(50) DEFAULT NULL,
+ `resource_type` varchar(50) DEFAULT NULL,
+ `artifact_uuid` varchar(50) DEFAULT NULL,
+ `artifact_type` varchar(50) DEFAULT NULL,
+ `artifact_version` varchar(25) DEFAULT NULL,
+ `artifact_description` varchar(255) DEFAULT NULL,
+ `internal_version` int(11) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `artifact_name` varchar(255) DEFAULT NULL,
+ `artifact_content` longtext,
+ PRIMARY KEY (`asdc_artifacts_id`),
+ UNIQUE KEY `asdc_artifacts_id` (`asdc_artifacts_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ASDC_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `ASDC_REFERENCE` (
+ `asdc_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_type` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `file_category` varchar(50) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `artifact_type` varchar(50) DEFAULT NULL,
+ `artifact_name` varchar(255) NOT NULL,
+ PRIMARY KEY (`asdc_reference_id`),
+ UNIQUE KEY `asdc_reference_id` (`asdc_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `BLOB_TEST`
+--
+
+CREATE TABLE IF NOT EXISTS `BLOB_TEST` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `odl` varchar(20) DEFAULT NULL,
+ `communities` mediumblob,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `retry_count` int(11) DEFAULT '-1',
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CAPABILITY`
+--
+
+CREATE TABLE IF NOT EXISTS `CAPABILITY` (
+ `capability_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_name` varchar(50) NOT NULL,
+ `implementation_name` varchar(100) NOT NULL,
+ `operation_name` varchar(50) NOT NULL,
+ `operation_description` varchar(100) NOT NULL,
+ `input_definition` longtext,
+ `output_definition` longtext,
+ `dependency_definition` longtext,
+ `tags` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`capability_id`),
+ UNIQUE KEY `capability_id` (`capability_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CITY_CODE`
+--
+
+CREATE TABLE IF NOT EXISTS `CITY_CODE` (
+ `city_code_id` int(11) NOT NULL AUTO_INCREMENT,
+ `city_code` varchar(3) NOT NULL,
+ `city` varchar(150) NOT NULL,
+ `state` varchar(10) NOT NULL,
+ `country_code` varchar(10) NOT NULL,
+ PRIMARY KEY (`city_code_id`),
+ KEY `IN1_CITY_CODE` (`city`,`state`,`country_code`)
+) ENGINE=InnoDB AUTO_INCREMENT=37822 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CLI_UPDATES`
+--
+
+CREATE TABLE IF NOT EXISTS `CLI_UPDATES` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `create_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+ `last_processed_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `target_address` varchar(128) DEFAULT NULL,
+ `cli_text` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIGFILES`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIGFILES` (
+ `config_file_id` int(11) NOT NULL AUTO_INCREMENT,
+ `external_version` varchar(50) DEFAULT NULL,
+ `data_source` varchar(25) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `file_category` varchar(50) DEFAULT NULL,
+ `file_name` varchar(255) DEFAULT NULL,
+ `file_content` longtext,
+ `action` varchar(50) DEFAULT NULL,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`config_file_id`),
+ UNIQUE KEY `config_file_id` (`config_file_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIGURE_ACTION_DG`
+--
+
+
+CREATE TABLE IF NOT EXISTS `CONFIGURE_ACTION_DG` (
+ `configure_action_dg_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `init_config_dg` varchar(50) DEFAULT NULL,
+ `generate_config_dg` varchar(50) DEFAULT NULL,
+ `download_config_dg` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`configure_action_dg_id`),
+ UNIQUE KEY `configure_action_dg_id` (`configure_action_dg_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `CONFIG_CONTENT`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIG_CONTENT` (
+ `config_content_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` varchar(50) NOT NULL,
+ `content_type` varchar(50) NOT NULL,
+ `template_name` varchar(50) DEFAULT NULL,
+ `originator_id` varchar(50) DEFAULT NULL,
+ `service_description` varchar(100) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `service_type` varchar(50) DEFAULT NULL,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `host_ip_address` varchar(50) DEFAULT NULL,
+ `config_indicator` varchar(25) DEFAULT NULL,
+ `pending_delete` varchar(1) DEFAULT NULL,
+ `content` longtext,
+ PRIMARY KEY (`config_content_id`),
+ UNIQUE KEY `config_content_id` (`creation_date`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `CONFIG_FILE_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIG_FILE_REFERENCE` (
+ `config_file_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `site_location` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `import_type` varchar(50) DEFAULT NULL,
+ `file_type` varchar(50) DEFAULT NULL,
+ `source_server_name` varchar(255) DEFAULT NULL,
+ `source_file_path` varchar(255) DEFAULT NULL,
+ `target_file_path` varchar(255) DEFAULT NULL,
+ `name` varchar(50) DEFAULT NULL,
+ `file_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`config_file_reference_id`),
+ UNIQUE KEY `config_file_reference_id` (`config_file_reference_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIG_TRANSACTION_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIG_TRANSACTION_LOG` (
+ `config_transaction_log_id` varchar(50) NOT NULL,
+ `request_id` varchar(50) DEFAULT NULL,
+ `message_type` varchar(100) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `message` longtext,
+ PRIMARY KEY (`config_transaction_log_id`),
+ UNIQUE KEY `config_transaction_log_id` (`config_transaction_log_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `COUNTRY_ASN_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `COUNTRY_ASN_MAPPING` (
+ `asn` int(5) NOT NULL,
+ `iso_2char` varchar(5) NOT NULL,
+ `iso_3char` varchar(5) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+
+
+--
+-- Table structure for table `CUSTOMER2CONNECTION_MAPPING`
+--
+
+CREATE TABLE `CUSTOMER2CONNECTION_MAPPING` (
+ `customer2connection_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `service_type` varchar(30) DEFAULT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ `status` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`customer2connection_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CUSTOMER2CONNECTION_MAPPING_NEW`
+--
+
+CREATE TABLE IF NOT EXISTS `CUSTOMER2CONNECTION_MAPPING_NEW` (
+ `customer2connection_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `service_type` varchar(30) DEFAULT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ `status` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`customer2connection_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DATA_OBJECT_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `DATA_OBJECT_MAPPING` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `data_object_key` varchar(100) NOT NULL,
+ `data_object_type` varchar(50) NOT NULL,
+ `service_type` varchar(50) NOT NULL,
+ `data_object_key2` varchar(100) NOT NULL,
+ `data_object_key2_type` varchar(50) NOT NULL,
+ `data_object_key3` varchar(100) DEFAULT NULL,
+ `data_object_key3_type` varchar(50) DEFAULT NULL,
+ `service` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DATA_OBJECT_MAPPING` (`data_object_key`,`data_object_type`,`service_type`),
+ KEY `IX2_DATA_OBJECT_MAPPING` (`service_type`,`data_object_key2`,`data_object_key2_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=3211 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2CONNECTION_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE2CONNECTION_MAPPING` (
+ `vnf_host_name` varchar(100) NOT NULL,
+ `e2e_vpn_key` varchar(30) NOT NULL,
+ `service_type` varchar(30) NOT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ PRIMARY KEY (`vnf_host_name`,`e2e_vpn_key`,`service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2IPADDRESS_CONSUMPTION`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE2IPADDRESS_CONSUMPTION` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `device_id` varchar(100) NOT NULL,
+ `device_type` varchar(30) NOT NULL,
+ `ip_version` varchar(10) NOT NULL,
+ `consumption_key` varchar(100) NOT NULL,
+ `logical_interface_service_id` varchar(100) NOT NULL,
+ `address_type` varchar(30) NOT NULL,
+ `ip_consumed` varchar(50) NOT NULL,
+ `vnf_type` varchar(30) NOT NULL,
+ `secondary_key` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DEVICEIPADDRESS_CONSUMPTION` (`device_id`,`device_type`,`ip_version`)
+) ENGINE=InnoDB AUTO_INCREMENT=1357 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2IPADDRESS_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE2IPADDRESS_MAPPING` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `device_id` varchar(100) NOT NULL,
+ `device_type` varchar(30) NOT NULL,
+ `secondary_key` varchar(100) NOT NULL,
+ `secondary_key_type` varchar(30) NOT NULL,
+ `address` varchar(50) NOT NULL,
+ `address_type` varchar(30) NOT NULL,
+ `ip_version` varchar(10) NOT NULL,
+ `length` int(11) NOT NULL,
+ `status` varchar(30) NOT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DEVICE2IPADDRESS_MAPPING` (`device_id`,`device_type`,`secondary_key`,`secondary_key_type`,`address`,`address_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=4734 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_AUTHENTICATION`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE_AUTHENTICATION` (
+ `device_authentication_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `user_name` varchar(50) DEFAULT NULL,
+ `password` varchar(100) DEFAULT NULL,
+ `protocol` varchar(100) DEFAULT NULL,
+ `port_number` int(11) DEFAULT NULL,
+ PRIMARY KEY (`device_authentication_id`),
+ UNIQUE KEY `device_authentication_id` (`device_authentication_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_INTERFACE_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE_INTERFACE_LOG` (
+ `device_interface_log_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `request_id` varchar(50) DEFAULT NULL,
+ `creation_date` datetime NOT NULL,
+ `log` longtext,
+ PRIMARY KEY (`device_interface_log_id`),
+ UNIQUE KEY `device_interface_log_id` (`device_interface_log_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_INTERFACE_PROTOCOL`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE_INTERFACE_PROTOCOL` (
+ `device_interface_protocol_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `protocol` varchar(50) DEFAULT NULL,
+ `module` varchar(50) DEFAULT NULL,
+ `dg_rpc` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`device_interface_protocol_id`),
+ UNIQUE KEY `device_interface_protocol_id` (`device_interface_protocol_id`),
+ UNIQUE KEY `vnf_type` (`vnf_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DOWNLOAD_CONFIG_TEMPLATE`
+--
+
+CREATE TABLE IF NOT EXISTS `DOWNLOAD_CONFIG_TEMPLATE` (
+ `download_config_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) NOT NULL,
+ `protocol` varchar(50) NOT NULL,
+ `template` longtext,
+ PRIMARY KEY (`download_config_template_id`),
+ UNIQUE KEY `download_config_template_id` (`download_config_template_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DOWNLOAD_DG_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `DOWNLOAD_DG_REFERENCE` (
+ `download_dg_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `protocol` varchar(50) NOT NULL,
+ `download_config_dg` varchar(50) NOT NULL,
+ PRIMARY KEY (`download_dg_reference_id`),
+ UNIQUE KEY `download_dg_reference_id` (`download_dg_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_CLIENT_KEY_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_CLIENT_KEY_INDEX` (
+ `vnf_name_prefix` varchar(100) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_ASSIGNMENTS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_ASSIGNMENTS` (
+ `plan_name` varchar(40) NOT NULL,
+ `client_key` varchar(100) NOT NULL,
+ `service_type` varchar(40) NOT NULL,
+ `ip_address` varchar(40) DEFAULT NULL,
+ `prefix_length` int(2) DEFAULT NULL,
+ `status` varchar(255) DEFAULT NULL,
+ `service_instance_id` varchar(80) DEFAULT NULL,
+ `last_modified_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `prev_status` varchar(20) DEFAULT NULL,
+ `info` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`plan_name`,`client_key`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_POOLS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_POOLS` (
+ `pool_id` int(11) NOT NULL AUTO_INCREMENT,
+ `key_name` varchar(50) NOT NULL,
+ `key_value` varchar(255) NOT NULL,
+ `level` int(2) NOT NULL,
+ `plan_name` varchar(50) NOT NULL,
+ `address_family` varchar(10) NOT NULL,
+ `parent_pool` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) DEFAULT NULL,
+ `network_id` varchar(255) DEFAULT NULL,
+ `created_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `delete_failure` varchar(20) DEFAULT NULL,
+ `delete_request_id` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`pool_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=339 DEFAULT CHARSET=latin1 COMMENT='This table will capture the pools being created by SDN-C in EIPAM_IP_POOLS. There is no data migration for existing vPE pool data.';
+
+--
+-- Table structure for table `EIPAM_IP_SUBNETS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_SUBNETS` (
+ `entity_id` int(6) NOT NULL,
+ `service_type` varchar(40) NOT NULL,
+ `plan_name` varchar(50) NOT NULL,
+ `address_family` varchar(10) NOT NULL,
+ `ip_address` varchar(40) NOT NULL,
+ `prefix_length` int(3) NOT NULL,
+ `status` varchar(20) NOT NULL,
+ `last_modified_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `network_id` varchar(255) DEFAULT NULL,
+ `pool_id` int(11) DEFAULT NULL,
+ `dealloc_failure` varchar(20) DEFAULT NULL,
+ `dealloc_request_id` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`entity_id`),
+ KEY `FK_EIPAM_IP_SUBNETS_EIPAM_IP_POOLS` (`pool_id`),
+ CONSTRAINT `EIPAM_IP_SUBNETS_ibfk_1` FOREIGN KEY (`pool_id`) REFERENCES `EIPAM_IP_POOLS` (`pool_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK_EIPAM_IP_SUBNETS_EIPAM_IP_POOLS` FOREIGN KEY (`pool_id`) REFERENCES `EIPAM_IP_POOLS` (`pool_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_SUBNET_KEYS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_SUBNET_KEYS` (
+ `entity_id` int(6) NOT NULL,
+ `key_name` varchar(50) NOT NULL,
+ `key_value` varchar(255) NOT NULL,
+ `level` int(2) NOT NULL,
+ PRIMARY KEY (`entity_id`,`key_name`,`key_value`,`level`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_REQUEST_KEY`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_REQUEST_KEY` (
+ `key_name_1` varchar(50) NOT NULL,
+ `address_family` varchar(4) NOT NULL,
+ `serial_key` int(2) NOT NULL AUTO_INCREMENT,
+ `plan_name` varchar(50) NOT NULL,
+ `request_length` int(2) NOT NULL,
+ `pools_length` int(2) NOT NULL,
+ `plan_length` int(2) NOT NULL,
+ `key_name_0` varchar(50) NOT NULL,
+ `key_name_type_0` varchar(255) NOT NULL,
+ `key_name_type_1` varchar(255) NOT NULL,
+ `prefix_length` int(2) NOT NULL,
+ `group_flag` char(1) NOT NULL,
+ `address_type` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`key_name_1`,`address_family`),
+ UNIQUE KEY `IX1_EIPAM_REQUEST_KEY` (`serial_key`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EXTERNAL_DATA`
+--
+
+CREATE TABLE IF NOT EXISTS `EXTERNAL_DATA` (
+ `external_data_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` int(11) DEFAULT NULL,
+ `param_name` varchar(30) NOT NULL,
+ `param_value` varchar(50) NOT NULL,
+ PRIMARY KEY (`external_data_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `FLOW_UPDATES`
+--
+
+CREATE TABLE IF NOT EXISTS `FLOW_UPDATES` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `create_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `last_processed_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `odl` varchar(128) DEFAULT NULL,
+ `address_family` enum('IPV4','IPV6') DEFAULT NULL,
+ `destination_prefix` varchar(50) DEFAULT NULL,
+ `communities` varchar(6000) DEFAULT NULL,
+ `route_key` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_L3_NETWORK` (
+ `network_id` varchar(80) NOT NULL,
+ `network_name` varchar(80) DEFAULT NULL,
+ `network_type` varchar(80) DEFAULT NULL,
+ `network_role` varchar(80) DEFAULT NULL,
+ `network_technology` varchar(80) DEFAULT NULL,
+ `neutron_network_id` varchar(80) DEFAULT NULL,
+ `is_bound_to_vpn` tinyint(1) DEFAULT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `service_id` varchar(80) NOT NULL,
+ `tenant_id` varchar(80) NOT NULL,
+ `physical_location_id` varchar(20) DEFAULT NULL,
+ `network_role_instance` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK_SUBNET`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_L3_NETWORK_SUBNET` (
+ `network_id` varchar(80) NOT NULL,
+ `subnet_id` varchar(80) NOT NULL,
+ `neutron_subnet_id` varchar(80) DEFAULT NULL,
+ `gateway_address` varchar(45) NOT NULL,
+ `network_start_address` varchar(45) NOT NULL,
+ `cidr_mask` varchar(20) NOT NULL,
+ `ip_version` char(1) NOT NULL,
+ `orchestration_status` varchar(64) NOT NULL,
+ `dhcp_enabled` tinyint(1) NOT NULL,
+ `dhcp_start` varchar(45) DEFAULT NULL,
+ `dhcp_end` varchar(45) DEFAULT NULL,
+ PRIMARY KEY (`network_id`,`subnet_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK_VPN_BINDING`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_L3_NETWORK_VPN_BINDING` (
+ `network_id` varchar(80) NOT NULL,
+ `vpn_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_id`,`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_RESOURCE_NAME`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_RESOURCE_NAME` (
+ `type` varchar(50) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `prefix` varchar(255) NULL,
+ `name_index` int(11) NULL,
+ `context_id` varchar(255) NULL,
+ PRIMARY KEY (`type`,`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vnf_name` varchar(80) NOT NULL,
+ `vnf_type` varchar(200) NOT NULL,
+ `vnf_name2` varchar(80) DEFAULT NULL,
+ `service_id` varchar(80) NOT NULL,
+ `equipment_role` varchar(80) NOT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `prov_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `regional_resource_zone` varchar(80) DEFAULT NULL,
+ `operational_state` varchar(80) DEFAULT NULL,
+ `license_key` varchar(80) DEFAULT NULL,
+ `ipv4_oam_address` varchar(20) DEFAULT NULL,
+ `ipv4_loopback0_address` varchar(20) DEFAULT NULL,
+ `nm_lan_v6_address` varchar(40) DEFAULT NULL,
+ `management_v6_address` varchar(40) DEFAULT NULL,
+ `management_option` varchar(45) DEFAULT NULL,
+ `vcpu` varchar(45) DEFAULT NULL,
+ `vmemory` varchar(45) DEFAULT NULL,
+ `vdisk` varchar(45) DEFAULT NULL,
+ `vcpu_units` varchar(45) DEFAULT NULL,
+ `vmemory_units` varchar(45) DEFAULT NULL,
+ `vdisk_units` varchar(45) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_L3_NETWORK`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_L3_NETWORK` (
+ `vnf_id` varchar(80) NOT NULL,
+ `network_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_LICENSE_MANAGEMENT`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_LICENSE_MANAGEMENT` (
+ `vnf_id` varchar(80) NOT NULL,
+ `att_uuid` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_LINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_LINTERFACE` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `interface_role` varchar(45) DEFAULT NULL,
+ `v6_wan_link_ip` varchar(45) DEFAULT NULL,
+ `selflink` varchar(128) DEFAULT NULL,
+ `interface_id` varchar(45) DEFAULT NULL,
+ `macaddr` varchar(64) DEFAULT NULL,
+ `network_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`),
+ KEY `FK_GENERIC_VNF_LINTERFACE_GENERIC_VNF_IDX` (`vnf_id`),
+ CONSTRAINT `FK_GENERIC_VNF_LINTERFACE_GENERIC_VNF` FOREIGN KEY (`vnf_id`) REFERENCES `GENERIC_VNF` (`vnf_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_PSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_PSERVER` (
+ `vnf_id` varchar(64) NOT NULL,
+ `hostname` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`hostname`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_SERVICE_INSTANCE`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_SERVICE_INSTANCE` (
+ `vnf_id` varchar(64) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ `relationship_key` varchar(64) NOT NULL,
+ `relationship_value` varchar(64) DEFAULT NULL,
+ `global_customer_id` varchar(255) DEFAULT NULL,
+ `service_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`service_instance_id`,`relationship_key`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_VNF_IMAGE`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_VNF_IMAGE` (
+ `vnf_id` varchar(64) NOT NULL,
+ `att_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_VSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_VSERVER` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vserver_id` varchar(128) NOT NULL,
+ `tenant_id` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VPN_BINDING`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VPN_BINDING` (
+ `vpn_id` varchar(80) NOT NULL,
+ `vpn_name` varchar(80) NOT NULL,
+ `global_route_target` varchar(80) NOT NULL,
+ PRIMARY KEY (`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GET_CONFIG_TEMPLATE`
+--
+
+CREATE TABLE IF NOT EXISTS `GET_CONFIG_TEMPLATE` (
+ `get_config_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) NOT NULL,
+ `device_interface_protocol_id` int(11) NOT NULL,
+ `xml_processing` varchar(1) DEFAULT NULL,
+ `xml_protocol` varchar(30) DEFAULT NULL,
+ `template` longtext,
+ PRIMARY KEY (`get_config_template_id`),
+ UNIQUE KEY `get_config_template_id` (`get_config_template_id`),
+ KEY `get_config_template_ibfk_1` (`device_interface_protocol_id`),
+ CONSTRAINT `get_config_template_ibfk_1` FOREIGN KEY (`device_interface_protocol_id`) REFERENCES `DEVICE_INTERFACE_PROTOCOL` (`device_interface_protocol_id`) ON DELETE NO ACTION ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LOCATION`
+--
+
+CREATE TABLE IF NOT EXISTS `LOCATION` (
+ `loc_id` int(11) NOT NULL AUTO_INCREMENT,
+ `address` varchar(150) NOT NULL,
+ `city_code_id` int(11) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`loc_id`),
+ KEY `IN1_LOCATION_IDX` (`city_code_id`),
+ CONSTRAINT `FK1_LOCATION` FOREIGN KEY (`city_code_id`) REFERENCES `CITY_CODE` (`city_code_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB AUTO_INCREMENT=327 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `HOSTNAME`
+--
+
+CREATE TABLE IF NOT EXISTS `HOSTNAME` (
+ `hostname` varchar(21) NOT NULL,
+ `parent_hostname` varchar(21) DEFAULT NULL,
+ `cust_id` int(11) NOT NULL,
+ `loc_id` int(11) NOT NULL,
+ `site_sequence` varchar(2) NOT NULL,
+ `server_sequence` varchar(2) NOT NULL,
+ `activation_code` varchar(11) DEFAULT NULL,
+ `vnf_sequence` varchar(2) DEFAULT NULL,
+ `vendor_code` varchar(1) NOT NULL,
+ `virtual_device_type` varchar(2) DEFAULT NULL,
+ `device_sequence` varchar(3) DEFAULT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`hostname`),
+ KEY `IN1_HOSTNAME` (`cust_id`),
+ KEY `IN2_HOSTNAME` (`loc_id`),
+ KEY `IN3_HOSTNAME` (`vendor_code`),
+ KEY `IN4_HOSTNAME` (`parent_hostname`),
+ CONSTRAINT `FK1_HOSTNAME` FOREIGN KEY (`cust_id`) REFERENCES `CUSTOMER` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK2_HOSTNAME` FOREIGN KEY (`loc_id`) REFERENCES `LOCATION` (`loc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK4_HOSTNAME` FOREIGN KEY (`parent_hostname`) REFERENCES `HOSTNAME` (`hostname`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `IPV4_ADDRESS_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `IPV4_ADDRESS_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `universe` varchar(40) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `ipv4_addr` varchar(20) NOT NULL,
+ PRIMARY KEY (`ipv4_addr`,`universe`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LINK_MASTER`
+--
+
+CREATE TABLE IF NOT EXISTS `LINK_MASTER` (
+ `link_interface_ip` varchar(20) NOT NULL,
+ `source_crs_name` varchar(20) NOT NULL,
+ `destination_crs_name` varchar(20) NOT NULL,
+ `max_reserved_bw` int(11) DEFAULT NULL,
+ `default_cost` int(11) DEFAULT NULL,
+ `bundle_name` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`link_interface_ip`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LINTERFACE_VLAN`
+--
+
+CREATE TABLE IF NOT EXISTS `LINTERFACE_VLAN` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `vlan_id_inner` varchar(64) DEFAULT NULL,
+ `vlan_id_outer` varchar(64) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`),
+ KEY `FK_LINTERFACE_VLAN_GENERIC_VNF_LINTERFACE_IDX` (`vnf_id`,`interface_name`),
+ CONSTRAINT `FK_LINTERFACE_VLAN_GENERIC_VNF_LINTERFACE` FOREIGN KEY (`vnf_id`, `interface_name`) REFERENCES `GENERIC_VNF_LINTERFACE` (`vnf_id`, `interface_name`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `MAX_PORT_SPEED`
+--
+
+CREATE TABLE IF NOT EXISTS `MAX_PORT_SPEED` (
+ `max_port_speed_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `image_file_name` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `interface_name` varchar(100) NOT NULL,
+ `max_speed` bigint(20) NOT NULL,
+ `unit` varchar(10) NOT NULL,
+ PRIMARY KEY (`max_port_speed_id`),
+ UNIQUE KEY `max_port_speed_id` (`max_port_speed_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `MAX_SERVER_SPEED`
+--
+
+CREATE TABLE IF NOT EXISTS `MAX_SERVER_SPEED` (
+ `max_server_speed_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `server_model` varchar(50) NOT NULL,
+ `evc_count` smallint(6) NOT NULL,
+ `max_speed` bigint(20) NOT NULL,
+ `unit` varchar(10) NOT NULL,
+ `description` varchar(500) DEFAULT NULL,
+ PRIMARY KEY (`max_server_speed_id`),
+ UNIQUE KEY `max_server_speed_id` (`max_server_speed_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NAMING_POLICY_VM_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `NAMING_POLICY_VM_NAME_INDEX` (
+ `vm_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vm_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NAMING_POLICY_VNFC_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `NAMING_POLICY_VNFC_NAME_INDEX` (
+ `vnfc_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnfc_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_ASSIGN_VPN_OVERRIDE`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_ASSIGN_VPN_OVERRIDE` (
+ `vpn_id` varchar(12) NOT NULL DEFAULT '',
+ `vpn_rt` varchar(16) NOT NULL DEFAULT '',
+ `service_type` varchar(16) NOT NULL DEFAULT '',
+ `be_location` varchar(16) NOT NULL DEFAULT '',
+ `be_type` varchar(32) NOT NULL DEFAULT '',
+ `be_id` varchar(32) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`vpn_id`,`vpn_rt`,`service_type`,`be_location`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_BORDER_ELEMENT`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_BORDER_ELEMENT` (
+ `be_id` varchar(32) NOT NULL,
+ `be_type` varchar(16) NOT NULL,
+ `be_name` varchar(32) DEFAULT NULL,
+ `be_host_vnf_id` varchar(32) DEFAULT NULL,
+ `service_type` varchar(16) DEFAULT NULL,
+ `tangibility` varchar(16) DEFAULT NULL,
+ `usage_order` smallint(6) DEFAULT NULL,
+ `vlan_start` smallint(6) DEFAULT NULL,
+ `vlan_end` smallint(6) DEFAULT NULL,
+ `ipv4_subnet` varchar(18) DEFAULT NULL,
+ `ipv6_subnet` varchar(68) DEFAULT NULL,
+ `network_ip` varchar(48) DEFAULT NULL,
+ `be_location` varchar(16) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ `log_link_model_uuid` varchar(64) DEFAULT NULL,
+ PRIMARY KEY (`be_id`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_IPE`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_IPE` (
+ `ipe_name` varchar(32) NOT NULL,
+ `ipe_location` varchar(16) DEFAULT NULL,
+ `ipe_ip_address` varchar(16) DEFAULT NULL,
+ `ipe_id` varchar(8) DEFAULT NULL,
+ `service_type_array` varchar(512) DEFAULT NULL,
+ `ipe_status` varchar(32) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`ipe_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_IPE_PORT`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_IPE_PORT` (
+ `port_id` varchar(16) NOT NULL,
+ `ipe_name` varchar(32) NOT NULL,
+ `be_id` varchar(32) NOT NULL,
+ `be_type` varchar(16) NOT NULL,
+ `port_type` varchar(16) DEFAULT NULL,
+ `ae_name` varchar(16) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`port_id`,`ipe_name`,`be_id`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_MAPPING_SBG_BGF`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_MAPPING_SBG_BGF` (
+ `asbg_vlan` smallint(6) NOT NULL,
+ `bgf_vlan` smallint(6) NOT NULL,
+ PRIMARY KEY (`asbg_vlan`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_SERVICE`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_SERVICE` (
+ `service_type` varchar(16) NOT NULL,
+ `service_model_uuid` varchar(64) NOT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `created_timestamp` timestamp NULL DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_SERVICE_VLAN`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_SERVICE_VLAN` (
+ `be_id` varchar(32) NOT NULL,
+ `vlan` smallint(6) NOT NULL,
+ `service_type` varchar(16) DEFAULT NULL,
+ `be_type` varchar(16) DEFAULT NULL,
+ `be_name` varchar(32) DEFAULT NULL,
+ `be_host_vnf_id` varchar(32) DEFAULT NULL,
+ `be_location` varchar(16) DEFAULT NULL,
+ `be_usage_order` smallint(6) DEFAULT NULL,
+ `vlan_usage_order` smallint(6) DEFAULT NULL,
+ `status` varchar(16) DEFAULT 'AVAILABLE',
+ `request_id` varchar(64) DEFAULT NULL,
+ `service_instance_id` varchar(64) DEFAULT NULL,
+ `vni_id` varchar(16) DEFAULT NULL,
+ `customer_id` varchar(16) DEFAULT NULL,
+ `ipe1_router_name` varchar(32) DEFAULT NULL,
+ `ipe1_port_id` varchar(16) DEFAULT NULL,
+ `ipe1_ae_name` varchar(16) DEFAULT NULL,
+ `ipe2_router_name` varchar(32) DEFAULT NULL,
+ `ipe2_port_id` varchar(16) DEFAULT NULL,
+ `ipe2_ae_name` varchar(16) DEFAULT NULL,
+ `available_timestamp` timestamp NULL DEFAULT NULL,
+ `allocated_timestamp` timestamp NULL DEFAULT NULL,
+ `disabled_timestamp` timestamp NULL DEFAULT NULL,
+ `enabled_timestamp` timestamp NULL DEFAULT NULL,
+ `vpn_id` varchar(12) DEFAULT NULL,
+ `vpn_rt` varchar(16) DEFAULT NULL,
+ PRIMARY KEY (`be_id`,`vlan`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NCS_EXPECTED_ASYNC_REQUESTS`
+--
+
+CREATE TABLE IF NOT EXISTS `NCS_EXPECTED_ASYNC_REQUESTS` (
+ `ncs_request_id` varchar(255) NOT NULL,
+ `mso_gp_request_id` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ `sdn_module_name` varchar(255) NOT NULL,
+ `sdn_rpc_name` varchar(255) NOT NULL,
+ `sdn_service_action` varchar(255) DEFAULT NULL,
+ `ncs_rpc` varchar(255) NOT NULL,
+ `ncs_sub_action` varchar(255) DEFAULT NULL,
+ `status` varchar(255) NOT NULL DEFAULT 'inProgress',
+ `creation_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`ncs_request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_INSTANCE_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_INSTANCE_NAME_INDEX` (
+ `network_instance_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`network_instance_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `SERVICE_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_MODEL` (
+ `service_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `description` varchar(1024) DEFAULT NULL,
+ `type` varchar(255) DEFAULT NULL,
+ `category` varchar(255) DEFAULT NULL,
+ `ecomp_naming` char(1) DEFAULT NULL,
+ `service_instance_name_prefix` varchar(255) DEFAULT NULL,
+ `filename` varchar(100) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`service_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `NETWORK_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `service_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `network_type` varchar(255) DEFAULT NULL,
+ `network_role` varchar(255) DEFAULT NULL,
+ `network_technology` varchar(255) DEFAULT NULL,
+ `trunk_network_indicator` char(1) DEFAULT NULL,
+ `network_scope` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `is_shared_network` char(1) DEFAULT NULL,
+ `is_external_network` char(1) DEFAULT NULL,
+ `is_provider_network` char(1) DEFAULT NULL,
+ `physical_network_name` varchar(255) DEFAULT NULL,
+ `is_bound_to_vpn` char(1) DEFAULT NULL,
+ `vpn_binding` varchar(255) DEFAULT NULL,
+ `use_ipv4` char(1) DEFAULT NULL,
+ `ipv4_dhcp_enabled` char(1) DEFAULT NULL,
+ `ipv4_ip_version` char(1) DEFAULT NULL,
+ `ipv4_cidr_mask` varchar(255) DEFAULT NULL,
+ `eipam_v4_address_plan` varchar(255) DEFAULT NULL,
+ `use_ipv6` char(1) DEFAULT NULL,
+ `ipv6_dhcp_enabled` char(1) DEFAULT NULL,
+ `ipv6_ip_version` char(1) DEFAULT NULL,
+ `ipv6_cidr_mask` varchar(255) DEFAULT NULL,
+ `eipam_v6_address_plan` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`),
+ KEY `FK_NETWORK_MODEL` (`service_uuid`),
+ CONSTRAINT `FK_NETWORK_MODEL` FOREIGN KEY (`service_uuid`) REFERENCES `SERVICE_MODEL` (`service_uuid`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_PROFILE`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_PROFILE` (
+ `network_type` varchar(100) NOT NULL,
+ `technology` varchar(100) NOT NULL,
+ PRIMARY KEY (`network_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_ROLE_VPN_BINDING`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_ROLE_VPN_BINDING` (
+ `network_role` varchar(80) NOT NULL,
+ `vpn_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_role`,`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NODE_TYPES`
+--
+
+CREATE TABLE IF NOT EXISTS `NODE_TYPES` (
+ `nodetype` varchar(80) NOT NULL,
+ PRIMARY KEY (`nodetype`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `OBJECT_GROUPING`
+--
+
+CREATE TABLE IF NOT EXISTS `OBJECT_GROUPING` (
+ `group_id` varchar(128) NOT NULL,
+ `group_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`group_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `OBJECT_GROUP_MEMBER_TRACKING`
+--
+
+CREATE TABLE IF NOT EXISTS `OBJECT_GROUP_MEMBER_TRACKING` (
+ `group_id` varchar(128) NOT NULL,
+ `key_id` varchar(128) NOT NULL,
+ `key_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`group_id`,`key_id`,`key_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PARAMETERS`
+--
+
+CREATE TABLE IF NOT EXISTS `PARAMETERS` (
+ `name` varchar(100) NOT NULL,
+ `value` varchar(128) NOT NULL,
+ `category` varchar(24) DEFAULT NULL,
+ `memo` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PE_INV`
+--
+
+CREATE TABLE IF NOT EXISTS `PE_INV` (
+ `EQUIP_ID` int(11) DEFAULT NULL,
+ `EQUIP_TYPE` varchar(20) DEFAULT NULL,
+ `PTNII_EQUIP_NAME` varchar(20) DEFAULT NULL,
+ `IP_ADDR` varchar(15) DEFAULT NULL,
+ `ROUTER_PROV_STATUS` varchar(50) DEFAULT NULL,
+ `REGION` varchar(16) DEFAULT NULL,
+ `COUNTRY_ABBR` varchar(50) DEFAULT NULL,
+ `EQUIP_NAME_CODE` varchar(50) DEFAULT NULL,
+ `AS_NUMBER` varchar(5) DEFAULT NULL,
+ `LOOPBACK1` varchar(15) DEFAULT NULL,
+ `LOOPBACK2` varchar(15) DEFAULT NULL,
+ `LOOPBACK3` varchar(15) DEFAULT NULL,
+ `LOOPBACK40` varchar(15) DEFAULT NULL,
+ `LOOPBACK65535` varchar(15) DEFAULT NULL,
+ `INMS_LIST` varchar(20) DEFAULT NULL,
+ `ENCRYPTED_ACCESS_FLAG` varchar(50) DEFAULT NULL,
+ `SW_NAME` varchar(100) DEFAULT NULL,
+ `NMIPADDR` varchar(15) DEFAULT NULL,
+ `CREATE_DATE` datetime DEFAULT NULL,
+ `MOD_DATE` datetime DEFAULT NULL,
+ `FCN_CODE` varchar(50) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PHYSICAL_LINK`
+--
+
+CREATE TABLE IF NOT EXISTS `PHYSICAL_LINK` (
+ `link_name` varchar(255) NOT NULL,
+ `speed_value` varchar(64) DEFAULT NULL,
+ `speed_units` varchar(64) DEFAULT NULL,
+ `circuit_id` varchar(255) NOT NULL,
+ `dual_mode` varchar(64) NOT NULL,
+ PRIMARY KEY (`link_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PHYSICAL_LINK_PINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `PHYSICAL_LINK_PINTERFACE` (
+ `link_name` varchar(255) NOT NULL,
+ `hostname` varchar(255) NOT NULL,
+ `port_name_ft` varchar(255) NOT NULL,
+ PRIMARY KEY (`link_name`,`hostname`,`port_name_ft`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `PINTERFACE` (
+ `hostname` varchar(255) NOT NULL,
+ `port_name_ft` varchar(255) NOT NULL,
+ `interface_name` varchar(255) DEFAULT '',
+ `physical_speed` varchar(255) DEFAULT '',
+ `physical_units` varchar(255) DEFAULT '',
+ `port_description` varchar(255) DEFAULT '',
+ PRIMARY KEY (`hostname`,`port_name_ft`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `POLICY_UPDATE_NOTIFICATION`
+--
+
+CREATE TABLE IF NOT EXISTS `POLICY_UPDATE_NOTIFICATION` (
+ `policy_name` varchar(255) NOT NULL,
+ `version_id` varchar(255) NOT NULL,
+ `update_type` varchar(255) NOT NULL,
+ `timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ PRIMARY KEY (`policy_name`,`version_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PORTAL_USERS`
+--
+
+CREATE TABLE IF NOT EXISTS `PORTAL_USERS` (
+ `email` varchar(64) NOT NULL,
+ `password` varbinary(255) NOT NULL,
+ `privilege` char(1) NOT NULL,
+ PRIMARY KEY (`email`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `PREPARE_FILE_RELATIONSHIP`
+--
+
+CREATE TABLE IF NOT EXISTS `PREPARE_FILE_RELATIONSHIP` (
+ `prepare_file_relationship_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `request_id` varchar(255) DEFAULT NULL,
+ `config_file_id` int(11) DEFAULT NULL,
+ `asdc_artifacts_id` int(11) DEFAULT NULL,
+ PRIMARY KEY (`prepare_file_relationship_id`),
+ UNIQUE KEY `prepare_file_relationship_id` (`prepare_file_relationship_id`),
+ KEY `ie_prepare_file_relationship` (`config_file_id`),
+ KEY `ie2_prepare_file_relationship` (`asdc_artifacts_id`),
+ CONSTRAINT `prepare_file_relationship_ibfk_2` FOREIGN KEY (`asdc_artifacts_id`) REFERENCES `ASDC_ARTIFACTS` (`asdc_artifacts_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
+ CONSTRAINT `prepare_file_replationship_ibfk_1` FOREIGN KEY (`config_file_id`) REFERENCES `CONFIGFILES` (`config_file_id`) ON DELETE NO ACTION ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PRE_LOAD_VNF_DATA`
+--
+
+CREATE TABLE IF NOT EXISTS `PRE_LOAD_VNF_DATA` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `svc_request_id` varchar(100) DEFAULT '',
+ `svc_action` varchar(40) DEFAULT '',
+ `status` varchar(10) NOT NULL DEFAULT 'pending',
+ `filename` varchar(100) NOT NULL,
+ `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `preload_data` longblob,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=295 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PRE_LOAD_VNF_NETWORK_DATA`
+--
+
+CREATE TABLE IF NOT EXISTS `PRE_LOAD_VNF_NETWORK_DATA` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `svc_request_id` varchar(100) DEFAULT '',
+ `svc_action` varchar(40) DEFAULT '',
+ `status` varchar(10) NOT NULL DEFAULT 'pending',
+ `filename` varchar(100) NOT NULL,
+ `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `preload_data` longblob,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=278 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `PSERVER` (
+ `hostname` varchar(255) NOT NULL,
+ `ptnii_equip_name` varchar(255) DEFAULT '',
+ `number_of_cpus` varchar(255) DEFAULT '',
+ `disk_in_gigabytes` varchar(255) DEFAULT '',
+ `ram_in_megabytes` varchar(255) DEFAULT '',
+ `equip_type` varchar(255) DEFAULT '',
+ `equip_vendor` varchar(255) DEFAULT '',
+ `equip_model` varchar(255) DEFAULT '',
+ `fqdn` varchar(255) DEFAULT '',
+ `pserver_selflink` varchar(255) DEFAULT '',
+ `ipv4_oam_address` varchar(40) DEFAULT NULL,
+ `serial_number` varchar(255) DEFAULT '',
+ `pserver_id` varchar(255) DEFAULT '',
+ `internet_topology` varchar(40) DEFAULT '',
+ `aic_site_id` varchar(100) DEFAULT '',
+ `in_maint` varchar(5) DEFAULT '',
+ `pserver_name2` varchar(255) DEFAULT '',
+ `purpose` varchar(255) DEFAULT '',
+ PRIMARY KEY (`hostname`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RANGE_RULE`
+--
+
+CREATE TABLE IF NOT EXISTS `RANGE_RULE` (
+ `range_rule_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `range_name` varchar(50) NOT NULL,
+ `service_model` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `equipment_level` varchar(50) NOT NULL,
+ `min_value` int(11) NOT NULL,
+ `max_value` int(11) NOT NULL,
+ PRIMARY KEY (`range_rule_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_DETAILS`
+--
+
+CREATE TABLE IF NOT EXISTS `REQUEST_DETAILS` (
+ `request_id` varchar(255) NOT NULL,
+ `controller_id` varchar(255) DEFAULT NULL,
+ `status` varchar(255) DEFAULT NULL,
+ `service_rate` varchar(255) DEFAULT NULL,
+ `service_instance_id` varchar(255) DEFAULT NULL,
+ `service_type` varchar(255) DEFAULT NULL,
+ `global_customer_id` varchar(255) DEFAULT NULL,
+ `notification_url` varchar(255) DEFAULT NULL,
+ `domain_requests` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_PROGRESS`
+--
+
+CREATE TABLE IF NOT EXISTS `REQUEST_PROGRESS` (
+ `request_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_type` varchar(20) DEFAULT NULL,
+ `service_instance_id` varchar(80) NOT NULL,
+ `request_instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `overall_status` varchar(20) DEFAULT NULL,
+ `status_date` varchar(80) DEFAULT NULL,
+ `message` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_PROGRESS_STATE`
+--
+
+CREATE TABLE IF NOT EXISTS `REQUEST_PROGRESS_STATE` (
+ `request_progress_state_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` int(11) DEFAULT NULL,
+ `service_instance_id` varchar(80) NOT NULL,
+ `request_instance_type` varchar(20) NOT NULL,
+ `progress_state` varchar(30) DEFAULT NULL,
+ `transaction_status` varchar(20) DEFAULT NULL,
+ `status_date` varchar(80) DEFAULT NULL,
+ `response_code` varchar(20) DEFAULT NULL,
+ `message` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_progress_state_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE` (
+ `resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `asset_id` varchar(100) NOT NULL,
+ `resource_name` varchar(50) NOT NULL,
+ `resource_type` enum('Limit','Label','Range') NOT NULL,
+ `lt_used` bigint(20) DEFAULT NULL,
+ `ll_label` varchar(50) DEFAULT NULL,
+ `ll_reference_count` smallint(6) DEFAULT NULL,
+ `rr_used` varchar(4000) DEFAULT NULL,
+ PRIMARY KEY (`resource_id`),
+ UNIQUE KEY `resource_id` (`resource_id`),
+ UNIQUE KEY `IX1_RESOURCE` (`asset_id`,`resource_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=179 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_LOAD`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_LOAD` (
+ `resource_load_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_id` bigint(20) NOT NULL,
+ `application_id` varchar(20) NOT NULL,
+ `resource_load_time` datetime NOT NULL,
+ `resource_expiration_time` datetime DEFAULT NULL,
+ PRIMARY KEY (`resource_load_id`),
+ UNIQUE KEY `resource_load_id` (`resource_load_id`),
+ UNIQUE KEY `IX2_RESOURCE_LOAD` (`resource_id`,`application_id`),
+ KEY `IX1_RESOURCE_LOAD` (`resource_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_LOCK`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_LOCK` (
+ `resource_lock_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_name` varchar(256) DEFAULT NULL,
+ `lock_holder` varchar(100) NOT NULL,
+ `lock_count` smallint(6) NOT NULL,
+ `lock_time` datetime NOT NULL,
+ `expiration_time` datetime NOT NULL,
+ PRIMARY KEY (`resource_lock_id`),
+ UNIQUE KEY `resource_lock_id` (`resource_lock_id`),
+ UNIQUE KEY `IX1_RESOURCE_LOCK` (`resource_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=29681 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_RULE`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_RULE` (
+ `resource_rule_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_name` varchar(50) NOT NULL,
+ `service_model` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `service_expression` varchar(2000) NOT NULL,
+ `equipment_level` varchar(50) NOT NULL,
+ `equipment_expression` varchar(2000) NOT NULL,
+ `allocation_expression` varchar(2000) NOT NULL,
+ `soft_limit_expression` varchar(2000) NOT NULL,
+ `hard_limit_expression` varchar(2000) NOT NULL,
+ PRIMARY KEY (`resource_rule_id`),
+ UNIQUE KEY `resource_rule_id` (`resource_rule_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_THRESHOLD`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_THRESHOLD` (
+ `resource_threshold_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_rule_id` bigint(20) NOT NULL,
+ `threshold_expression` varchar(2000) NOT NULL,
+ `threshold_message` varchar(2000) NOT NULL,
+ PRIMARY KEY (`resource_threshold_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ROUTER_MASTER`
+--
+
+CREATE TABLE IF NOT EXISTS `ROUTER_MASTER` (
+ `crs_name` varchar(20) NOT NULL,
+ `loopback_ip` varchar(20) NOT NULL,
+ PRIMARY KEY (`crs_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ROUTING_CHARACTERISTIC_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `ROUTING_CHARACTERISTIC_MAPPING` (
+ `network_role` varchar(255) NOT NULL,
+ `vrf_name` varchar(255) NOT NULL,
+ `routing_characteristic` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_role`,`vrf_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_HOMING`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_HOMING` (
+ `service_type` varchar(100) NOT NULL,
+ `lata` int(3) NOT NULL,
+ `hubbing_city_type` varchar(40) NOT NULL,
+ `latitude` float DEFAULT NULL,
+ `longitude` float DEFAULT NULL,
+ `primary_aic_site_name` varchar(100) NOT NULL,
+ `secondary_aic_site_name` varchar(100) DEFAULT NULL,
+ `tertiary_aic_site_name` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`service_type`,`lata`,`hubbing_city_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_HOMING_BACKUP`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_HOMING_BACKUP` (
+ `service_type` varchar(100) NOT NULL,
+ `lata` int(3) NOT NULL,
+ `hubbing_city_type` varchar(40) NOT NULL,
+ `latitude` float DEFAULT NULL,
+ `longitude` float DEFAULT NULL,
+ `primary_aic_site_name` varchar(100) NOT NULL,
+ `secondary_aic_site_name` varchar(100) DEFAULT NULL,
+ `tertiary_aic_site_name` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`service_type`,`lata`,`hubbing_city_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_INSTANCE_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_INSTANCE_NAME_INDEX` (
+ `service_instance_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`service_instance_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_MANAGER_CREDENTIALS`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_MANAGER_CREDENTIALS` (
+ `service_manager_username` varchar(255) NOT NULL,
+ `service_manager_password` varbinary(255) NOT NULL,
+ PRIMARY KEY (`service_manager_username`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_PROXY`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_PROXY` (
+ `port_mirror_service_uuid` varchar(255) NOT NULL,
+ `service_proxy_name` varchar(255) NOT NULL,
+ `source_service_uuid` varchar(255) NOT NULL,
+ `resources_vendor` varchar(255) DEFAULT NULL,
+ `resource_vendor_release` varchar(255) DEFAULT NULL,
+ `description` varchar(255) DEFAULT NULL,
+ `category` varchar(255) DEFAULT NULL,
+ `subcategory` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `role` varchar(255) NOT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `customization_uuid` varchar(255) DEFAULT NULL,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`port_mirror_service_uuid`,`service_proxy_name`),
+ KEY `FK_SERVICE_PROXY_SOURCE_TO_SERVICE_MODE` (`source_service_uuid`),
+ CONSTRAINT `FK_SERVICE_PROXY_MIRROR_TO_SERVICE_MODE` FOREIGN KEY (`port_mirror_service_uuid`) REFERENCES `SERVICE_MODEL` (`service_uuid`) ON DELETE CASCADE ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_RESOURCE`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_RESOURCE` (
+ `service_resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `service_status` enum('Active','Pending') NOT NULL,
+ `service_change_number` smallint(6) NOT NULL,
+ `resource_set_id` varchar(100) NOT NULL,
+ `resource_union_id` varchar(100) NOT NULL,
+ PRIMARY KEY (`service_instance_id`,`service_change_number`),
+ UNIQUE KEY `service_resource_id` (`service_resource_id`),
+ KEY `IX1_SERVICE_RESOURCE` (`service_instance_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=955 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_TYPE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_TYPE_MAPPING` (
+ `sdnc_service_type` varchar(128) NOT NULL,
+ `ncs_service_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`sdnc_service_type`,`ncs_service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SUBNETPOOL_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `SUBNETPOOL_MAPPING` (
+ `aic_cloud_region` varchar(16) NOT NULL,
+ `ntc` varchar(32) NOT NULL,
+ `lcp` varchar(32) NOT NULL,
+ `aic_region_id` varchar(255) NOT NULL,
+ PRIMARY KEY (`aic_cloud_region`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SUPPORTED_SEQUENCE_NUMBER`
+--
+
+CREATE TABLE IF NOT EXISTS `SUPPORTED_SEQUENCE_NUMBER` (
+ `resource_sequence_number` varchar(10) NOT NULL,
+ `resource_type` varchar(10) NOT NULL,
+ PRIMARY KEY (`resource_sequence_number`,`resource_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SVC_LOGIC`
+--
+
+CREATE TABLE IF NOT EXISTS `SVC_LOGIC` (
+ `module` varchar(80) NOT NULL,
+ `rpc` varchar(80) NOT NULL,
+ `version` varchar(40) NOT NULL,
+ `mode` varchar(5) NOT NULL,
+ `active` varchar(1) NOT NULL,
+ `graph` longblob,
+ `modified_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `md5sum` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`module`,`rpc`,`version`,`mode`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TABLE_CLEANUP_CONFIGURATION`
+--
+
+CREATE TABLE IF NOT EXISTS `TABLE_CLEANUP_CONFIGURATION` (
+ `table_name` varchar(255) NOT NULL COMMENT 'The name of the table the cleanup will be performed on',
+ `days_old` int(11) NOT NULL COMMENT 'Records older than the current date minus DAYS_OLD will be deleted',
+ `date_column` varchar(255) NOT NULL COMMENT 'The name of the column containing the date to be checked',
+ `commit_interval` int(11) NOT NULL DEFAULT '2500' COMMENT 'The maximum number of rows a commit may contain',
+ `query_clause` varchar(1000) DEFAULT NULL COMMENT 'An optional additional query clause to further restrict deletion criteria',
+ `child_table_name` varchar(255) DEFAULT NULL,
+ `child_table_pk` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`table_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table will be used by the table clean-up script, tableCleanup.sh, to drive what tables should be purged and what the purge criteria are.';
+
+--
+-- Table structure for table `TASK_TEMPLATE`
+--
+
+CREATE TABLE IF NOT EXISTS `TASK_TEMPLATE` (
+ `task_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_type` varchar(20) DEFAULT NULL,
+ `task_name` varchar(30) NOT NULL,
+ `task_category` varchar(50) NOT NULL,
+ `ecomp_task` varchar(50) NOT NULL,
+ `initial_load` varchar(1) NOT NULL,
+ `service` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`task_template_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TENANT`
+--
+
+CREATE TABLE IF NOT EXISTS `TENANT` (
+ `tenant_id` varchar(255) NOT NULL,
+ `tenant_name` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ PRIMARY KEY (`tenant_id`,`tenant_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TESTTBL`
+--
+
+CREATE TABLE IF NOT EXISTS `TESTTBL` (
+ `pk` varchar(25) NOT NULL,
+ `col1` varchar(25) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `THRESHOLD_NOTIFICATION`
+--
+
+CREATE TABLE IF NOT EXISTS `THRESHOLD_NOTIFICATION` (
+ `resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `threshold_expression` varchar(2000) DEFAULT NULL,
+ `threshold_message` varchar(500) DEFAULT NULL,
+ PRIMARY KEY (`resource_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TMP_AIC_AVAIL_ZONE_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `TMP_AIC_AVAIL_ZONE_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `token` int(4) NOT NULL,
+ `vnf_id` varchar(80) DEFAULT NULL,
+ `service_type` varchar(100) NOT NULL,
+ `vnf_type` varchar(20) DEFAULT NULL,
+ `hypervisor` varchar(10) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`token`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_PARAMETER` (
+ `parameter_id` int(11) NOT NULL,
+ `parameter_name` varchar(20) NOT NULL,
+ `parameter_set` int(11) NOT NULL,
+ `create_update_time` datetime NOT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ PRIMARY KEY (`parameter_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER_ENTRIES`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_PARAMETER_ENTRIES` (
+ `parameter_entry_id` int(11) NOT NULL,
+ `parameter_name` varchar(255) NOT NULL,
+ `parameter_value` varchar(64) NOT NULL,
+ `create_update_time` datetime NOT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ PRIMARY KEY (`parameter_entry_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER_TO_ENTRIES`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_PARAMETER_TO_ENTRIES` (
+ `parameter_id` int(11) DEFAULT NULL,
+ `parameter_entry_id` int(11) DEFAULT NULL,
+ `entry_order` int(11) DEFAULT NULL,
+ `create_update_time` datetime DEFAULT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ KEY `FK1_TOPOLOGY_PARAMETER_TO_ENTRIES` (`parameter_id`),
+ KEY `FK2_TOPOLOGY_PARAMETER_TO_ENTRIES` (`parameter_entry_id`),
+ CONSTRAINT `FK1_TOPOLOGY_PARAMETER_TO_ENTRIES` FOREIGN KEY (`parameter_id`) REFERENCES `TOPOLOGY_PARAMETER` (`parameter_id`),
+ CONSTRAINT `FK2_TOPOLOGY_PARAMETER_TO_ENTRIES` FOREIGN KEY (`parameter_entry_id`) REFERENCES `TOPOLOGY_PARAMETER_ENTRIES` (`parameter_entry_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE` (
+ `interface_name` varchar(255) NOT NULL,
+ `interface_id` varchar(255) NOT NULL,
+ `pnf_name` varchar(255) NOT NULL,
+ `pnf_id` varchar(255) NOT NULL,
+ `controller_id` varchar(255) DEFAULT NULL,
+ `rate` varchar(255) DEFAULT NULL,
+ `clli` varchar(255) DEFAULT NULL,
+ `connection_point` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`interface_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TRANSACTION_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `TRANSACTION_LOG` (
+ `serial_key` int(10) NOT NULL AUTO_INCREMENT,
+ `log_time` varchar(40) NOT NULL,
+ `request_id` varchar(80) DEFAULT NULL,
+ `svc_request_id` varchar(80) DEFAULT NULL,
+ `x_ecomp_request_id` varchar(80) DEFAULT NULL,
+ `graph_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`)
+) ENGINE=InnoDB AUTO_INCREMENT=249 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `UPLOAD_CONFIG`
+--
+
+CREATE TABLE IF NOT EXISTS `UPLOAD_CONFIG` (
+ `upload_config_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` varchar(50) DEFAULT NULL,
+ `originator_id` varchar(50) DEFAULT NULL,
+ `service_description` varchar(100) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `upload_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `host_ip_address` varchar(50) DEFAULT NULL,
+ `config_indicator` varchar(25) DEFAULT NULL,
+ `pending_delete` varchar(1) DEFAULT NULL,
+ `content` longtext,
+ PRIMARY KEY (`upload_config_id`),
+ UNIQUE KEY `upload_config_id` (`upload_config_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `USED_SEQUENCE_NUMBER`
+--
+
+CREATE TABLE IF NOT EXISTS `USED_SEQUENCE_NUMBER` (
+ `resource_sequence_number` varchar(10) NOT NULL,
+ `resource_type` varchar(10) NOT NULL,
+ `zone_region_id` varchar(50) NOT NULL,
+ PRIMARY KEY (`resource_sequence_number`,`resource_type`,`zone_region_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `USER_TRACE`
+--
+
+CREATE TABLE IF NOT EXISTS `USER_TRACE` (
+ `user_trace_seq` int(11) NOT NULL AUTO_INCREMENT,
+ `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `identity` varchar(12) DEFAULT NULL,
+ `action` varchar(128) DEFAULT NULL,
+ `description` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`user_trace_seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=392 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VENDOR_CODE`
+--
+
+CREATE TABLE IF NOT EXISTS `VENDOR_CODE` (
+ `vendor_code` varchar(1) NOT NULL,
+ `vendor` varchar(45) NOT NULL DEFAULT '',
+ PRIMARY KEY (`vendor_code`,`vendor`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VFC_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `VFC_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `nfc_function` varchar(255) DEFAULT NULL,
+ `nfc_naming_code` varchar(255) DEFAULT NULL,
+ `vm_type` varchar(255) DEFAULT NULL,
+ `vm_type_tag` varchar(255) DEFAULT NULL,
+ `vm_image_name` varchar(255) DEFAULT NULL,
+ `vm_flavor_name` varchar(255) DEFAULT NULL,
+ `high_availability` varchar(255) DEFAULT NULL,
+ `nfc_naming` varchar(255) DEFAULT NULL,
+ `min_instances` int(11) DEFAULT NULL,
+ `max_instances` int(11) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VFC_TO_NETWORK_ROLE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VFC_TO_NETWORK_ROLE_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `vm_type` varchar(255) DEFAULT NULL,
+ `network_role_tag` varchar(255) DEFAULT NULL,
+ `ipv4_count` int(11) NOT NULL,
+ `ipv6_count` int(11) NOT NULL,
+ `ipv4_use_dhcp` char(1) DEFAULT NULL,
+ `ipv6_use_dhcp` char(1) DEFAULT NULL,
+ `ipv4_ip_version` char(1) DEFAULT NULL,
+ `ipv6_ip_version` char(1) DEFAULT NULL,
+ `extcp_subnetpool_id` varchar(512) DEFAULT NULL,
+ `ipv4_floating_count` int(11) DEFAULT NULL,
+ `ipv6_floating_count` int(11) DEFAULT NULL,
+ `ipv4_address_plan_name` varchar(512) DEFAULT NULL,
+ `ipv6_address_plan_name` varchar(512) DEFAULT NULL,
+ `ipv4_vrf_name` varchar(512) DEFAULT NULL,
+ `ipv6_vrf_name` varchar(512) DEFAULT NULL,
+ `subnet_role` varchar(255) DEFAULT NULL,
+ `subinterface_indicator` char(1) DEFAULT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VFC_TO_NETWORK_ROLE_MAPPING` (`vfc_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=1791 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `avail_zone_max_count` int(11) DEFAULT NULL,
+ `nf_function` varchar(255) DEFAULT NULL,
+ `nf_code` varchar(255) DEFAULT NULL,
+ `nf_type` varchar(255) DEFAULT NULL,
+ `nf_role` varchar(255) DEFAULT NULL,
+ `vendor` varchar(255) DEFAULT NULL,
+ `vendor_version` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODULE_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_MODULE_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `vf_module_type` varchar(255) DEFAULT NULL,
+ `availability_zone_count` int(11) DEFAULT NULL,
+ `ecomp_generated_vm_assignments` char(1) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODULE_TO_VFC_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_MODULE_TO_VFC_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vf_module_customization_uuid` varchar(255) NOT NULL,
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `vm_type` varchar(255) NOT NULL,
+ `vm_count` int(11) NOT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VF_MODULE_TO_VFC_MAPPING` (`vf_module_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=1591 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_TO_NETWORK_ROLE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_TO_NETWORK_ROLE_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vf_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VF_TO_NETWORK_ROLE_MAPPING` (`vf_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=348 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VIPR_CONFIGURATION`
+--
+
+CREATE TABLE IF NOT EXISTS `VIPR_CONFIGURATION` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `serial_number` varchar(255) DEFAULT NULL,
+ `vnf_id` varchar(255) DEFAULT NULL,
+ `vnf_name` varchar(255) DEFAULT NULL,
+ `ecomp_service_instance_id` varchar(255) DEFAULT NULL,
+ `vm_name` varchar(255) DEFAULT NULL,
+ `cloud_region_id` varchar(255) DEFAULT NULL,
+ `cloud_owner` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VIPR_SZ_MANAGER_KEY`
+--
+
+CREATE TABLE IF NOT EXISTS `VIPR_SZ_MANAGER_KEY` (
+ `vipr_sz_manager_ip_addr` varchar(40) NOT NULL,
+ `vipr_sz_manager_state` varchar(10) DEFAULT NULL,
+ `vipr_sz_manager_api_key` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vipr_sz_manager_ip_addr`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_ID_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_ID_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `svc_instance_id` varchar(80) DEFAULT NULL,
+ `availability_zone` varchar(100) DEFAULT NULL,
+ `vplspe_name` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`vlan_id`,`aic_site_id`,`purpose`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_L3INTERFACE_IPV4_ADDRESS`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_L3INTERFACE_IPV4_ADDRESS` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `l3_interface_ipv4_address` varchar(64) NOT NULL,
+ `l3_interface_ipv4_prefix_length` varchar(45) DEFAULT NULL,
+ `vlan_id_inner` varchar(45) DEFAULT NULL,
+ `vlan_id_outer` varchar(45) DEFAULT NULL,
+ `is_floating` varchar(1) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`,`l3_interface_ipv4_address`),
+ KEY `FK_VLAN_L3INTERFACE_IPV4_ADDRESS_LINTERFACE_VLAN_IDX` (`vnf_id`,`interface_name`),
+ CONSTRAINT `FK_VLAN_L3INTERFACE_IPV4_ADDRESS_LINTERFACE_VLAN` FOREIGN KEY (`vnf_id`, `interface_name`, `vlan_interface`) REFERENCES `LINTERFACE_VLAN` (`vnf_id`, `interface_name`, `vlan_interface`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_L3INTERFACE_IPV6_ADDRESS`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_L3INTERFACE_IPV6_ADDRESS` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `l3_interface_ipv6_address` varchar(64) NOT NULL,
+ `l3_interface_ipv6_prefix_length` varchar(45) DEFAULT NULL,
+ `vlan_id_inner` varchar(45) DEFAULT NULL,
+ `vlan_id_outer` varchar(45) DEFAULT NULL,
+ `is_floating` varchar(1) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`,`l3_interface_ipv6_address`),
+ KEY `FK_VLAN_L3INTERFACE_IPV6_ADDRESS_LINTERFACE_VLAN_IDX` (`vnf_id`,`interface_name`,`vlan_interface`),
+ CONSTRAINT `FK_VLAN_L3INTERFACE_IPV6_ADDRESS_LINTERFACE_VLAN` FOREIGN KEY (`vnf_id`, `interface_name`, `vlan_interface`) REFERENCES `LINTERFACE_VLAN` (`vnf_id`, `interface_name`, `vlan_interface`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_PLAN_ID`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_PLAN_ID` (
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `vlan_plan_id_count` int(4) NOT NULL,
+ PRIMARY KEY (`vlan_plan_id_count`,`plan_type`,`purpose`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `vlan_plan_id` varchar(100) NOT NULL,
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `reserved_id` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`vlan_plan_id`,`plan_type`,`purpose`,`vlan_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_RANGES`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_RANGES` (
+ `vlan_plan_id` varchar(100) NOT NULL,
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `range_start` int(4) NOT NULL,
+ `range_end` int(4) NOT NULL,
+ `generated` char(1) DEFAULT NULL,
+ PRIMARY KEY (`vlan_plan_id`,`plan_type`,`purpose`,`range_start`,`range_end`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `VM_NAME_INDEX` (
+ `vm_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vm_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_NETWORKS`
+--
+
+CREATE TABLE IF NOT EXISTS `VM_NETWORKS` (
+ `vnf_type` varchar(200) NOT NULL,
+ `vm_type` varchar(45) NOT NULL,
+ `network_role` varchar(45) NOT NULL,
+ `assign_ips` tinyint(1) NOT NULL,
+ `assign_macs` tinyint(1) NOT NULL,
+ `assign_floating_ip` tinyint(1) NOT NULL,
+ `ip_count` int(11) DEFAULT NULL,
+ PRIMARY KEY (`vnf_type`,`vm_type`,`network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_PROFILE`
+--
+
+CREATE TABLE IF NOT EXISTS `VM_PROFILE` (
+ `vnf_type` varchar(200) NOT NULL,
+ `vm_type` varchar(45) NOT NULL,
+ `vm_count` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_type`,`vm_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vnf_name` varchar(80) NOT NULL,
+ `vnf_type` varchar(10) NOT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `availability_zone` varchar(80) DEFAULT NULL,
+ `aic_site_id` varchar(80) DEFAULT NULL,
+ `oam_ipv4_address` varchar(20) DEFAULT NULL,
+ `vnf_name2` varchar(80) DEFAULT NULL,
+ `vpe_id` varchar(80) NOT NULL,
+ `ipv4_loopback0_address` varchar(80) DEFAULT NULL,
+ `license_key` varchar(256) DEFAULT NULL,
+ `entitlement_resource_uuid` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNFC_DG_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VNFC_DG_MAPPING` (
+ `vnfc_dg_mapping_id` int(11) NOT NULL AUTO_INCREMENT,
+ `action` varchar(50) DEFAULT NULL,
+ `api_version` varchar(10) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `dg_name` varchar(50) NOT NULL,
+ `dg_version` varchar(50) DEFAULT NULL,
+ `dg_module` varchar(50) NOT NULL,
+ PRIMARY KEY (`vnfc_dg_mapping_id`),
+ UNIQUE KEY `input_constraint` (`action`,`api_version`,`vnf_type`,`vnfc_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNFC_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `VNFC_REFERENCE` (
+ `vnfc_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `action` varchar(50) NOT NULL,
+ `vnf_type` varchar(50) NOT NULL,
+ `vm_instance` int(11) NOT NULL,
+ `vnfc_instance` int(11) NOT NULL,
+ `vnfc_type` varchar(50) NOT NULL,
+ `vnfc_function_code` varchar(50) NOT NULL,
+ `ipaddress_v4_oam_vip` varchar(50) DEFAULT NULL,
+ `group_notation_type` varchar(50) DEFAULT NULL,
+ `group_notation_value` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`vnfc_reference_id`),
+ UNIQUE KEY `vnfc_reference_id` (`vnfc_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_IMAGE`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_IMAGE` (
+ `application_vendor` varchar(255) NOT NULL,
+ `application_version` varchar(255) NOT NULL,
+ `att_uuid` varchar(255) NOT NULL,
+ `application` varchar(255) DEFAULT NULL,
+ `selflink` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`application_vendor`,`application_version`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_MODEL_LICENSES`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_MODEL_LICENSES` (
+ `att_part_number` varchar(255) NOT NULL,
+ `license_assignment_group` varchar(255) NOT NULL,
+ `license_required` tinyint(1) DEFAULT NULL,
+ `entitlement_assignment_group` varchar(255) DEFAULT NULL,
+ `entitlement_required` tinyint(1) DEFAULT '0',
+ `feature_group_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`att_part_number`,`license_assignment_group`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_MODEL_LICENSE_FEATURES`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_MODEL_LICENSE_FEATURES` (
+ `att_part_number` varchar(255) NOT NULL,
+ `license_assignment_group` varchar(255) NOT NULL,
+ `feature` varchar(255) NOT NULL,
+ PRIMARY KEY (`att_part_number`,`license_assignment_group`,`feature`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NAME_INDEX` (
+ `vnf_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORKS`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NETWORKS` (
+ `vnf_type` varchar(200) NOT NULL,
+ `network_role` varchar(45) NOT NULL,
+ PRIMARY KEY (`vnf_type`,`network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORK_CONNECTION`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NETWORK_CONNECTION` (
+ `connection_uuid` varchar(80) NOT NULL,
+ `vnf_id` varchar(80) NOT NULL,
+ `connection_id` varchar(80) DEFAULT NULL,
+ `connection_type` varchar(20) DEFAULT NULL,
+ `neutron_network_id` varchar(80) DEFAULT NULL,
+ `neutron_network_name` varchar(80) DEFAULT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `switch_id` varchar(40) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `provider_network` varchar(80) DEFAULT NULL,
+ `port_group_id` varchar(80) DEFAULT NULL,
+ `port_group_name` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`connection_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORK_CONNECTION_VLAN`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NETWORK_CONNECTION_VLAN` (
+ `vlan_uuid` varchar(80) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `vlan_type` varchar(5) NOT NULL,
+ `connection_uuid` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`vlan_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_PROFILE`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_PROFILE` (
+ `vnf_type` varchar(200) NOT NULL,
+ `availability_zone_count` int(11) NOT NULL,
+ `equipment_role` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_SERVICE_TO_NETWORK_ROLE_FILTER`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_SERVICE_TO_NETWORK_ROLE_FILTER` (
+ `vnf_service_type` varchar(60) NOT NULL,
+ `network_role_filter` varchar(60) NOT NULL,
+ PRIMARY KEY (`vnf_service_type`,`network_role_filter`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_LOCK`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_LOCK` (
+ `vpe_name` varchar(20) NOT NULL,
+ `vpn_lock` varchar(20) NOT NULL,
+ PRIMARY KEY (`vpe_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_MAC_ADDRESS_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_MAC_ADDRESS_POOL` (
+ `id` int(11) NOT NULL,
+ `mac_address` varchar(50) NOT NULL,
+ `sw_name` varchar(30) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_MAC_ADDRESS_TO_HOSTNAME_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_MAC_ADDRESS_TO_HOSTNAME_MAPPING` (
+ `id` int(11) NOT NULL,
+ `hostname` varchar(50) NOT NULL,
+ `assigned_user` varchar(25) NOT NULL,
+ `assigned_date` date DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_POOL` (
+ `vpe_name` varchar(20) NOT NULL,
+ `ipv4_oam_address` varchar(20) NOT NULL,
+ `loopback0_ipv4_address` varchar(20) NOT NULL,
+ `provisioning_status` varchar(10) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `vlan_id_outer` varchar(20) NOT NULL,
+ `vendor` varchar(20) NOT NULL,
+ `physical_intf_name` varchar(40) NOT NULL,
+ `physical_intf_speed` varchar(20) NOT NULL,
+ `physical_intf_units` varchar(20) NOT NULL,
+ `vpe_uuid` varchar(80) DEFAULT NULL,
+ `vpe_id` varchar(80) NOT NULL,
+ `image_filename` varchar(100) DEFAULT NULL,
+ `as_number` varchar(20) NOT NULL,
+ `loopback5000` varchar(16) DEFAULT NULL,
+ `loopback10` varchar(16) DEFAULT NULL,
+ `aic_version` varchar(50) DEFAULT NULL,
+ `vpe_capacity` int(11) NOT NULL,
+ PRIMARY KEY (`aic_site_id`,`vpe_name`,`availability_zone`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPLSPE_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VPLSPE_POOL` (
+ `vplspe_name` varchar(20) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `physical_intf_name` varchar(40) NOT NULL,
+ `physical_intf_speed` varchar(20) NOT NULL,
+ `physical_intf_units` varchar(20) NOT NULL,
+ `loopback0_ipv4_address` varchar(20) NOT NULL,
+ `vlan_id_outer` varchar(20) NOT NULL,
+ `vplspe_uuid` varchar(80) DEFAULT NULL,
+ `image_filename` varchar(100) DEFAULT NULL,
+ `provisioning_status` varchar(10) DEFAULT NULL,
+ `vendor` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`vplspe_name`,`aic_site_id`,`availability_zone`,`physical_intf_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPN_BINDINGS`
+--
+
+CREATE TABLE IF NOT EXISTS `VPN_BINDINGS` (
+ `network_customization_uuid` varchar(255) NOT NULL,
+ `binding_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_customization_uuid`,`binding_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VRR_FUNCTION_CODE_VMTYPE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VRR_FUNCTION_CODE_VMTYPE_MAPPING` (
+ `ptnii_function_code` varchar(128) NOT NULL,
+ `vm_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`ptnii_function_code`,`vm_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `VSERVER` (
+ `tenant_id` varchar(40) NOT NULL,
+ `vserver_id` varchar(40) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `vendor` varchar(20) NOT NULL,
+ `image_name` varchar(100) NOT NULL,
+ `vnf_type` varchar(10) NOT NULL,
+ `vnf_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`tenant_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER2`
+--
+
+CREATE TABLE IF NOT EXISTS `VSERVER2` (
+ `tenant_id` varchar(255) NOT NULL,
+ `vserver_id` varchar(128) NOT NULL,
+ `vserver_name` varchar(255) NOT NULL,
+ `vserver_name2` varchar(255) DEFAULT NULL,
+ `prov_status` varchar(20) DEFAULT NULL,
+ `selflink` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`tenant_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER_PSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `VSERVER_PSERVER` (
+ `vserver_id` varchar(128) NOT NULL,
+ `pserver_hostname` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VVIG_VM_INSTANCE_TO_CLOUD_REGION_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VVIG_VM_INSTANCE_TO_CLOUD_REGION_MAPPING` (
+ `key_id` varchar(128) NOT NULL,
+ `cloud_region` varchar(128) NOT NULL,
+ `key_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`key_id`,`cloud_region`,`key_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `WAN_COMBO_ALLOWABLE`
+--
+
+CREATE TABLE IF NOT EXISTS `WAN_COMBO_ALLOWABLE` (
+ `combo_sequence` int(11) NOT NULL AUTO_INCREMENT,
+ `topology` varchar(16) DEFAULT 'unknown',
+ `internet_topology` varchar(20) DEFAULT NULL,
+ `wan1` varchar(40) DEFAULT NULL,
+ `wan2` varchar(40) DEFAULT NULL,
+ `new_start_release_flexware` varchar(16) DEFAULT 'unknown',
+ `is_active_flexware` varchar(1) DEFAULT 'N',
+ `new_start_release_dhv` varchar(16) DEFAULT 'unknown',
+ `is_active_dhv` varchar(1) DEFAULT 'N',
+ `ucpe_type` varchar(32) DEFAULT 'stand-alone',
+ `description` varchar(128) NOT NULL,
+ PRIMARY KEY (`combo_sequence`),
+ UNIQUE KEY `IX1_WAN_COMBO_ALLOWABLE` (`internet_topology`,`wan1`,`wan2`)
+) ENGINE=InnoDB AUTO_INCREMENT=147 DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `DHCP_MAP` (
+ `mac_addr` varchar(128) NOT NULL,
+ `ip_addr` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`mac_addr`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_GROUP_TO_TARGET_NODE_MAPPING` (
+ `group_uuid` varchar(255) NOT NULL,
+ `parent_uuid` varchar(255) NOT NULL,
+ `target_node_uuid` varchar(255) NOT NULL,
+ `target_type` varchar(255) NULL,
+ `table_name` varchar(255) NULL,
+ PRIMARY KEY (`group_uuid`, `parent_uuid`, `target_node_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+
+CREATE TABLE IF NOT EXISTS `ATTRIBUTE_VALUE_PAIR` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `attribute_name` varchar(255) NOT NULL,
+ `resource_type` varchar(255) NOT NULL,
+ `attribute_value` varchar(255) DEFAULT NULL,
+ `resource_customization_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`attribute_name`,`resource_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `COMPLEX_RESOURCE` (
+ `uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) NOT NULL,
+ `customization_uuid` varchar(255) NOT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `description` varchar(255) DEFAULT NULL,
+ `type` varchar(255) NOT NULL,
+ PRIMARY KEY (`uuid`,`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `NODE_CAPABILITY` (
+ `capability_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_provider_uuid` varchar(255) NOT NULL,
+ `capability_provider_customization_uuid` varchar(255) NOT NULL,
+ `capability_name` varchar(255) DEFAULT NULL,
+ `capability_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`capability_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `NODE_REQUIREMENT` (
+ `requirement_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_id` int(11) DEFAULT NULL,
+ `capability_provider_uuid` varchar(255) DEFAULT NULL,
+ `capability_provider_customization_uuid` varchar(255) DEFAULT NULL,
+ `capability_consumer_uuid` varchar(255) NOT NULL,
+ `capability_consumer_customization_uuid` varchar(255) NOT NULL,
+ `requirement_name` varchar(255) NOT NULL,
+ PRIMARY KEY (`requirement_id`),
+ KEY `NODE_REQUIREMENT_TO_NODE_CAPABILITY` (`capability_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RELATED_NETWORK_ROLE` (
+ `network_model_customization_uuid` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_model_customization_uuid`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_GROUP` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `group_uuid` varchar(255) NOT NULL,
+ `group_customization_uuid` varchar(255) DEFAULT NULL,
+ `group_invariant_uuid` varchar(255) NOT NULL,
+ `group_name` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `group_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`group_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_POLICY` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `policy_uuid` varchar(255) NOT NULL,
+ `policy_customization_uuid` varchar(255) DEFAULT NULL,
+ `policy_invariant_uuid` varchar(255) NOT NULL,
+ `policy_name` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `policy_type` varchar(255) DEFAULT NULL,
+ `property_type` varchar(255) DEFAULT NULL,
+ `property_source` varchar(255) DEFAULT NULL,
+ `property_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`policy_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_POLICY_TO_TARGET_NODE_MAPPING` (
+ `policy_uuid` varchar(255) NOT NULL,
+ `parent_uuid` varchar(255) NOT NULL,
+ `target_node_uuid` varchar(255) NOT NULL,
+ `target_type` varchar(255) DEFAULT NULL,
+ `target_node_customization_uuid` varchar(255) DEFAULT NULL,
+ `policy_customization_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`policy_uuid`,`parent_uuid`,`target_node_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+CREATE TABLE IF NOT EXISTS `SERVICE_MODEL_TO_COMPLEX_RESOURCE_MAPPING` (
+ `service_uuid` varchar(255) NOT NULL,
+ `complex_resource_uuid` varchar(255) NOT NULL,
+ `complex_resource_customization_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`service_uuid`,`complex_resource_uuid`,`complex_resource_customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `VFC_RELATED_NETWORK_ROLE` (
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `vm_type` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`vfc_customization_uuid`,`vm_type`,`network_role`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `VNF_RELATED_NETWORK_ROLE` (
+ `vnf_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_customization_uuid`,`network_role`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
diff --git a/ms/sliboot/src/main/resources/schema-mysql.sql b/ms/sliboot/src/main/resources/schema-mysql.sql
new file mode 100644
index 00000000..a1a8b5a6
--- /dev/null
+++ b/ms/sliboot/src/main/resources/schema-mysql.sql
@@ -0,0 +1,2764 @@
+
+
+--
+-- Table structure for table `ACCESS_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `ACCESS_LOG` (
+ `access_log_seq` int(11) NOT NULL AUTO_INCREMENT,
+ `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `method` varchar(12) DEFAULT NULL,
+ `version` varchar(12) DEFAULT NULL,
+ `status` varchar(12) DEFAULT NULL,
+ `url` varchar(256) DEFAULT NULL,
+ `remote_address` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`access_log_seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=1034 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CUSTOMER`
+--
+
+
+CREATE TABLE IF NOT EXISTS `CUSTOMER` (
+ `cust_id` int(11) NOT NULL AUTO_INCREMENT,
+ `customer_name` varchar(256) DEFAULT NULL,
+ `grua` varchar(4) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`cust_id`),
+ UNIQUE KEY `IU1_CUSTOMER` (`customer_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=155 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `ADDRESS_PLAN_POLICIES`
+--
+
+CREATE TABLE IF NOT EXISTS `ADDRESS_PLAN_POLICIES` (
+ `key_name` varchar(255) NOT NULL,
+ `key_value_source_type` varchar(255) NOT NULL,
+ `key_value_source` varchar(255) NOT NULL,
+ PRIMARY KEY (`key_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AGNOSTIC_NOTIFICATION_URL`
+--
+
+CREATE TABLE IF NOT EXISTS `AGNOSTIC_NOTIFICATION_URL` (
+ `service_type` varchar(128) NOT NULL,
+ `service_instance_id` varchar(128) NOT NULL,
+ `request_id` varchar(128) NOT NULL,
+ `svc_notification_url` varchar(256) NOT NULL,
+ PRIMARY KEY (`service_type`,`service_instance_id`,`request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `AGNOSTIC_TO_SVC_SPCFC_API`
+--
+CREATE TABLE IF NOT EXISTS `AGNOSTIC_TO_SVC_SPCFC_API` (
+ `operation` varchar(128) NOT NULL,
+ `service` varchar(128) NOT NULL,
+ `service_specific_api` varchar(128) NOT NULL,
+ `async_process` varchar(15) DEFAULT NULL,
+ PRIMARY KEY (`operation`,`service`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_AVAIL_ZONE_POOL`
+--
+CREATE TABLE IF NOT EXISTS `AIC_AVAIL_ZONE_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `token` varchar(5) NOT NULL,
+ `vnf_id` varchar(80) DEFAULT NULL,
+ `service_type` varchar(100) NOT NULL,
+ `vnf_type` varchar(20) DEFAULT NULL,
+ `hypervisor` varchar(10) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`token`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_HOSTNAME`
+--
+CREATE TABLE IF NOT EXISTS `AIC_HOSTNAME` (
+ `hostname` varchar(20) NOT NULL,
+ `cust_id` int(11) NOT NULL,
+ `vendor_code` varchar(1) NOT NULL,
+ `virtual_device_type` varchar(2) DEFAULT NULL,
+ `device_sequence` varchar(3) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`hostname`),
+ UNIQUE KEY `hostname` (`hostname`),
+ KEY `IN1_AIC_HOSTNAME` (`cust_id`),
+ CONSTRAINT `AC1_HOSTNAME` FOREIGN KEY (`cust_id`) REFERENCES `CUSTOMER` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_NETWORK`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_NETWORK` (
+ `network_id` varchar(100) NOT NULL,
+ `network_name` varchar(100) DEFAULT NULL,
+ `status` varchar(20) DEFAULT NULL,
+ `tenant_id` varchar(100) DEFAULT NULL,
+ `switch_uuid` varchar(100) DEFAULT NULL,
+ `portgroup_name` varchar(100) DEFAULT NULL,
+ `portgroup_id` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_SITE`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_SITE` (
+ `name` varchar(100) DEFAULT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `vcenter_url` varchar(200) DEFAULT NULL,
+ `vcenter_username` varchar(40) DEFAULT NULL,
+ `vcenter_passwd` varbinary(255) DEFAULT NULL,
+ `city` varchar(100) DEFAULT NULL,
+ `state` varchar(2) DEFAULT NULL,
+ `operational_status` varchar(20) DEFAULT NULL,
+ `oam_gateway_addr` varchar(20) DEFAULT '',
+ PRIMARY KEY (`aic_site_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_SWITCH`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_SWITCH` (
+ `switch_name` varchar(100) DEFAULT NULL,
+ `physical_network_name` varchar(100) NOT NULL,
+ `aic_site_id` varchar(100) DEFAULT NULL,
+ `uuid` varchar(100) DEFAULT NULL,
+ `availability_zone` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`physical_network_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `AIC_ZONE_CLOUD_REGION_ID`
+--
+
+CREATE TABLE IF NOT EXISTS `AIC_ZONE_CLOUD_REGION_ID` (
+ `zone_region_id` varchar(255) NOT NULL,
+ `cilli_code` varchar(255) NOT NULL,
+ `location_id` varchar(255) NOT NULL DEFAULT '',
+ `city_state_country` varchar(255) NOT NULL DEFAULT '',
+ PRIMARY KEY (`zone_region_id`,`cilli_code`,`location_id`,`city_state_country`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALLOCATION_ITEM`
+--
+
+CREATE TABLE IF NOT EXISTS `ALLOCATION_ITEM` (
+ `allocation_item_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_id` bigint(20) NOT NULL,
+ `application_id` varchar(50) NOT NULL,
+ `resource_set_id` varchar(200) NOT NULL,
+ `resource_union_id` varchar(200) NOT NULL,
+ `resource_share_group_list` varchar(200) DEFAULT NULL,
+ `lt_used` bigint(20) DEFAULT NULL,
+ `ll_label` varchar(50) DEFAULT NULL,
+ `rr_used` varchar(200) DEFAULT NULL,
+ `allocation_time` datetime NOT NULL,
+ PRIMARY KEY (`allocation_item_id`),
+ UNIQUE KEY `allocation_item_id` (`allocation_item_id`),
+ UNIQUE KEY `IX2_ALLOCATION_ITEM` (`resource_id`,`resource_set_id`),
+ KEY `IX1_ALLOCATION_ITEM` (`resource_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=5764 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALLOTTED_RESOURCE_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `ALLOTTED_RESOURCE_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `depending_service` varchar(255) DEFAULT NULL,
+ `role` varchar(255) DEFAULT NULL,
+ `type` varchar(255) DEFAULT NULL,
+ `service_dependency` varchar(255) DEFAULT NULL,
+ `allotted_resource_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ALTS_CREDENTIALS`
+--
+
+CREATE TABLE IF NOT EXISTS `ALTS_CREDENTIALS` (
+ `alts_username` varchar(255) NOT NULL,
+ `alts_password` varbinary(255) NOT NULL,
+ PRIMARY KEY (`alts_username`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ASDC_ARTIFACTS`
+--
+
+CREATE TABLE IF NOT EXISTS `ASDC_ARTIFACTS` (
+ `asdc_artifacts_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_uuid` varchar(50) DEFAULT NULL,
+ `distribution_id` varchar(50) DEFAULT NULL,
+ `service_name` varchar(255) DEFAULT NULL,
+ `service_description` varchar(255) DEFAULT NULL,
+ `resource_uuid` varchar(255) DEFAULT NULL,
+ `resource_instance_name` varchar(255) DEFAULT NULL,
+ `resource_name` varchar(255) DEFAULT NULL,
+ `resource_version` varchar(50) DEFAULT NULL,
+ `resource_type` varchar(50) DEFAULT NULL,
+ `artifact_uuid` varchar(50) DEFAULT NULL,
+ `artifact_type` varchar(50) DEFAULT NULL,
+ `artifact_version` varchar(25) DEFAULT NULL,
+ `artifact_description` varchar(255) DEFAULT NULL,
+ `internal_version` int(11) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `artifact_name` varchar(255) DEFAULT NULL,
+ `artifact_content` longtext,
+ PRIMARY KEY (`asdc_artifacts_id`),
+ UNIQUE KEY `asdc_artifacts_id` (`asdc_artifacts_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ASDC_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `ASDC_REFERENCE` (
+ `asdc_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_type` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `file_category` varchar(50) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `artifact_type` varchar(50) DEFAULT NULL,
+ `artifact_name` varchar(255) NOT NULL,
+ PRIMARY KEY (`asdc_reference_id`),
+ UNIQUE KEY `asdc_reference_id` (`asdc_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `BLOB_TEST`
+--
+
+CREATE TABLE IF NOT EXISTS `BLOB_TEST` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `odl` varchar(20) DEFAULT NULL,
+ `communities` mediumblob,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `retry_count` int(11) DEFAULT '-1',
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CAPABILITY`
+--
+
+CREATE TABLE IF NOT EXISTS `CAPABILITY` (
+ `capability_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_name` varchar(50) NOT NULL,
+ `implementation_name` varchar(100) NOT NULL,
+ `operation_name` varchar(50) NOT NULL,
+ `operation_description` varchar(100) NOT NULL,
+ `input_definition` longtext,
+ `output_definition` longtext,
+ `dependency_definition` longtext,
+ `tags` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`capability_id`),
+ UNIQUE KEY `capability_id` (`capability_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CITY_CODE`
+--
+
+CREATE TABLE IF NOT EXISTS `CITY_CODE` (
+ `city_code_id` int(11) NOT NULL AUTO_INCREMENT,
+ `city_code` varchar(3) NOT NULL,
+ `city` varchar(150) NOT NULL,
+ `state` varchar(10) NOT NULL,
+ `country_code` varchar(10) NOT NULL,
+ PRIMARY KEY (`city_code_id`),
+ KEY `IN1_CITY_CODE` (`city`,`state`,`country_code`)
+) ENGINE=InnoDB AUTO_INCREMENT=37822 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CLI_UPDATES`
+--
+
+CREATE TABLE IF NOT EXISTS `CLI_UPDATES` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `create_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+ `last_processed_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `target_address` varchar(128) DEFAULT NULL,
+ `cli_text` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIGFILES`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIGFILES` (
+ `config_file_id` int(11) NOT NULL AUTO_INCREMENT,
+ `external_version` varchar(50) DEFAULT NULL,
+ `data_source` varchar(25) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `file_category` varchar(50) DEFAULT NULL,
+ `file_name` varchar(255) DEFAULT NULL,
+ `file_content` longtext,
+ `action` varchar(50) DEFAULT NULL,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`config_file_id`),
+ UNIQUE KEY `config_file_id` (`config_file_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIGURE_ACTION_DG`
+--
+
+
+CREATE TABLE IF NOT EXISTS `CONFIGURE_ACTION_DG` (
+ `configure_action_dg_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `init_config_dg` varchar(50) DEFAULT NULL,
+ `generate_config_dg` varchar(50) DEFAULT NULL,
+ `download_config_dg` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`configure_action_dg_id`),
+ UNIQUE KEY `configure_action_dg_id` (`configure_action_dg_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `CONFIG_CONTENT`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIG_CONTENT` (
+ `config_content_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` varchar(50) NOT NULL,
+ `content_type` varchar(50) NOT NULL,
+ `template_name` varchar(50) DEFAULT NULL,
+ `originator_id` varchar(50) DEFAULT NULL,
+ `service_description` varchar(100) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `service_type` varchar(50) DEFAULT NULL,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `host_ip_address` varchar(50) DEFAULT NULL,
+ `config_indicator` varchar(25) DEFAULT NULL,
+ `pending_delete` varchar(1) DEFAULT NULL,
+ `content` longtext,
+ PRIMARY KEY (`config_content_id`),
+ UNIQUE KEY `config_content_id` (`creation_date`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `CONFIG_FILE_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIG_FILE_REFERENCE` (
+ `config_file_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `site_location` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `import_type` varchar(50) DEFAULT NULL,
+ `file_type` varchar(50) DEFAULT NULL,
+ `source_server_name` varchar(255) DEFAULT NULL,
+ `source_file_path` varchar(255) DEFAULT NULL,
+ `target_file_path` varchar(255) DEFAULT NULL,
+ `name` varchar(50) DEFAULT NULL,
+ `file_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`config_file_reference_id`),
+ UNIQUE KEY `config_file_reference_id` (`config_file_reference_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CONFIG_TRANSACTION_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `CONFIG_TRANSACTION_LOG` (
+ `config_transaction_log_id` varchar(50) NOT NULL,
+ `request_id` varchar(50) DEFAULT NULL,
+ `message_type` varchar(100) DEFAULT NULL,
+ `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `message` longtext,
+ PRIMARY KEY (`config_transaction_log_id`),
+ UNIQUE KEY `config_transaction_log_id` (`config_transaction_log_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `COUNTRY_ASN_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `COUNTRY_ASN_MAPPING` (
+ `asn` int(5) NOT NULL,
+ `iso_2char` varchar(5) NOT NULL,
+ `iso_3char` varchar(5) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+
+
+--
+-- Table structure for table `CUSTOMER2CONNECTION_MAPPING`
+--
+
+CREATE TABLE `CUSTOMER2CONNECTION_MAPPING` (
+ `customer2connection_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `service_type` varchar(30) DEFAULT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ `status` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`customer2connection_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `CUSTOMER2CONNECTION_MAPPING_NEW`
+--
+
+CREATE TABLE IF NOT EXISTS `CUSTOMER2CONNECTION_MAPPING_NEW` (
+ `customer2connection_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `service_type` varchar(30) DEFAULT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ `status` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`customer2connection_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DATA_OBJECT_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `DATA_OBJECT_MAPPING` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `data_object_key` varchar(100) NOT NULL,
+ `data_object_type` varchar(50) NOT NULL,
+ `service_type` varchar(50) NOT NULL,
+ `data_object_key2` varchar(100) NOT NULL,
+ `data_object_key2_type` varchar(50) NOT NULL,
+ `data_object_key3` varchar(100) DEFAULT NULL,
+ `data_object_key3_type` varchar(50) DEFAULT NULL,
+ `service` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DATA_OBJECT_MAPPING` (`data_object_key`,`data_object_type`,`service_type`),
+ KEY `IX2_DATA_OBJECT_MAPPING` (`service_type`,`data_object_key2`,`data_object_key2_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=3211 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2CONNECTION_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE2CONNECTION_MAPPING` (
+ `vnf_host_name` varchar(100) NOT NULL,
+ `e2e_vpn_key` varchar(30) NOT NULL,
+ `service_type` varchar(30) NOT NULL,
+ `connection_id` varchar(100) NOT NULL,
+ PRIMARY KEY (`vnf_host_name`,`e2e_vpn_key`,`service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2IPADDRESS_CONSUMPTION`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE2IPADDRESS_CONSUMPTION` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `device_id` varchar(100) NOT NULL,
+ `device_type` varchar(30) NOT NULL,
+ `ip_version` varchar(10) NOT NULL,
+ `consumption_key` varchar(100) NOT NULL,
+ `logical_interface_service_id` varchar(100) NOT NULL,
+ `address_type` varchar(30) NOT NULL,
+ `ip_consumed` varchar(50) NOT NULL,
+ `vnf_type` varchar(30) NOT NULL,
+ `secondary_key` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DEVICEIPADDRESS_CONSUMPTION` (`device_id`,`device_type`,`ip_version`)
+) ENGINE=InnoDB AUTO_INCREMENT=1357 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE2IPADDRESS_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE2IPADDRESS_MAPPING` (
+ `serial_key` int(11) NOT NULL AUTO_INCREMENT,
+ `device_id` varchar(100) NOT NULL,
+ `device_type` varchar(30) NOT NULL,
+ `secondary_key` varchar(100) NOT NULL,
+ `secondary_key_type` varchar(30) NOT NULL,
+ `address` varchar(50) NOT NULL,
+ `address_type` varchar(30) NOT NULL,
+ `ip_version` varchar(10) NOT NULL,
+ `length` int(11) NOT NULL,
+ `status` varchar(30) NOT NULL,
+ PRIMARY KEY (`serial_key`),
+ KEY `IX1_DEVICE2IPADDRESS_MAPPING` (`device_id`,`device_type`,`secondary_key`,`secondary_key_type`,`address`,`address_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=4734 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_AUTHENTICATION`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE_AUTHENTICATION` (
+ `device_authentication_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `user_name` varchar(50) DEFAULT NULL,
+ `password` varchar(100) DEFAULT NULL,
+ `protocol` varchar(100) DEFAULT NULL,
+ `port_number` int(11) DEFAULT NULL,
+ PRIMARY KEY (`device_authentication_id`),
+ UNIQUE KEY `device_authentication_id` (`device_authentication_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_INTERFACE_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE_INTERFACE_LOG` (
+ `device_interface_log_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `request_id` varchar(50) DEFAULT NULL,
+ `creation_date` datetime NOT NULL,
+ `log` longtext,
+ PRIMARY KEY (`device_interface_log_id`),
+ UNIQUE KEY `device_interface_log_id` (`device_interface_log_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DEVICE_INTERFACE_PROTOCOL`
+--
+
+CREATE TABLE IF NOT EXISTS `DEVICE_INTERFACE_PROTOCOL` (
+ `device_interface_protocol_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `protocol` varchar(50) DEFAULT NULL,
+ `module` varchar(50) DEFAULT NULL,
+ `dg_rpc` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`device_interface_protocol_id`),
+ UNIQUE KEY `device_interface_protocol_id` (`device_interface_protocol_id`),
+ UNIQUE KEY `vnf_type` (`vnf_type`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DOWNLOAD_CONFIG_TEMPLATE`
+--
+
+CREATE TABLE IF NOT EXISTS `DOWNLOAD_CONFIG_TEMPLATE` (
+ `download_config_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) NOT NULL,
+ `protocol` varchar(50) NOT NULL,
+ `template` longtext,
+ PRIMARY KEY (`download_config_template_id`),
+ UNIQUE KEY `download_config_template_id` (`download_config_template_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `DOWNLOAD_DG_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `DOWNLOAD_DG_REFERENCE` (
+ `download_dg_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `protocol` varchar(50) NOT NULL,
+ `download_config_dg` varchar(50) NOT NULL,
+ PRIMARY KEY (`download_dg_reference_id`),
+ UNIQUE KEY `download_dg_reference_id` (`download_dg_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_CLIENT_KEY_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_CLIENT_KEY_INDEX` (
+ `vnf_name_prefix` varchar(100) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_ASSIGNMENTS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_ASSIGNMENTS` (
+ `plan_name` varchar(40) NOT NULL,
+ `client_key` varchar(100) NOT NULL,
+ `service_type` varchar(40) NOT NULL,
+ `ip_address` varchar(40) DEFAULT NULL,
+ `prefix_length` int(2) DEFAULT NULL,
+ `status` varchar(255) DEFAULT NULL,
+ `service_instance_id` varchar(80) DEFAULT NULL,
+ `last_modified_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `prev_status` varchar(20) DEFAULT NULL,
+ `info` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`plan_name`,`client_key`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_POOLS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_POOLS` (
+ `pool_id` int(11) NOT NULL AUTO_INCREMENT,
+ `key_name` varchar(50) NOT NULL,
+ `key_value` varchar(255) NOT NULL,
+ `level` int(2) NOT NULL,
+ `plan_name` varchar(50) NOT NULL,
+ `address_family` varchar(10) NOT NULL,
+ `parent_pool` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) DEFAULT NULL,
+ `network_id` varchar(255) DEFAULT NULL,
+ `created_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `delete_failure` varchar(20) DEFAULT NULL,
+ `delete_request_id` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`pool_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=339 DEFAULT CHARSET=latin1 COMMENT='This table will capture the pools being created by SDN-C in EIPAM_IP_POOLS. There is no data migration for existing vPE pool data.';
+
+--
+-- Table structure for table `EIPAM_IP_SUBNETS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_SUBNETS` (
+ `entity_id` int(6) NOT NULL,
+ `service_type` varchar(40) NOT NULL,
+ `plan_name` varchar(50) NOT NULL,
+ `address_family` varchar(10) NOT NULL,
+ `ip_address` varchar(40) NOT NULL,
+ `prefix_length` int(3) NOT NULL,
+ `status` varchar(20) NOT NULL,
+ `last_modified_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `network_id` varchar(255) DEFAULT NULL,
+ `pool_id` int(11) DEFAULT NULL,
+ `dealloc_failure` varchar(20) DEFAULT NULL,
+ `dealloc_request_id` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`entity_id`),
+ KEY `FK_EIPAM_IP_SUBNETS_EIPAM_IP_POOLS` (`pool_id`),
+ CONSTRAINT `EIPAM_IP_SUBNETS_ibfk_1` FOREIGN KEY (`pool_id`) REFERENCES `EIPAM_IP_POOLS` (`pool_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK_EIPAM_IP_SUBNETS_EIPAM_IP_POOLS` FOREIGN KEY (`pool_id`) REFERENCES `EIPAM_IP_POOLS` (`pool_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_IP_SUBNET_KEYS`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_IP_SUBNET_KEYS` (
+ `entity_id` int(6) NOT NULL,
+ `key_name` varchar(50) NOT NULL,
+ `key_value` varchar(255) NOT NULL,
+ `level` int(2) NOT NULL,
+ PRIMARY KEY (`entity_id`,`key_name`,`key_value`,`level`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EIPAM_REQUEST_KEY`
+--
+
+CREATE TABLE IF NOT EXISTS `EIPAM_REQUEST_KEY` (
+ `key_name_1` varchar(50) NOT NULL,
+ `address_family` varchar(4) NOT NULL,
+ `serial_key` int(2) NOT NULL AUTO_INCREMENT,
+ `plan_name` varchar(50) NOT NULL,
+ `request_length` int(2) NOT NULL,
+ `pools_length` int(2) NOT NULL,
+ `plan_length` int(2) NOT NULL,
+ `key_name_0` varchar(50) NOT NULL,
+ `key_name_type_0` varchar(255) NOT NULL,
+ `key_name_type_1` varchar(255) NOT NULL,
+ `prefix_length` int(2) NOT NULL,
+ `group_flag` char(1) NOT NULL,
+ `address_type` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`key_name_1`,`address_family`),
+ UNIQUE KEY `IX1_EIPAM_REQUEST_KEY` (`serial_key`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `EXTERNAL_DATA`
+--
+
+CREATE TABLE IF NOT EXISTS `EXTERNAL_DATA` (
+ `external_data_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` int(11) DEFAULT NULL,
+ `param_name` varchar(30) NOT NULL,
+ `param_value` varchar(50) NOT NULL,
+ PRIMARY KEY (`external_data_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `FLOW_UPDATES`
+--
+
+CREATE TABLE IF NOT EXISTS `FLOW_UPDATES` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `status` enum('NEW','COMPLETE','FAILED') NOT NULL DEFAULT 'NEW',
+ `create_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `last_processed_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `odl` varchar(128) DEFAULT NULL,
+ `address_family` enum('IPV4','IPV6') DEFAULT NULL,
+ `destination_prefix` varchar(50) DEFAULT NULL,
+ `communities` varchar(6000) DEFAULT NULL,
+ `route_key` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_L3_NETWORK` (
+ `network_id` varchar(80) NOT NULL,
+ `network_name` varchar(80) DEFAULT NULL,
+ `network_type` varchar(80) DEFAULT NULL,
+ `network_role` varchar(80) DEFAULT NULL,
+ `network_technology` varchar(80) DEFAULT NULL,
+ `neutron_network_id` varchar(80) DEFAULT NULL,
+ `is_bound_to_vpn` tinyint(1) DEFAULT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `service_id` varchar(80) NOT NULL,
+ `tenant_id` varchar(80) NOT NULL,
+ `physical_location_id` varchar(20) DEFAULT NULL,
+ `network_role_instance` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK_SUBNET`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_L3_NETWORK_SUBNET` (
+ `network_id` varchar(80) NOT NULL,
+ `subnet_id` varchar(80) NOT NULL,
+ `neutron_subnet_id` varchar(80) DEFAULT NULL,
+ `gateway_address` varchar(45) NOT NULL,
+ `network_start_address` varchar(45) NOT NULL,
+ `cidr_mask` varchar(20) NOT NULL,
+ `ip_version` char(1) NOT NULL,
+ `orchestration_status` varchar(64) NOT NULL,
+ `dhcp_enabled` tinyint(1) NOT NULL,
+ `dhcp_start` varchar(45) DEFAULT NULL,
+ `dhcp_end` varchar(45) DEFAULT NULL,
+ PRIMARY KEY (`network_id`,`subnet_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_L3_NETWORK_VPN_BINDING`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_L3_NETWORK_VPN_BINDING` (
+ `network_id` varchar(80) NOT NULL,
+ `vpn_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_id`,`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_RESOURCE_NAME`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_RESOURCE_NAME` (
+ `type` varchar(50) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `prefix` varchar(255) NULL,
+ `name_index` int(11) NULL,
+ `context_id` varchar(255) NULL,
+ PRIMARY KEY (`type`,`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vnf_name` varchar(80) NOT NULL,
+ `vnf_type` varchar(200) NOT NULL,
+ `vnf_name2` varchar(80) DEFAULT NULL,
+ `service_id` varchar(80) NOT NULL,
+ `equipment_role` varchar(80) NOT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `prov_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `regional_resource_zone` varchar(80) DEFAULT NULL,
+ `operational_state` varchar(80) DEFAULT NULL,
+ `license_key` varchar(80) DEFAULT NULL,
+ `ipv4_oam_address` varchar(20) DEFAULT NULL,
+ `ipv4_loopback0_address` varchar(20) DEFAULT NULL,
+ `nm_lan_v6_address` varchar(40) DEFAULT NULL,
+ `management_v6_address` varchar(40) DEFAULT NULL,
+ `management_option` varchar(45) DEFAULT NULL,
+ `vcpu` varchar(45) DEFAULT NULL,
+ `vmemory` varchar(45) DEFAULT NULL,
+ `vdisk` varchar(45) DEFAULT NULL,
+ `vcpu_units` varchar(45) DEFAULT NULL,
+ `vmemory_units` varchar(45) DEFAULT NULL,
+ `vdisk_units` varchar(45) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_L3_NETWORK`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_L3_NETWORK` (
+ `vnf_id` varchar(80) NOT NULL,
+ `network_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`network_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_LICENSE_MANAGEMENT`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_LICENSE_MANAGEMENT` (
+ `vnf_id` varchar(80) NOT NULL,
+ `att_uuid` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_LINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_LINTERFACE` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `interface_role` varchar(45) DEFAULT NULL,
+ `v6_wan_link_ip` varchar(45) DEFAULT NULL,
+ `selflink` varchar(128) DEFAULT NULL,
+ `interface_id` varchar(45) DEFAULT NULL,
+ `macaddr` varchar(64) DEFAULT NULL,
+ `network_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`),
+ KEY `FK_GENERIC_VNF_LINTERFACE_GENERIC_VNF_IDX` (`vnf_id`),
+ CONSTRAINT `FK_GENERIC_VNF_LINTERFACE_GENERIC_VNF` FOREIGN KEY (`vnf_id`) REFERENCES `GENERIC_VNF` (`vnf_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_PSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_PSERVER` (
+ `vnf_id` varchar(64) NOT NULL,
+ `hostname` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`hostname`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_SERVICE_INSTANCE`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_SERVICE_INSTANCE` (
+ `vnf_id` varchar(64) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ `relationship_key` varchar(64) NOT NULL,
+ `relationship_value` varchar(64) DEFAULT NULL,
+ `global_customer_id` varchar(255) DEFAULT NULL,
+ `service_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`service_instance_id`,`relationship_key`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_VNF_IMAGE`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_VNF_IMAGE` (
+ `vnf_id` varchar(64) NOT NULL,
+ `att_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_id`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VNF_VSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VNF_VSERVER` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vserver_id` varchar(128) NOT NULL,
+ `tenant_id` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GENERIC_VPN_BINDING`
+--
+
+CREATE TABLE IF NOT EXISTS `GENERIC_VPN_BINDING` (
+ `vpn_id` varchar(80) NOT NULL,
+ `vpn_name` varchar(80) NOT NULL,
+ `global_route_target` varchar(80) NOT NULL,
+ PRIMARY KEY (`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `GET_CONFIG_TEMPLATE`
+--
+
+CREATE TABLE IF NOT EXISTS `GET_CONFIG_TEMPLATE` (
+ `get_config_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `vnf_type` varchar(50) NOT NULL,
+ `device_interface_protocol_id` int(11) NOT NULL,
+ `xml_processing` varchar(1) DEFAULT NULL,
+ `xml_protocol` varchar(30) DEFAULT NULL,
+ `template` longtext,
+ PRIMARY KEY (`get_config_template_id`),
+ UNIQUE KEY `get_config_template_id` (`get_config_template_id`),
+ KEY `get_config_template_ibfk_1` (`device_interface_protocol_id`),
+ CONSTRAINT `get_config_template_ibfk_1` FOREIGN KEY (`device_interface_protocol_id`) REFERENCES `DEVICE_INTERFACE_PROTOCOL` (`device_interface_protocol_id`) ON DELETE NO ACTION ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LOCATION`
+--
+
+CREATE TABLE IF NOT EXISTS `LOCATION` (
+ `loc_id` int(11) NOT NULL AUTO_INCREMENT,
+ `address` varchar(150) NOT NULL,
+ `city_code_id` int(11) NOT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`loc_id`),
+ KEY `IN1_LOCATION_IDX` (`city_code_id`),
+ CONSTRAINT `FK1_LOCATION` FOREIGN KEY (`city_code_id`) REFERENCES `CITY_CODE` (`city_code_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB AUTO_INCREMENT=327 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `HOSTNAME`
+--
+
+CREATE TABLE IF NOT EXISTS `HOSTNAME` (
+ `hostname` varchar(21) NOT NULL,
+ `parent_hostname` varchar(21) DEFAULT NULL,
+ `cust_id` int(11) NOT NULL,
+ `loc_id` int(11) NOT NULL,
+ `site_sequence` varchar(2) NOT NULL,
+ `server_sequence` varchar(2) NOT NULL,
+ `activation_code` varchar(11) DEFAULT NULL,
+ `vnf_sequence` varchar(2) DEFAULT NULL,
+ `vendor_code` varchar(1) NOT NULL,
+ `virtual_device_type` varchar(2) DEFAULT NULL,
+ `device_sequence` varchar(3) DEFAULT NULL,
+ `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`hostname`),
+ KEY `IN1_HOSTNAME` (`cust_id`),
+ KEY `IN2_HOSTNAME` (`loc_id`),
+ KEY `IN3_HOSTNAME` (`vendor_code`),
+ KEY `IN4_HOSTNAME` (`parent_hostname`),
+ CONSTRAINT `FK1_HOSTNAME` FOREIGN KEY (`cust_id`) REFERENCES `CUSTOMER` (`cust_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK2_HOSTNAME` FOREIGN KEY (`loc_id`) REFERENCES `LOCATION` (`loc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
+ CONSTRAINT `FK4_HOSTNAME` FOREIGN KEY (`parent_hostname`) REFERENCES `HOSTNAME` (`hostname`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `IPV4_ADDRESS_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `IPV4_ADDRESS_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `universe` varchar(40) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `ipv4_addr` varchar(20) NOT NULL,
+ PRIMARY KEY (`ipv4_addr`,`universe`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LINK_MASTER`
+--
+
+CREATE TABLE IF NOT EXISTS `LINK_MASTER` (
+ `link_interface_ip` varchar(20) NOT NULL,
+ `source_crs_name` varchar(20) NOT NULL,
+ `destination_crs_name` varchar(20) NOT NULL,
+ `max_reserved_bw` int(11) DEFAULT NULL,
+ `default_cost` int(11) DEFAULT NULL,
+ `bundle_name` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`link_interface_ip`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `LINTERFACE_VLAN`
+--
+
+CREATE TABLE IF NOT EXISTS `LINTERFACE_VLAN` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `vlan_id_inner` varchar(64) DEFAULT NULL,
+ `vlan_id_outer` varchar(64) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`),
+ KEY `FK_LINTERFACE_VLAN_GENERIC_VNF_LINTERFACE_IDX` (`vnf_id`,`interface_name`),
+ CONSTRAINT `FK_LINTERFACE_VLAN_GENERIC_VNF_LINTERFACE` FOREIGN KEY (`vnf_id`, `interface_name`) REFERENCES `GENERIC_VNF_LINTERFACE` (`vnf_id`, `interface_name`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `MAX_PORT_SPEED`
+--
+
+CREATE TABLE IF NOT EXISTS `MAX_PORT_SPEED` (
+ `max_port_speed_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `image_file_name` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `interface_name` varchar(100) NOT NULL,
+ `max_speed` bigint(20) NOT NULL,
+ `unit` varchar(10) NOT NULL,
+ PRIMARY KEY (`max_port_speed_id`),
+ UNIQUE KEY `max_port_speed_id` (`max_port_speed_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `MAX_SERVER_SPEED`
+--
+
+CREATE TABLE IF NOT EXISTS `MAX_SERVER_SPEED` (
+ `max_server_speed_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `server_model` varchar(50) NOT NULL,
+ `evc_count` smallint(6) NOT NULL,
+ `max_speed` bigint(20) NOT NULL,
+ `unit` varchar(10) NOT NULL,
+ `description` varchar(500) DEFAULT NULL,
+ PRIMARY KEY (`max_server_speed_id`),
+ UNIQUE KEY `max_server_speed_id` (`max_server_speed_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NAMING_POLICY_VM_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `NAMING_POLICY_VM_NAME_INDEX` (
+ `vm_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vm_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NAMING_POLICY_VNFC_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `NAMING_POLICY_VNFC_NAME_INDEX` (
+ `vnfc_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnfc_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_ASSIGN_VPN_OVERRIDE`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_ASSIGN_VPN_OVERRIDE` (
+ `vpn_id` varchar(12) NOT NULL DEFAULT '',
+ `vpn_rt` varchar(16) NOT NULL DEFAULT '',
+ `service_type` varchar(16) NOT NULL DEFAULT '',
+ `be_location` varchar(16) NOT NULL DEFAULT '',
+ `be_type` varchar(32) NOT NULL DEFAULT '',
+ `be_id` varchar(32) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`vpn_id`,`vpn_rt`,`service_type`,`be_location`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_BORDER_ELEMENT`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_BORDER_ELEMENT` (
+ `be_id` varchar(32) NOT NULL,
+ `be_type` varchar(16) NOT NULL,
+ `be_name` varchar(32) DEFAULT NULL,
+ `be_host_vnf_id` varchar(32) DEFAULT NULL,
+ `service_type` varchar(16) DEFAULT NULL,
+ `tangibility` varchar(16) DEFAULT NULL,
+ `usage_order` smallint(6) DEFAULT NULL,
+ `vlan_start` smallint(6) DEFAULT NULL,
+ `vlan_end` smallint(6) DEFAULT NULL,
+ `ipv4_subnet` varchar(18) DEFAULT NULL,
+ `ipv6_subnet` varchar(68) DEFAULT NULL,
+ `network_ip` varchar(48) DEFAULT NULL,
+ `be_location` varchar(16) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ `log_link_model_uuid` varchar(64) DEFAULT NULL,
+ PRIMARY KEY (`be_id`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_IPE`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_IPE` (
+ `ipe_name` varchar(32) NOT NULL,
+ `ipe_location` varchar(16) DEFAULT NULL,
+ `ipe_ip_address` varchar(16) DEFAULT NULL,
+ `ipe_id` varchar(8) DEFAULT NULL,
+ `service_type_array` varchar(512) DEFAULT NULL,
+ `ipe_status` varchar(32) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`ipe_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_IPE_PORT`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_IPE_PORT` (
+ `port_id` varchar(16) NOT NULL,
+ `ipe_name` varchar(32) NOT NULL,
+ `be_id` varchar(32) NOT NULL,
+ `be_type` varchar(16) NOT NULL,
+ `port_type` varchar(16) DEFAULT NULL,
+ `ae_name` varchar(16) DEFAULT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`port_id`,`ipe_name`,`be_id`,`be_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_MAPPING_SBG_BGF`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_MAPPING_SBG_BGF` (
+ `asbg_vlan` smallint(6) NOT NULL,
+ `bgf_vlan` smallint(6) NOT NULL,
+ PRIMARY KEY (`asbg_vlan`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_SERVICE`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_SERVICE` (
+ `service_type` varchar(16) NOT NULL,
+ `service_model_uuid` varchar(64) NOT NULL,
+ `description` varchar(128) DEFAULT NULL,
+ `created_timestamp` timestamp NULL DEFAULT NULL,
+ `updated_timestamp` timestamp NULL DEFAULT NULL,
+ PRIMARY KEY (`service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NBNC_SERVICE_VLAN`
+--
+
+CREATE TABLE IF NOT EXISTS `NBNC_SERVICE_VLAN` (
+ `be_id` varchar(32) NOT NULL,
+ `vlan` smallint(6) NOT NULL,
+ `service_type` varchar(16) DEFAULT NULL,
+ `be_type` varchar(16) DEFAULT NULL,
+ `be_name` varchar(32) DEFAULT NULL,
+ `be_host_vnf_id` varchar(32) DEFAULT NULL,
+ `be_location` varchar(16) DEFAULT NULL,
+ `be_usage_order` smallint(6) DEFAULT NULL,
+ `vlan_usage_order` smallint(6) DEFAULT NULL,
+ `status` varchar(16) DEFAULT 'AVAILABLE',
+ `request_id` varchar(64) DEFAULT NULL,
+ `service_instance_id` varchar(64) DEFAULT NULL,
+ `vni_id` varchar(16) DEFAULT NULL,
+ `customer_id` varchar(16) DEFAULT NULL,
+ `ipe1_router_name` varchar(32) DEFAULT NULL,
+ `ipe1_port_id` varchar(16) DEFAULT NULL,
+ `ipe1_ae_name` varchar(16) DEFAULT NULL,
+ `ipe2_router_name` varchar(32) DEFAULT NULL,
+ `ipe2_port_id` varchar(16) DEFAULT NULL,
+ `ipe2_ae_name` varchar(16) DEFAULT NULL,
+ `available_timestamp` timestamp NULL DEFAULT NULL,
+ `allocated_timestamp` timestamp NULL DEFAULT NULL,
+ `disabled_timestamp` timestamp NULL DEFAULT NULL,
+ `enabled_timestamp` timestamp NULL DEFAULT NULL,
+ `vpn_id` varchar(12) DEFAULT NULL,
+ `vpn_rt` varchar(16) DEFAULT NULL,
+ PRIMARY KEY (`be_id`,`vlan`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NCS_EXPECTED_ASYNC_REQUESTS`
+--
+
+CREATE TABLE IF NOT EXISTS `NCS_EXPECTED_ASYNC_REQUESTS` (
+ `ncs_request_id` varchar(255) NOT NULL,
+ `mso_gp_request_id` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ `sdn_module_name` varchar(255) NOT NULL,
+ `sdn_rpc_name` varchar(255) NOT NULL,
+ `sdn_service_action` varchar(255) DEFAULT NULL,
+ `ncs_rpc` varchar(255) NOT NULL,
+ `ncs_sub_action` varchar(255) DEFAULT NULL,
+ `status` varchar(255) NOT NULL DEFAULT 'inProgress',
+ `creation_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`ncs_request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_INSTANCE_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_INSTANCE_NAME_INDEX` (
+ `network_instance_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`network_instance_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `SERVICE_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_MODEL` (
+ `service_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `description` varchar(1024) DEFAULT NULL,
+ `type` varchar(255) DEFAULT NULL,
+ `category` varchar(255) DEFAULT NULL,
+ `ecomp_naming` char(1) DEFAULT NULL,
+ `service_instance_name_prefix` varchar(255) DEFAULT NULL,
+ `filename` varchar(100) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`service_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `NETWORK_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `service_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `network_type` varchar(255) DEFAULT NULL,
+ `network_role` varchar(255) DEFAULT NULL,
+ `network_technology` varchar(255) DEFAULT NULL,
+ `trunk_network_indicator` char(1) DEFAULT NULL,
+ `network_scope` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `is_shared_network` char(1) DEFAULT NULL,
+ `is_external_network` char(1) DEFAULT NULL,
+ `is_provider_network` char(1) DEFAULT NULL,
+ `physical_network_name` varchar(255) DEFAULT NULL,
+ `is_bound_to_vpn` char(1) DEFAULT NULL,
+ `vpn_binding` varchar(255) DEFAULT NULL,
+ `use_ipv4` char(1) DEFAULT NULL,
+ `ipv4_dhcp_enabled` char(1) DEFAULT NULL,
+ `ipv4_ip_version` char(1) DEFAULT NULL,
+ `ipv4_cidr_mask` varchar(255) DEFAULT NULL,
+ `eipam_v4_address_plan` varchar(255) DEFAULT NULL,
+ `use_ipv6` char(1) DEFAULT NULL,
+ `ipv6_dhcp_enabled` char(1) DEFAULT NULL,
+ `ipv6_ip_version` char(1) DEFAULT NULL,
+ `ipv6_cidr_mask` varchar(255) DEFAULT NULL,
+ `eipam_v6_address_plan` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`),
+ KEY `FK_NETWORK_MODEL` (`service_uuid`),
+ CONSTRAINT `FK_NETWORK_MODEL` FOREIGN KEY (`service_uuid`) REFERENCES `SERVICE_MODEL` (`service_uuid`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_PROFILE`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_PROFILE` (
+ `network_type` varchar(100) NOT NULL,
+ `technology` varchar(100) NOT NULL,
+ PRIMARY KEY (`network_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NETWORK_ROLE_VPN_BINDING`
+--
+
+CREATE TABLE IF NOT EXISTS `NETWORK_ROLE_VPN_BINDING` (
+ `network_role` varchar(80) NOT NULL,
+ `vpn_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`network_role`,`vpn_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `NODE_TYPES`
+--
+
+CREATE TABLE IF NOT EXISTS `NODE_TYPES` (
+ `nodetype` varchar(80) NOT NULL,
+ PRIMARY KEY (`nodetype`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `OBJECT_GROUPING`
+--
+
+CREATE TABLE IF NOT EXISTS `OBJECT_GROUPING` (
+ `group_id` varchar(128) NOT NULL,
+ `group_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`group_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `OBJECT_GROUP_MEMBER_TRACKING`
+--
+
+CREATE TABLE IF NOT EXISTS `OBJECT_GROUP_MEMBER_TRACKING` (
+ `group_id` varchar(128) NOT NULL,
+ `key_id` varchar(128) NOT NULL,
+ `key_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`group_id`,`key_id`,`key_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PARAMETERS`
+--
+
+CREATE TABLE IF NOT EXISTS `PARAMETERS` (
+ `name` varchar(100) NOT NULL,
+ `value` varchar(128) NOT NULL,
+ `category` varchar(24) DEFAULT NULL,
+ `memo` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PE_INV`
+--
+
+CREATE TABLE IF NOT EXISTS `PE_INV` (
+ `EQUIP_ID` int(11) DEFAULT NULL,
+ `EQUIP_TYPE` varchar(20) DEFAULT NULL,
+ `PTNII_EQUIP_NAME` varchar(20) DEFAULT NULL,
+ `IP_ADDR` varchar(15) DEFAULT NULL,
+ `ROUTER_PROV_STATUS` varchar(50) DEFAULT NULL,
+ `REGION` varchar(16) DEFAULT NULL,
+ `COUNTRY_ABBR` varchar(50) DEFAULT NULL,
+ `EQUIP_NAME_CODE` varchar(50) DEFAULT NULL,
+ `AS_NUMBER` varchar(5) DEFAULT NULL,
+ `LOOPBACK1` varchar(15) DEFAULT NULL,
+ `LOOPBACK2` varchar(15) DEFAULT NULL,
+ `LOOPBACK3` varchar(15) DEFAULT NULL,
+ `LOOPBACK40` varchar(15) DEFAULT NULL,
+ `LOOPBACK65535` varchar(15) DEFAULT NULL,
+ `INMS_LIST` varchar(20) DEFAULT NULL,
+ `ENCRYPTED_ACCESS_FLAG` varchar(50) DEFAULT NULL,
+ `SW_NAME` varchar(100) DEFAULT NULL,
+ `NMIPADDR` varchar(15) DEFAULT NULL,
+ `CREATE_DATE` datetime DEFAULT NULL,
+ `MOD_DATE` datetime DEFAULT NULL,
+ `FCN_CODE` varchar(50) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PHYSICAL_LINK`
+--
+
+CREATE TABLE IF NOT EXISTS `PHYSICAL_LINK` (
+ `link_name` varchar(255) NOT NULL,
+ `speed_value` varchar(64) DEFAULT NULL,
+ `speed_units` varchar(64) DEFAULT NULL,
+ `circuit_id` varchar(255) NOT NULL,
+ `dual_mode` varchar(64) NOT NULL,
+ PRIMARY KEY (`link_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PHYSICAL_LINK_PINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `PHYSICAL_LINK_PINTERFACE` (
+ `link_name` varchar(255) NOT NULL,
+ `hostname` varchar(255) NOT NULL,
+ `port_name_ft` varchar(255) NOT NULL,
+ PRIMARY KEY (`link_name`,`hostname`,`port_name_ft`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `PINTERFACE` (
+ `hostname` varchar(255) NOT NULL,
+ `port_name_ft` varchar(255) NOT NULL,
+ `interface_name` varchar(255) DEFAULT '',
+ `physical_speed` varchar(255) DEFAULT '',
+ `physical_units` varchar(255) DEFAULT '',
+ `port_description` varchar(255) DEFAULT '',
+ PRIMARY KEY (`hostname`,`port_name_ft`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `POLICY_UPDATE_NOTIFICATION`
+--
+
+CREATE TABLE IF NOT EXISTS `POLICY_UPDATE_NOTIFICATION` (
+ `policy_name` varchar(255) NOT NULL,
+ `version_id` varchar(255) NOT NULL,
+ `update_type` varchar(255) NOT NULL,
+ `timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ PRIMARY KEY (`policy_name`,`version_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PORTAL_USERS`
+--
+
+CREATE TABLE IF NOT EXISTS `PORTAL_USERS` (
+ `email` varchar(64) NOT NULL,
+ `password` varbinary(255) NOT NULL,
+ `privilege` char(1) NOT NULL,
+ PRIMARY KEY (`email`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `PREPARE_FILE_RELATIONSHIP`
+--
+
+CREATE TABLE IF NOT EXISTS `PREPARE_FILE_RELATIONSHIP` (
+ `prepare_file_relationship_id` int(11) NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(50) DEFAULT NULL,
+ `request_id` varchar(255) DEFAULT NULL,
+ `config_file_id` int(11) DEFAULT NULL,
+ `asdc_artifacts_id` int(11) DEFAULT NULL,
+ PRIMARY KEY (`prepare_file_relationship_id`),
+ UNIQUE KEY `prepare_file_relationship_id` (`prepare_file_relationship_id`),
+ KEY `ie_prepare_file_relationship` (`config_file_id`),
+ KEY `ie2_prepare_file_relationship` (`asdc_artifacts_id`),
+ CONSTRAINT `prepare_file_relationship_ibfk_2` FOREIGN KEY (`asdc_artifacts_id`) REFERENCES `ASDC_ARTIFACTS` (`asdc_artifacts_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
+ CONSTRAINT `prepare_file_replationship_ibfk_1` FOREIGN KEY (`config_file_id`) REFERENCES `CONFIGFILES` (`config_file_id`) ON DELETE NO ACTION ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PRE_LOAD_VNF_DATA`
+--
+
+CREATE TABLE IF NOT EXISTS `PRE_LOAD_VNF_DATA` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `svc_request_id` varchar(100) DEFAULT '',
+ `svc_action` varchar(40) DEFAULT '',
+ `status` varchar(10) NOT NULL DEFAULT 'pending',
+ `filename` varchar(100) NOT NULL,
+ `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `preload_data` longblob,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=295 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PRE_LOAD_VNF_NETWORK_DATA`
+--
+
+CREATE TABLE IF NOT EXISTS `PRE_LOAD_VNF_NETWORK_DATA` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `svc_request_id` varchar(100) DEFAULT '',
+ `svc_action` varchar(40) DEFAULT '',
+ `status` varchar(10) NOT NULL DEFAULT 'pending',
+ `filename` varchar(100) NOT NULL,
+ `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `preload_data` longblob,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=278 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `PSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `PSERVER` (
+ `hostname` varchar(255) NOT NULL,
+ `ptnii_equip_name` varchar(255) DEFAULT '',
+ `number_of_cpus` varchar(255) DEFAULT '',
+ `disk_in_gigabytes` varchar(255) DEFAULT '',
+ `ram_in_megabytes` varchar(255) DEFAULT '',
+ `equip_type` varchar(255) DEFAULT '',
+ `equip_vendor` varchar(255) DEFAULT '',
+ `equip_model` varchar(255) DEFAULT '',
+ `fqdn` varchar(255) DEFAULT '',
+ `pserver_selflink` varchar(255) DEFAULT '',
+ `ipv4_oam_address` varchar(40) DEFAULT NULL,
+ `serial_number` varchar(255) DEFAULT '',
+ `pserver_id` varchar(255) DEFAULT '',
+ `internet_topology` varchar(40) DEFAULT '',
+ `aic_site_id` varchar(100) DEFAULT '',
+ `in_maint` varchar(5) DEFAULT '',
+ `pserver_name2` varchar(255) DEFAULT '',
+ `purpose` varchar(255) DEFAULT '',
+ PRIMARY KEY (`hostname`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RANGE_RULE`
+--
+
+CREATE TABLE IF NOT EXISTS `RANGE_RULE` (
+ `range_rule_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `range_name` varchar(50) NOT NULL,
+ `service_model` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `equipment_level` varchar(50) NOT NULL,
+ `min_value` int(11) NOT NULL,
+ `max_value` int(11) NOT NULL,
+ PRIMARY KEY (`range_rule_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_DETAILS`
+--
+
+CREATE TABLE IF NOT EXISTS `REQUEST_DETAILS` (
+ `request_id` varchar(255) NOT NULL,
+ `controller_id` varchar(255) DEFAULT NULL,
+ `status` varchar(255) DEFAULT NULL,
+ `service_rate` varchar(255) DEFAULT NULL,
+ `service_instance_id` varchar(255) DEFAULT NULL,
+ `service_type` varchar(255) DEFAULT NULL,
+ `global_customer_id` varchar(255) DEFAULT NULL,
+ `notification_url` varchar(255) DEFAULT NULL,
+ `domain_requests` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_PROGRESS`
+--
+
+CREATE TABLE IF NOT EXISTS `REQUEST_PROGRESS` (
+ `request_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_type` varchar(20) DEFAULT NULL,
+ `service_instance_id` varchar(80) NOT NULL,
+ `request_instance_type` varchar(20) NOT NULL,
+ `originating_service_instance_id` varchar(80) DEFAULT NULL,
+ `originating_service_type` varchar(20) DEFAULT NULL,
+ `overall_status` varchar(20) DEFAULT NULL,
+ `status_date` varchar(80) DEFAULT NULL,
+ `message` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `REQUEST_PROGRESS_STATE`
+--
+
+CREATE TABLE IF NOT EXISTS `REQUEST_PROGRESS_STATE` (
+ `request_progress_state_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` int(11) DEFAULT NULL,
+ `service_instance_id` varchar(80) NOT NULL,
+ `request_instance_type` varchar(20) NOT NULL,
+ `progress_state` varchar(30) DEFAULT NULL,
+ `transaction_status` varchar(20) DEFAULT NULL,
+ `status_date` varchar(80) DEFAULT NULL,
+ `response_code` varchar(20) DEFAULT NULL,
+ `message` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`request_progress_state_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE` (
+ `resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `asset_id` varchar(100) NOT NULL,
+ `resource_name` varchar(50) NOT NULL,
+ `resource_type` enum('Limit','Label','Range') NOT NULL,
+ `lt_used` bigint(20) DEFAULT NULL,
+ `ll_label` varchar(50) DEFAULT NULL,
+ `ll_reference_count` smallint(6) DEFAULT NULL,
+ `rr_used` varchar(4000) DEFAULT NULL,
+ PRIMARY KEY (`resource_id`),
+ UNIQUE KEY `resource_id` (`resource_id`),
+ UNIQUE KEY `IX1_RESOURCE` (`asset_id`,`resource_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=179 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_LOAD`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_LOAD` (
+ `resource_load_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_id` bigint(20) NOT NULL,
+ `application_id` varchar(20) NOT NULL,
+ `resource_load_time` datetime NOT NULL,
+ `resource_expiration_time` datetime DEFAULT NULL,
+ PRIMARY KEY (`resource_load_id`),
+ UNIQUE KEY `resource_load_id` (`resource_load_id`),
+ UNIQUE KEY `IX2_RESOURCE_LOAD` (`resource_id`,`application_id`),
+ KEY `IX1_RESOURCE_LOAD` (`resource_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_LOCK`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_LOCK` (
+ `resource_lock_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_name` varchar(256) DEFAULT NULL,
+ `lock_holder` varchar(100) NOT NULL,
+ `lock_count` smallint(6) NOT NULL,
+ `lock_time` datetime NOT NULL,
+ `expiration_time` datetime NOT NULL,
+ PRIMARY KEY (`resource_lock_id`),
+ UNIQUE KEY `resource_lock_id` (`resource_lock_id`),
+ UNIQUE KEY `IX1_RESOURCE_LOCK` (`resource_name`)
+) ENGINE=InnoDB AUTO_INCREMENT=29681 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_RULE`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_RULE` (
+ `resource_rule_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_name` varchar(50) NOT NULL,
+ `service_model` varchar(50) NOT NULL,
+ `end_point_position` varchar(50) NOT NULL,
+ `service_expression` varchar(2000) NOT NULL,
+ `equipment_level` varchar(50) NOT NULL,
+ `equipment_expression` varchar(2000) NOT NULL,
+ `allocation_expression` varchar(2000) NOT NULL,
+ `soft_limit_expression` varchar(2000) NOT NULL,
+ `hard_limit_expression` varchar(2000) NOT NULL,
+ PRIMARY KEY (`resource_rule_id`),
+ UNIQUE KEY `resource_rule_id` (`resource_rule_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `RESOURCE_THRESHOLD`
+--
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_THRESHOLD` (
+ `resource_threshold_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `resource_rule_id` bigint(20) NOT NULL,
+ `threshold_expression` varchar(2000) NOT NULL,
+ `threshold_message` varchar(2000) NOT NULL,
+ PRIMARY KEY (`resource_threshold_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ROUTER_MASTER`
+--
+
+CREATE TABLE IF NOT EXISTS `ROUTER_MASTER` (
+ `crs_name` varchar(20) NOT NULL,
+ `loopback_ip` varchar(20) NOT NULL,
+ PRIMARY KEY (`crs_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `ROUTING_CHARACTERISTIC_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `ROUTING_CHARACTERISTIC_MAPPING` (
+ `network_role` varchar(255) NOT NULL,
+ `vrf_name` varchar(255) NOT NULL,
+ `routing_characteristic` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_role`,`vrf_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_HOMING`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_HOMING` (
+ `service_type` varchar(100) NOT NULL,
+ `lata` int(3) NOT NULL,
+ `hubbing_city_type` varchar(40) NOT NULL,
+ `latitude` float DEFAULT NULL,
+ `longitude` float DEFAULT NULL,
+ `primary_aic_site_name` varchar(100) NOT NULL,
+ `secondary_aic_site_name` varchar(100) DEFAULT NULL,
+ `tertiary_aic_site_name` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`service_type`,`lata`,`hubbing_city_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_HOMING_BACKUP`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_HOMING_BACKUP` (
+ `service_type` varchar(100) NOT NULL,
+ `lata` int(3) NOT NULL,
+ `hubbing_city_type` varchar(40) NOT NULL,
+ `latitude` float DEFAULT NULL,
+ `longitude` float DEFAULT NULL,
+ `primary_aic_site_name` varchar(100) NOT NULL,
+ `secondary_aic_site_name` varchar(100) DEFAULT NULL,
+ `tertiary_aic_site_name` varchar(100) DEFAULT NULL,
+ PRIMARY KEY (`service_type`,`lata`,`hubbing_city_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_INSTANCE_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_INSTANCE_NAME_INDEX` (
+ `service_instance_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`service_instance_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_MANAGER_CREDENTIALS`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_MANAGER_CREDENTIALS` (
+ `service_manager_username` varchar(255) NOT NULL,
+ `service_manager_password` varbinary(255) NOT NULL,
+ PRIMARY KEY (`service_manager_username`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_PROXY`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_PROXY` (
+ `port_mirror_service_uuid` varchar(255) NOT NULL,
+ `service_proxy_name` varchar(255) NOT NULL,
+ `source_service_uuid` varchar(255) NOT NULL,
+ `resources_vendor` varchar(255) DEFAULT NULL,
+ `resource_vendor_release` varchar(255) DEFAULT NULL,
+ `description` varchar(255) DEFAULT NULL,
+ `category` varchar(255) DEFAULT NULL,
+ `subcategory` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `role` varchar(255) NOT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `customization_uuid` varchar(255) DEFAULT NULL,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`port_mirror_service_uuid`,`service_proxy_name`),
+ KEY `FK_SERVICE_PROXY_SOURCE_TO_SERVICE_MODE` (`source_service_uuid`),
+ CONSTRAINT `FK_SERVICE_PROXY_MIRROR_TO_SERVICE_MODE` FOREIGN KEY (`port_mirror_service_uuid`) REFERENCES `SERVICE_MODEL` (`service_uuid`) ON DELETE CASCADE ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_RESOURCE`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_RESOURCE` (
+ `service_resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `service_instance_id` varchar(80) NOT NULL,
+ `service_status` enum('Active','Pending') NOT NULL,
+ `service_change_number` smallint(6) NOT NULL,
+ `resource_set_id` varchar(100) NOT NULL,
+ `resource_union_id` varchar(100) NOT NULL,
+ PRIMARY KEY (`service_instance_id`,`service_change_number`),
+ UNIQUE KEY `service_resource_id` (`service_resource_id`),
+ KEY `IX1_SERVICE_RESOURCE` (`service_instance_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=955 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SERVICE_TYPE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `SERVICE_TYPE_MAPPING` (
+ `sdnc_service_type` varchar(128) NOT NULL,
+ `ncs_service_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`sdnc_service_type`,`ncs_service_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SUBNETPOOL_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `SUBNETPOOL_MAPPING` (
+ `aic_cloud_region` varchar(16) NOT NULL,
+ `ntc` varchar(32) NOT NULL,
+ `lcp` varchar(32) NOT NULL,
+ `aic_region_id` varchar(255) NOT NULL,
+ PRIMARY KEY (`aic_cloud_region`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SUPPORTED_SEQUENCE_NUMBER`
+--
+
+CREATE TABLE IF NOT EXISTS `SUPPORTED_SEQUENCE_NUMBER` (
+ `resource_sequence_number` varchar(10) NOT NULL,
+ `resource_type` varchar(10) NOT NULL,
+ PRIMARY KEY (`resource_sequence_number`,`resource_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `SVC_LOGIC`
+--
+
+CREATE TABLE IF NOT EXISTS `SVC_LOGIC` (
+ `module` varchar(80) NOT NULL,
+ `rpc` varchar(80) NOT NULL,
+ `version` varchar(40) NOT NULL,
+ `mode` varchar(5) NOT NULL,
+ `active` varchar(1) NOT NULL,
+ `graph` longblob,
+ `modified_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `md5sum` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`module`,`rpc`,`version`,`mode`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TABLE_CLEANUP_CONFIGURATION`
+--
+
+CREATE TABLE IF NOT EXISTS `TABLE_CLEANUP_CONFIGURATION` (
+ `table_name` varchar(255) NOT NULL COMMENT 'The name of the table the cleanup will be performed on',
+ `days_old` int(11) NOT NULL COMMENT 'Records older than the current date minus DAYS_OLD will be deleted',
+ `date_column` varchar(255) NOT NULL COMMENT 'The name of the column containing the date to be checked',
+ `commit_interval` int(11) NOT NULL DEFAULT '2500' COMMENT 'The maximum number of rows a commit may contain',
+ `query_clause` varchar(1000) DEFAULT NULL COMMENT 'An optional additional query clause to further restrict deletion criteria',
+ `child_table_name` varchar(255) DEFAULT NULL,
+ `child_table_pk` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`table_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='This table will be used by the table clean-up script, tableCleanup.sh, to drive what tables should be purged and what the purge criteria are.';
+
+--
+-- Table structure for table `TASK_TEMPLATE`
+--
+
+CREATE TABLE IF NOT EXISTS `TASK_TEMPLATE` (
+ `task_template_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_type` varchar(20) DEFAULT NULL,
+ `task_name` varchar(30) NOT NULL,
+ `task_category` varchar(50) NOT NULL,
+ `ecomp_task` varchar(50) NOT NULL,
+ `initial_load` varchar(1) NOT NULL,
+ `service` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`task_template_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TENANT`
+--
+
+CREATE TABLE IF NOT EXISTS `TENANT` (
+ `tenant_id` varchar(255) NOT NULL,
+ `tenant_name` varchar(255) NOT NULL,
+ `service_instance_id` varchar(255) NOT NULL,
+ PRIMARY KEY (`tenant_id`,`tenant_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TESTTBL`
+--
+
+CREATE TABLE IF NOT EXISTS `TESTTBL` (
+ `pk` varchar(25) NOT NULL,
+ `col1` varchar(25) DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `THRESHOLD_NOTIFICATION`
+--
+
+CREATE TABLE IF NOT EXISTS `THRESHOLD_NOTIFICATION` (
+ `resource_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `threshold_expression` varchar(2000) DEFAULT NULL,
+ `threshold_message` varchar(500) DEFAULT NULL,
+ PRIMARY KEY (`resource_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TMP_AIC_AVAIL_ZONE_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `TMP_AIC_AVAIL_ZONE_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `token` int(4) NOT NULL,
+ `vnf_id` varchar(80) DEFAULT NULL,
+ `service_type` varchar(100) NOT NULL,
+ `vnf_type` varchar(20) DEFAULT NULL,
+ `hypervisor` varchar(10) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`token`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_PARAMETER` (
+ `parameter_id` int(11) NOT NULL,
+ `parameter_name` varchar(20) NOT NULL,
+ `parameter_set` int(11) NOT NULL,
+ `create_update_time` datetime NOT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ PRIMARY KEY (`parameter_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER_ENTRIES`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_PARAMETER_ENTRIES` (
+ `parameter_entry_id` int(11) NOT NULL,
+ `parameter_name` varchar(255) NOT NULL,
+ `parameter_value` varchar(64) NOT NULL,
+ `create_update_time` datetime NOT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ PRIMARY KEY (`parameter_entry_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_PARAMETER_TO_ENTRIES`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_PARAMETER_TO_ENTRIES` (
+ `parameter_id` int(11) DEFAULT NULL,
+ `parameter_entry_id` int(11) DEFAULT NULL,
+ `entry_order` int(11) DEFAULT NULL,
+ `create_update_time` datetime DEFAULT NULL,
+ `create_update_user` varchar(40) NOT NULL,
+ KEY `FK1_TOPOLOGY_PARAMETER_TO_ENTRIES` (`parameter_id`),
+ KEY `FK2_TOPOLOGY_PARAMETER_TO_ENTRIES` (`parameter_entry_id`),
+ CONSTRAINT `FK1_TOPOLOGY_PARAMETER_TO_ENTRIES` FOREIGN KEY (`parameter_id`) REFERENCES `TOPOLOGY_PARAMETER` (`parameter_id`),
+ CONSTRAINT `FK2_TOPOLOGY_PARAMETER_TO_ENTRIES` FOREIGN KEY (`parameter_entry_id`) REFERENCES `TOPOLOGY_PARAMETER_ENTRIES` (`parameter_entry_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE`
+--
+
+CREATE TABLE IF NOT EXISTS `TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE` (
+ `interface_name` varchar(255) NOT NULL,
+ `interface_id` varchar(255) NOT NULL,
+ `pnf_name` varchar(255) NOT NULL,
+ `pnf_id` varchar(255) NOT NULL,
+ `controller_id` varchar(255) DEFAULT NULL,
+ `rate` varchar(255) DEFAULT NULL,
+ `clli` varchar(255) DEFAULT NULL,
+ `connection_point` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`interface_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `TRANSACTION_LOG`
+--
+
+CREATE TABLE IF NOT EXISTS `TRANSACTION_LOG` (
+ `serial_key` int(10) NOT NULL AUTO_INCREMENT,
+ `log_time` varchar(40) NOT NULL,
+ `request_id` varchar(80) DEFAULT NULL,
+ `svc_request_id` varchar(80) DEFAULT NULL,
+ `x_ecomp_request_id` varchar(80) DEFAULT NULL,
+ `graph_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`serial_key`)
+) ENGINE=InnoDB AUTO_INCREMENT=249 DEFAULT CHARSET=latin1;
+
+
+--
+-- Table structure for table `UPLOAD_CONFIG`
+--
+
+CREATE TABLE IF NOT EXISTS `UPLOAD_CONFIG` (
+ `upload_config_id` int(11) NOT NULL AUTO_INCREMENT,
+ `request_id` varchar(50) DEFAULT NULL,
+ `originator_id` varchar(50) DEFAULT NULL,
+ `service_description` varchar(100) DEFAULT NULL,
+ `action` varchar(50) DEFAULT NULL,
+ `upload_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `vnf_id` varchar(50) DEFAULT NULL,
+ `vnf_name` varchar(50) DEFAULT NULL,
+ `vm_name` varchar(50) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `host_ip_address` varchar(50) DEFAULT NULL,
+ `config_indicator` varchar(25) DEFAULT NULL,
+ `pending_delete` varchar(1) DEFAULT NULL,
+ `content` longtext,
+ PRIMARY KEY (`upload_config_id`),
+ UNIQUE KEY `upload_config_id` (`upload_config_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `USED_SEQUENCE_NUMBER`
+--
+
+CREATE TABLE IF NOT EXISTS `USED_SEQUENCE_NUMBER` (
+ `resource_sequence_number` varchar(10) NOT NULL,
+ `resource_type` varchar(10) NOT NULL,
+ `zone_region_id` varchar(50) NOT NULL,
+ PRIMARY KEY (`resource_sequence_number`,`resource_type`,`zone_region_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `USER_TRACE`
+--
+
+CREATE TABLE IF NOT EXISTS `USER_TRACE` (
+ `user_trace_seq` int(11) NOT NULL AUTO_INCREMENT,
+ `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `identity` varchar(12) DEFAULT NULL,
+ `action` varchar(128) DEFAULT NULL,
+ `description` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`user_trace_seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=392 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VENDOR_CODE`
+--
+
+CREATE TABLE IF NOT EXISTS `VENDOR_CODE` (
+ `vendor_code` varchar(1) NOT NULL,
+ `vendor` varchar(45) NOT NULL DEFAULT '',
+ PRIMARY KEY (`vendor_code`,`vendor`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VFC_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `VFC_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `nfc_function` varchar(255) DEFAULT NULL,
+ `nfc_naming_code` varchar(255) DEFAULT NULL,
+ `vm_type` varchar(255) DEFAULT NULL,
+ `vm_type_tag` varchar(255) DEFAULT NULL,
+ `vm_image_name` varchar(255) DEFAULT NULL,
+ `vm_flavor_name` varchar(255) DEFAULT NULL,
+ `high_availability` varchar(255) DEFAULT NULL,
+ `nfc_naming` varchar(255) DEFAULT NULL,
+ `min_instances` int(11) DEFAULT NULL,
+ `max_instances` int(11) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VFC_TO_NETWORK_ROLE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VFC_TO_NETWORK_ROLE_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `vm_type` varchar(255) DEFAULT NULL,
+ `network_role_tag` varchar(255) DEFAULT NULL,
+ `ipv4_count` int(11) NOT NULL,
+ `ipv6_count` int(11) NOT NULL,
+ `ipv4_use_dhcp` char(1) DEFAULT NULL,
+ `ipv6_use_dhcp` char(1) DEFAULT NULL,
+ `ipv4_ip_version` char(1) DEFAULT NULL,
+ `ipv6_ip_version` char(1) DEFAULT NULL,
+ `extcp_subnetpool_id` varchar(512) DEFAULT NULL,
+ `ipv4_floating_count` int(11) DEFAULT NULL,
+ `ipv6_floating_count` int(11) DEFAULT NULL,
+ `ipv4_address_plan_name` varchar(512) DEFAULT NULL,
+ `ipv6_address_plan_name` varchar(512) DEFAULT NULL,
+ `ipv4_vrf_name` varchar(512) DEFAULT NULL,
+ `ipv6_vrf_name` varchar(512) DEFAULT NULL,
+ `subnet_role` varchar(255) DEFAULT NULL,
+ `subinterface_indicator` char(1) DEFAULT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VFC_TO_NETWORK_ROLE_MAPPING` (`vfc_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=1791 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `naming_policy` varchar(255) DEFAULT NULL,
+ `ecomp_generated_naming` char(1) DEFAULT NULL,
+ `avail_zone_max_count` int(11) DEFAULT NULL,
+ `nf_function` varchar(255) DEFAULT NULL,
+ `nf_code` varchar(255) DEFAULT NULL,
+ `nf_type` varchar(255) DEFAULT NULL,
+ `nf_role` varchar(255) DEFAULT NULL,
+ `vendor` varchar(255) DEFAULT NULL,
+ `vendor_version` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODULE_MODEL`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_MODULE_MODEL` (
+ `customization_uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) DEFAULT NULL,
+ `uuid` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `vf_module_type` varchar(255) DEFAULT NULL,
+ `availability_zone_count` int(11) DEFAULT NULL,
+ `ecomp_generated_vm_assignments` char(1) DEFAULT NULL,
+ PRIMARY KEY (`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_MODULE_TO_VFC_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_MODULE_TO_VFC_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vf_module_customization_uuid` varchar(255) NOT NULL,
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `vm_type` varchar(255) NOT NULL,
+ `vm_count` int(11) NOT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VF_MODULE_TO_VFC_MAPPING` (`vf_module_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=1591 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VF_TO_NETWORK_ROLE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VF_TO_NETWORK_ROLE_MAPPING` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `vf_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`seq`),
+ KEY `IX1_VF_TO_NETWORK_ROLE_MAPPING` (`vf_customization_uuid`)
+) ENGINE=InnoDB AUTO_INCREMENT=348 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VIPR_CONFIGURATION`
+--
+
+CREATE TABLE IF NOT EXISTS `VIPR_CONFIGURATION` (
+ `seq` int(11) NOT NULL AUTO_INCREMENT,
+ `serial_number` varchar(255) DEFAULT NULL,
+ `vnf_id` varchar(255) DEFAULT NULL,
+ `vnf_name` varchar(255) DEFAULT NULL,
+ `ecomp_service_instance_id` varchar(255) DEFAULT NULL,
+ `vm_name` varchar(255) DEFAULT NULL,
+ `cloud_region_id` varchar(255) DEFAULT NULL,
+ `cloud_owner` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`seq`)
+) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VIPR_SZ_MANAGER_KEY`
+--
+
+CREATE TABLE IF NOT EXISTS `VIPR_SZ_MANAGER_KEY` (
+ `vipr_sz_manager_ip_addr` varchar(40) NOT NULL,
+ `vipr_sz_manager_state` varchar(10) DEFAULT NULL,
+ `vipr_sz_manager_api_key` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vipr_sz_manager_ip_addr`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_ID_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_ID_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `svc_instance_id` varchar(80) DEFAULT NULL,
+ `availability_zone` varchar(100) DEFAULT NULL,
+ `vplspe_name` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`vlan_id`,`aic_site_id`,`purpose`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_L3INTERFACE_IPV4_ADDRESS`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_L3INTERFACE_IPV4_ADDRESS` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `l3_interface_ipv4_address` varchar(64) NOT NULL,
+ `l3_interface_ipv4_prefix_length` varchar(45) DEFAULT NULL,
+ `vlan_id_inner` varchar(45) DEFAULT NULL,
+ `vlan_id_outer` varchar(45) DEFAULT NULL,
+ `is_floating` varchar(1) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`,`l3_interface_ipv4_address`),
+ KEY `FK_VLAN_L3INTERFACE_IPV4_ADDRESS_LINTERFACE_VLAN_IDX` (`vnf_id`,`interface_name`),
+ CONSTRAINT `FK_VLAN_L3INTERFACE_IPV4_ADDRESS_LINTERFACE_VLAN` FOREIGN KEY (`vnf_id`, `interface_name`, `vlan_interface`) REFERENCES `LINTERFACE_VLAN` (`vnf_id`, `interface_name`, `vlan_interface`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_L3INTERFACE_IPV6_ADDRESS`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_L3INTERFACE_IPV6_ADDRESS` (
+ `vnf_id` varchar(80) NOT NULL,
+ `interface_name` varchar(255) NOT NULL,
+ `vlan_interface` varchar(255) NOT NULL,
+ `l3_interface_ipv6_address` varchar(64) NOT NULL,
+ `l3_interface_ipv6_prefix_length` varchar(45) DEFAULT NULL,
+ `vlan_id_inner` varchar(45) DEFAULT NULL,
+ `vlan_id_outer` varchar(45) DEFAULT NULL,
+ `is_floating` varchar(1) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`,`interface_name`,`vlan_interface`,`l3_interface_ipv6_address`),
+ KEY `FK_VLAN_L3INTERFACE_IPV6_ADDRESS_LINTERFACE_VLAN_IDX` (`vnf_id`,`interface_name`,`vlan_interface`),
+ CONSTRAINT `FK_VLAN_L3INTERFACE_IPV6_ADDRESS_LINTERFACE_VLAN` FOREIGN KEY (`vnf_id`, `interface_name`, `vlan_interface`) REFERENCES `LINTERFACE_VLAN` (`vnf_id`, `interface_name`, `vlan_interface`) ON DELETE NO ACTION ON UPDATE NO ACTION
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_PLAN_ID`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_PLAN_ID` (
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `vlan_plan_id_count` int(4) NOT NULL,
+ PRIMARY KEY (`vlan_plan_id_count`,`plan_type`,`purpose`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_POOL` (
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `vlan_plan_id` varchar(100) NOT NULL,
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `status` varchar(40) NOT NULL,
+ `reserved_id` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`aic_site_id`,`availability_zone`,`vlan_plan_id`,`plan_type`,`purpose`,`vlan_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VLAN_RANGES`
+--
+
+CREATE TABLE IF NOT EXISTS `VLAN_RANGES` (
+ `vlan_plan_id` varchar(100) NOT NULL,
+ `plan_type` varchar(40) NOT NULL,
+ `purpose` varchar(40) NOT NULL,
+ `range_start` int(4) NOT NULL,
+ `range_end` int(4) NOT NULL,
+ `generated` char(1) DEFAULT NULL,
+ PRIMARY KEY (`vlan_plan_id`,`plan_type`,`purpose`,`range_start`,`range_end`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `VM_NAME_INDEX` (
+ `vm_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vm_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_NETWORKS`
+--
+
+CREATE TABLE IF NOT EXISTS `VM_NETWORKS` (
+ `vnf_type` varchar(200) NOT NULL,
+ `vm_type` varchar(45) NOT NULL,
+ `network_role` varchar(45) NOT NULL,
+ `assign_ips` tinyint(1) NOT NULL,
+ `assign_macs` tinyint(1) NOT NULL,
+ `assign_floating_ip` tinyint(1) NOT NULL,
+ `ip_count` int(11) DEFAULT NULL,
+ PRIMARY KEY (`vnf_type`,`vm_type`,`network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VM_PROFILE`
+--
+
+CREATE TABLE IF NOT EXISTS `VM_PROFILE` (
+ `vnf_type` varchar(200) NOT NULL,
+ `vm_type` varchar(45) NOT NULL,
+ `vm_count` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_type`,`vm_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF` (
+ `vnf_id` varchar(80) NOT NULL,
+ `vnf_name` varchar(80) NOT NULL,
+ `vnf_type` varchar(10) NOT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `availability_zone` varchar(80) DEFAULT NULL,
+ `aic_site_id` varchar(80) DEFAULT NULL,
+ `oam_ipv4_address` varchar(20) DEFAULT NULL,
+ `vnf_name2` varchar(80) DEFAULT NULL,
+ `vpe_id` varchar(80) NOT NULL,
+ `ipv4_loopback0_address` varchar(80) DEFAULT NULL,
+ `license_key` varchar(256) DEFAULT NULL,
+ `entitlement_resource_uuid` varchar(256) DEFAULT NULL,
+ PRIMARY KEY (`vnf_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNFC_DG_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VNFC_DG_MAPPING` (
+ `vnfc_dg_mapping_id` int(11) NOT NULL AUTO_INCREMENT,
+ `action` varchar(50) DEFAULT NULL,
+ `api_version` varchar(10) DEFAULT NULL,
+ `vnf_type` varchar(50) DEFAULT NULL,
+ `vnfc_type` varchar(50) DEFAULT NULL,
+ `dg_name` varchar(50) NOT NULL,
+ `dg_version` varchar(50) DEFAULT NULL,
+ `dg_module` varchar(50) NOT NULL,
+ PRIMARY KEY (`vnfc_dg_mapping_id`),
+ UNIQUE KEY `input_constraint` (`action`,`api_version`,`vnf_type`,`vnfc_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNFC_REFERENCE`
+--
+
+CREATE TABLE IF NOT EXISTS `VNFC_REFERENCE` (
+ `vnfc_reference_id` int(11) NOT NULL AUTO_INCREMENT,
+ `action` varchar(50) NOT NULL,
+ `vnf_type` varchar(50) NOT NULL,
+ `vm_instance` int(11) NOT NULL,
+ `vnfc_instance` int(11) NOT NULL,
+ `vnfc_type` varchar(50) NOT NULL,
+ `vnfc_function_code` varchar(50) NOT NULL,
+ `ipaddress_v4_oam_vip` varchar(50) DEFAULT NULL,
+ `group_notation_type` varchar(50) DEFAULT NULL,
+ `group_notation_value` varchar(50) DEFAULT NULL,
+ PRIMARY KEY (`vnfc_reference_id`),
+ UNIQUE KEY `vnfc_reference_id` (`vnfc_reference_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_IMAGE`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_IMAGE` (
+ `application_vendor` varchar(255) NOT NULL,
+ `application_version` varchar(255) NOT NULL,
+ `att_uuid` varchar(255) NOT NULL,
+ `application` varchar(255) DEFAULT NULL,
+ `selflink` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`application_vendor`,`application_version`,`att_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_MODEL_LICENSES`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_MODEL_LICENSES` (
+ `att_part_number` varchar(255) NOT NULL,
+ `license_assignment_group` varchar(255) NOT NULL,
+ `license_required` tinyint(1) DEFAULT NULL,
+ `entitlement_assignment_group` varchar(255) DEFAULT NULL,
+ `entitlement_required` tinyint(1) DEFAULT '0',
+ `feature_group_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`att_part_number`,`license_assignment_group`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_MODEL_LICENSE_FEATURES`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_MODEL_LICENSE_FEATURES` (
+ `att_part_number` varchar(255) NOT NULL,
+ `license_assignment_group` varchar(255) NOT NULL,
+ `feature` varchar(255) NOT NULL,
+ PRIMARY KEY (`att_part_number`,`license_assignment_group`,`feature`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NAME_INDEX`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NAME_INDEX` (
+ `vnf_name_prefix` varchar(255) NOT NULL,
+ `index_number` int(11) NOT NULL,
+ PRIMARY KEY (`vnf_name_prefix`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORKS`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NETWORKS` (
+ `vnf_type` varchar(200) NOT NULL,
+ `network_role` varchar(45) NOT NULL,
+ PRIMARY KEY (`vnf_type`,`network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORK_CONNECTION`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NETWORK_CONNECTION` (
+ `connection_uuid` varchar(80) NOT NULL,
+ `vnf_id` varchar(80) NOT NULL,
+ `connection_id` varchar(80) DEFAULT NULL,
+ `connection_type` varchar(20) DEFAULT NULL,
+ `neutron_network_id` varchar(80) DEFAULT NULL,
+ `neutron_network_name` varchar(80) DEFAULT NULL,
+ `orchestration_status` varchar(20) DEFAULT NULL,
+ `switch_id` varchar(40) DEFAULT NULL,
+ `heat_stack_id` varchar(80) DEFAULT NULL,
+ `mso_catalog_key` varchar(80) DEFAULT NULL,
+ `provider_network` varchar(80) DEFAULT NULL,
+ `port_group_id` varchar(80) DEFAULT NULL,
+ `port_group_name` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`connection_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_NETWORK_CONNECTION_VLAN`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_NETWORK_CONNECTION_VLAN` (
+ `vlan_uuid` varchar(80) NOT NULL,
+ `vlan_id` int(4) NOT NULL,
+ `vlan_type` varchar(5) NOT NULL,
+ `connection_uuid` varchar(80) DEFAULT NULL,
+ PRIMARY KEY (`vlan_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_PROFILE`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_PROFILE` (
+ `vnf_type` varchar(200) NOT NULL,
+ `availability_zone_count` int(11) NOT NULL,
+ `equipment_role` varchar(80) NOT NULL,
+ PRIMARY KEY (`vnf_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VNF_SERVICE_TO_NETWORK_ROLE_FILTER`
+--
+
+CREATE TABLE IF NOT EXISTS `VNF_SERVICE_TO_NETWORK_ROLE_FILTER` (
+ `vnf_service_type` varchar(60) NOT NULL,
+ `network_role_filter` varchar(60) NOT NULL,
+ PRIMARY KEY (`vnf_service_type`,`network_role_filter`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_LOCK`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_LOCK` (
+ `vpe_name` varchar(20) NOT NULL,
+ `vpn_lock` varchar(20) NOT NULL,
+ PRIMARY KEY (`vpe_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_MAC_ADDRESS_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_MAC_ADDRESS_POOL` (
+ `id` int(11) NOT NULL,
+ `mac_address` varchar(50) NOT NULL,
+ `sw_name` varchar(30) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_MAC_ADDRESS_TO_HOSTNAME_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_MAC_ADDRESS_TO_HOSTNAME_MAPPING` (
+ `id` int(11) NOT NULL,
+ `hostname` varchar(50) NOT NULL,
+ `assigned_user` varchar(25) NOT NULL,
+ `assigned_date` date DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPE_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VPE_POOL` (
+ `vpe_name` varchar(20) NOT NULL,
+ `ipv4_oam_address` varchar(20) NOT NULL,
+ `loopback0_ipv4_address` varchar(20) NOT NULL,
+ `provisioning_status` varchar(10) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `vlan_id_outer` varchar(20) NOT NULL,
+ `vendor` varchar(20) NOT NULL,
+ `physical_intf_name` varchar(40) NOT NULL,
+ `physical_intf_speed` varchar(20) NOT NULL,
+ `physical_intf_units` varchar(20) NOT NULL,
+ `vpe_uuid` varchar(80) DEFAULT NULL,
+ `vpe_id` varchar(80) NOT NULL,
+ `image_filename` varchar(100) DEFAULT NULL,
+ `as_number` varchar(20) NOT NULL,
+ `loopback5000` varchar(16) DEFAULT NULL,
+ `loopback10` varchar(16) DEFAULT NULL,
+ `aic_version` varchar(50) DEFAULT NULL,
+ `vpe_capacity` int(11) NOT NULL,
+ PRIMARY KEY (`aic_site_id`,`vpe_name`,`availability_zone`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPLSPE_POOL`
+--
+
+CREATE TABLE IF NOT EXISTS `VPLSPE_POOL` (
+ `vplspe_name` varchar(20) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `availability_zone` varchar(100) NOT NULL,
+ `physical_intf_name` varchar(40) NOT NULL,
+ `physical_intf_speed` varchar(20) NOT NULL,
+ `physical_intf_units` varchar(20) NOT NULL,
+ `loopback0_ipv4_address` varchar(20) NOT NULL,
+ `vlan_id_outer` varchar(20) NOT NULL,
+ `vplspe_uuid` varchar(80) DEFAULT NULL,
+ `image_filename` varchar(100) DEFAULT NULL,
+ `provisioning_status` varchar(10) DEFAULT NULL,
+ `vendor` varchar(20) DEFAULT NULL,
+ PRIMARY KEY (`vplspe_name`,`aic_site_id`,`availability_zone`,`physical_intf_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VPN_BINDINGS`
+--
+
+CREATE TABLE IF NOT EXISTS `VPN_BINDINGS` (
+ `network_customization_uuid` varchar(255) NOT NULL,
+ `binding_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_customization_uuid`,`binding_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VRR_FUNCTION_CODE_VMTYPE_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VRR_FUNCTION_CODE_VMTYPE_MAPPING` (
+ `ptnii_function_code` varchar(128) NOT NULL,
+ `vm_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`ptnii_function_code`,`vm_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `VSERVER` (
+ `tenant_id` varchar(40) NOT NULL,
+ `vserver_id` varchar(40) NOT NULL,
+ `aic_site_id` varchar(100) NOT NULL,
+ `vendor` varchar(20) NOT NULL,
+ `image_name` varchar(100) NOT NULL,
+ `vnf_type` varchar(10) NOT NULL,
+ `vnf_id` varchar(80) NOT NULL,
+ PRIMARY KEY (`tenant_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER2`
+--
+
+CREATE TABLE IF NOT EXISTS `VSERVER2` (
+ `tenant_id` varchar(255) NOT NULL,
+ `vserver_id` varchar(128) NOT NULL,
+ `vserver_name` varchar(255) NOT NULL,
+ `vserver_name2` varchar(255) DEFAULT NULL,
+ `prov_status` varchar(20) DEFAULT NULL,
+ `selflink` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`tenant_id`,`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VSERVER_PSERVER`
+--
+
+CREATE TABLE IF NOT EXISTS `VSERVER_PSERVER` (
+ `vserver_id` varchar(128) NOT NULL,
+ `pserver_hostname` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`vserver_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `VVIG_VM_INSTANCE_TO_CLOUD_REGION_MAPPING`
+--
+
+CREATE TABLE IF NOT EXISTS `VVIG_VM_INSTANCE_TO_CLOUD_REGION_MAPPING` (
+ `key_id` varchar(128) NOT NULL,
+ `cloud_region` varchar(128) NOT NULL,
+ `key_type` varchar(128) NOT NULL,
+ PRIMARY KEY (`key_id`,`cloud_region`,`key_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Table structure for table `WAN_COMBO_ALLOWABLE`
+--
+
+CREATE TABLE IF NOT EXISTS `WAN_COMBO_ALLOWABLE` (
+ `combo_sequence` int(11) NOT NULL AUTO_INCREMENT,
+ `topology` varchar(16) DEFAULT 'unknown',
+ `internet_topology` varchar(20) DEFAULT NULL,
+ `wan1` varchar(40) DEFAULT NULL,
+ `wan2` varchar(40) DEFAULT NULL,
+ `new_start_release_flexware` varchar(16) DEFAULT 'unknown',
+ `is_active_flexware` varchar(1) DEFAULT 'N',
+ `new_start_release_dhv` varchar(16) DEFAULT 'unknown',
+ `is_active_dhv` varchar(1) DEFAULT 'N',
+ `ucpe_type` varchar(32) DEFAULT 'stand-alone',
+ `description` varchar(128) NOT NULL,
+ PRIMARY KEY (`combo_sequence`),
+ UNIQUE KEY `IX1_WAN_COMBO_ALLOWABLE` (`internet_topology`,`wan1`,`wan2`)
+) ENGINE=InnoDB AUTO_INCREMENT=147 DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `DHCP_MAP` (
+ `mac_addr` varchar(128) NOT NULL,
+ `ip_addr` varchar(128) DEFAULT NULL,
+ PRIMARY KEY (`mac_addr`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_GROUP_TO_TARGET_NODE_MAPPING` (
+ `group_uuid` varchar(255) NOT NULL,
+ `parent_uuid` varchar(255) NOT NULL,
+ `target_node_uuid` varchar(255) NOT NULL,
+ `target_type` varchar(255) NULL,
+ `table_name` varchar(255) NULL,
+ PRIMARY KEY (`group_uuid`, `parent_uuid`, `target_node_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+
+CREATE TABLE IF NOT EXISTS `ATTRIBUTE_VALUE_PAIR` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `attribute_name` varchar(255) NOT NULL,
+ `resource_type` varchar(255) NOT NULL,
+ `attribute_value` varchar(255) DEFAULT NULL,
+ `resource_customization_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`attribute_name`,`resource_type`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `COMPLEX_RESOURCE` (
+ `uuid` varchar(255) NOT NULL,
+ `model_yaml` longblob,
+ `invariant_uuid` varchar(255) NOT NULL,
+ `customization_uuid` varchar(255) NOT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `name` varchar(255) DEFAULT NULL,
+ `description` varchar(255) DEFAULT NULL,
+ `type` varchar(255) NOT NULL,
+ PRIMARY KEY (`uuid`,`customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `NODE_CAPABILITY` (
+ `capability_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_provider_uuid` varchar(255) NOT NULL,
+ `capability_provider_customization_uuid` varchar(255) NOT NULL,
+ `capability_name` varchar(255) DEFAULT NULL,
+ `capability_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`capability_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `NODE_REQUIREMENT` (
+ `requirement_id` int(11) NOT NULL AUTO_INCREMENT,
+ `capability_id` int(11) DEFAULT NULL,
+ `capability_provider_uuid` varchar(255) DEFAULT NULL,
+ `capability_provider_customization_uuid` varchar(255) DEFAULT NULL,
+ `capability_consumer_uuid` varchar(255) NOT NULL,
+ `capability_consumer_customization_uuid` varchar(255) NOT NULL,
+ `requirement_name` varchar(255) NOT NULL,
+ PRIMARY KEY (`requirement_id`),
+ KEY `NODE_REQUIREMENT_TO_NODE_CAPABILITY` (`capability_id`)
+) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RELATED_NETWORK_ROLE` (
+ `network_model_customization_uuid` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`network_model_customization_uuid`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_GROUP` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `group_uuid` varchar(255) NOT NULL,
+ `group_customization_uuid` varchar(255) DEFAULT NULL,
+ `group_invariant_uuid` varchar(255) NOT NULL,
+ `group_name` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `group_type` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`group_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_POLICY` (
+ `resource_uuid` varchar(255) NOT NULL,
+ `policy_uuid` varchar(255) NOT NULL,
+ `policy_customization_uuid` varchar(255) DEFAULT NULL,
+ `policy_invariant_uuid` varchar(255) NOT NULL,
+ `policy_name` varchar(255) DEFAULT NULL,
+ `version` varchar(255) DEFAULT NULL,
+ `policy_type` varchar(255) DEFAULT NULL,
+ `property_type` varchar(255) DEFAULT NULL,
+ `property_source` varchar(255) DEFAULT NULL,
+ `property_name` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`resource_uuid`,`policy_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `RESOURCE_POLICY_TO_TARGET_NODE_MAPPING` (
+ `policy_uuid` varchar(255) NOT NULL,
+ `parent_uuid` varchar(255) NOT NULL,
+ `target_node_uuid` varchar(255) NOT NULL,
+ `target_type` varchar(255) DEFAULT NULL,
+ `target_node_customization_uuid` varchar(255) DEFAULT NULL,
+ `policy_customization_uuid` varchar(255) DEFAULT NULL,
+ PRIMARY KEY (`policy_uuid`,`parent_uuid`,`target_node_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+
+CREATE TABLE IF NOT EXISTS `SERVICE_MODEL_TO_COMPLEX_RESOURCE_MAPPING` (
+ `service_uuid` varchar(255) NOT NULL,
+ `complex_resource_uuid` varchar(255) NOT NULL,
+ `complex_resource_customization_uuid` varchar(255) NOT NULL,
+ PRIMARY KEY (`service_uuid`,`complex_resource_uuid`,`complex_resource_customization_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `VFC_RELATED_NETWORK_ROLE` (
+ `vfc_customization_uuid` varchar(255) NOT NULL,
+ `vm_type` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`vfc_customization_uuid`,`vm_type`,`network_role`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+CREATE TABLE IF NOT EXISTS `VNF_RELATED_NETWORK_ROLE` (
+ `vnf_customization_uuid` varchar(255) NOT NULL,
+ `network_role` varchar(255) NOT NULL,
+ `related_network_role` varchar(255) NOT NULL,
+ PRIMARY KEY (`vnf_customization_uuid`,`network_role`,`related_network_role`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
diff --git a/ms/sliboot/src/main/resources/shiro-users.properties b/ms/sliboot/src/main/resources/shiro-users.properties
new file mode 100644
index 00000000..df4b1ae7
--- /dev/null
+++ b/ms/sliboot/src/main/resources/shiro-users.properties
@@ -0,0 +1,3 @@
+user.admin = Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U,service
+role.service = odl-api:*
+
diff --git a/ms/sliboot/src/main/resources/sli_healthcheck.xml b/ms/sliboot/src/main/resources/sli_healthcheck.xml
new file mode 100644
index 00000000..bc8e2f70
--- /dev/null
+++ b/ms/sliboot/src/main/resources/sli_healthcheck.xml
@@ -0,0 +1,27 @@
+<!--
+ ============LICENSE_START=======================================================
+ openECOMP : SDN-C
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights
+ reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ============LICENSE_END=========================================================
+ -->
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module='sli' version='0.7.0'><method rpc='healthcheck' mode='sync'>
+<set>
+<parameter name='error-code' value='200' />
+<parameter name='error-message' value='SDN-C is healthy'/>
+<parameter name='ack-final' value='Y'/>
+</set></method></service-logic>
diff --git a/ms/sliboot/src/main/resources/sli_vlbcheck.xml b/ms/sliboot/src/main/resources/sli_vlbcheck.xml
new file mode 100644
index 00000000..820a85c1
--- /dev/null
+++ b/ms/sliboot/src/main/resources/sli_vlbcheck.xml
@@ -0,0 +1,27 @@
+<!--
+ ============LICENSE_START=======================================================
+ openECOMP : SDN-C
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights
+ reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ============LICENSE_END=========================================================
+ -->
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module='sli' version='0.7.0'><method rpc='vlbcheck' mode='sync'>
+<set>
+<parameter name='error-code' value='200' />
+<parameter name='error-message' value='SDN-C is healthy'/>
+<parameter name='ack-final' value='Y'/>
+</set></method></service-logic>
diff --git a/ms/sliboot/src/main/resources/startSliboot.sh b/ms/sliboot/src/main/resources/startSliboot.sh
new file mode 100644
index 00000000..3ca2ad6d
--- /dev/null
+++ b/ms/sliboot/src/main/resources/startSliboot.sh
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+###
+# ============LICENSE_START=======================================================
+# ONAP : CCSDK
+# ================================================================================
+# Copyright (C) 2020 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+###
+
+export CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk}
+export SLIBOOT_JAR=${SLIBOOT_JAR:-@ccsdk.sliboot.jar@}
+export SVCLOGIC_DIR=${SVCLOGIC_DIR:-opt/onap/ccsdk/svclogic/graphs}
+export LOG_PATH=${LOG_PATH:-/var/log/onap/ccsdk}
+export CCSDK_CONFIG_DIR=${CCSDK_CONFIG_DIR:-/opt/onap/ccsdk/config}
+export JAVA_SECURITY_DIR=${JAVA_SECURITY_DIR:-/etc/ssl/certs/java}
+export MYSQL_DB_HOST=${MYSQL_DB_HOST:-dbhost}
+
+#
+# Wait for database
+#
+echo "Waiting for database"
+until mysqladmin ping -h ${MYSQL_DB_HOST} --silent
+do
+ printf "."
+ sleep 1
+done
+echo -e "\nDatabase ready"
+
+# Create tablespace and user account
+
+mysql -h ${MYSQL_DB_HOST} -u root -p${MYSQL_ROOT_PASSWORD} mysql <<-END
+CREATE DATABASE ${MYSQL_DB_DATABASE};
+CREATE USER '${MYSQL_DB_USER}'@'localhost' IDENTIFIED BY '${MYSQL_DB_PASSWD}';
+CREATE USER '${MYSQL_DB_USER}'@'%' IDENTIFIED BY '${MYSQL_DB_PASSWD}';
+GRANT ALL PRIVILEGES ON ${MYSQL_DB_DATABASE}.* TO '${MYSQL_DB_USER}'@'localhost' WITH GRANT OPTION;
+GRANT ALL PRIVILEGES ON ${MYSQL_DB_DATABASE}.* TO '${MYSQL_DB_USER}'@'%' WITH GRANT OPTION;
+commit;
+END
+
+# Initialize schema
+mysql -h ${MYSQL_DB_HOST} -u ${MYSQL_DB_USER} -p${MYSQL_DB_PASSWD} ${MYSQL_DB_DATABASE} < ${CCSDK_HOME}/config/schema.sql
+
+
+echo -e "\nCerts ready"
+
+cd $CCSDK_HOME
+java -DserviceLogicDirectory=${SVCLOGIC_DIR} -DLOG_PATH=${LOG_PATH} -jar ${CCSDK_HOME}/lib/${SLIBOOT_JAR}
+
diff --git a/ms/sliboot/src/main/resources/svclogic.properties b/ms/sliboot/src/main/resources/svclogic.properties
new file mode 100644
index 00000000..76865dd1
--- /dev/null
+++ b/ms/sliboot/src/main/resources/svclogic.properties
@@ -0,0 +1,29 @@
+###
+# ============LICENSE_START=======================================================
+# ONAP : CCSDK
+# ================================================================================
+# Copyright (C) 2017 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+###
+
+org.onap.ccsdk.sli.dbtype = jdbc
+org.onap.ccsdk.sli.jdbc.url=jdbc:mariadb://dbhost:3306/sdnctl
+org.onap.ccsdk.sli.jdbc.driver=org.mariadb.jdbc.Driver
+org.onap.ccsdk.sli.jdbc.database = sdnctl
+org.onap.ccsdk.sli.jdbc.user = sli
+org.onap.ccsdk.sli.jdbc.password = abc123
+
+sliapi.serviceLogicDirectory=/opt/onap/sdnc/svclogic/graphs
diff --git a/ms/sliboot/src/main/resources/truststoreONAPall.jks b/ms/sliboot/src/main/resources/truststoreONAPall.jks
new file mode 100644
index 00000000..ff844b10
--- /dev/null
+++ b/ms/sliboot/src/main/resources/truststoreONAPall.jks
Binary files differ
diff --git a/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java b/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java
new file mode 100644
index 00000000..abca6d94
--- /dev/null
+++ b/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/AppTest.java
@@ -0,0 +1,39 @@
+package org.onap.ccsdk.apps.ms.sliboot;
+
+import org.apache.shiro.realm.Realm;
+import org.apache.shiro.realm.text.PropertiesRealm;
+import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.util.Map;
+
+import static org.junit.Assert.*;
+
+public class AppTest {
+
+ App app;
+
+ @Before
+ public void setUp() throws Exception {
+ app = new App();
+ System.setProperty("serviceLogicProperties", "src/test/resources/svclogic.properties");
+ }
+
+ @Test
+ public void realm() {
+ Realm realm = app.realm();
+ assertTrue(realm instanceof PropertiesRealm);
+
+
+ }
+
+ @Test
+ public void shiroFilterChainDefinition() {
+ ShiroFilterChainDefinition chainDefinition = app.shiroFilterChainDefinition();
+ Map<String, String> chainMap = chainDefinition.getFilterChainMap();
+ assertEquals("anon", chainMap.get("/**"));
+
+
+ }
+} \ No newline at end of file
diff --git a/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/RestconfApiControllerTest.java b/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/RestconfApiControllerTest.java
new file mode 100644
index 00000000..4a7a7ec8
--- /dev/null
+++ b/ms/sliboot/src/test/java/org/onap/ccsdk/apps/ms/sliboot/RestconfApiControllerTest.java
@@ -0,0 +1,172 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - CCSDK
+ * ================================================================================
+ * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.ccsdk.apps.ms.sliboot;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.onap.ccsdk.apps.ms.sliboot.swagger.model.*;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.http.MediaType;
+import org.springframework.test.context.junit4.SpringRunner;
+import org.springframework.test.web.servlet.MockMvc;
+import org.springframework.test.web.servlet.MvcResult;
+import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import java.util.List;
+
+import static org.junit.Assert.*;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+@AutoConfigureMockMvc
+public class RestconfApiControllerTest {
+
+ private static final Logger log = LoggerFactory.getLogger(RestconfApiControllerTest.class);
+
+ @Autowired
+ private MockMvc mvc;
+
+ @Test
+ public void testHealthcheck() throws Exception {
+ String url = "/operations/SLI-API:healthcheck/";
+
+ MvcResult mvcResult =
+ mvc.perform(MockMvcRequestBuilders.post(url).contentType(MediaType.APPLICATION_JSON_VALUE).content(""))
+ .andReturn();
+
+ assertEquals(200, mvcResult.getResponse().getStatus());
+ }
+
+ @Test
+ public void testVlbcheck() throws Exception {
+ String url = "/operations/SLI-API:vlbcheck/";
+
+ MvcResult mvcResult =
+ mvc.perform(MockMvcRequestBuilders.post(url).contentType(MediaType.APPLICATION_JSON_VALUE).content(""))
+ .andReturn();
+
+ assertEquals(200, mvcResult.getResponse().getStatus());
+ }
+
+ @Test
+ public void testExecuteHealthcheck() throws Exception {
+ String url = "/operations/SLI-API:execute-graph/";
+
+ SliApiExecutegraphInput executeGraphData = new SliApiExecutegraphInput();
+ SliApiExecutegraphInputBodyparam executeGraphInput = new SliApiExecutegraphInputBodyparam();
+
+ executeGraphData.setModuleName("sli");
+ executeGraphData.setRpcName("healthcheck");
+ executeGraphData.setMode(SliApiModeEnumeration.SYNC);
+ executeGraphInput.setInput(executeGraphData);
+
+ String jsonString = mapToJson(executeGraphInput);
+ log.error("jsonString is {}", jsonString);
+
+ MvcResult mvcResult =
+ mvc.perform(MockMvcRequestBuilders.post(url).contentType(MediaType.APPLICATION_JSON_VALUE).content(jsonString))
+ .andReturn();
+
+ assertEquals(200, mvcResult.getResponse().getStatus());
+
+ }
+
+ @Test
+ public void testExecuteMissingDg() throws Exception {
+ String url = "/operations/SLI-API:execute-graph/";
+
+ SliApiExecutegraphInputBodyparam executeGraphInput = new SliApiExecutegraphInputBodyparam();
+ SliApiExecutegraphInput executeGraphData = new SliApiExecutegraphInput();
+
+ executeGraphData.setModuleName("sli");
+ executeGraphData.setRpcName("noSuchRPC");
+ executeGraphData.setMode(SliApiModeEnumeration.SYNC);
+ executeGraphInput.setInput(executeGraphData);
+
+ String jsonString = mapToJson(executeGraphInput);
+
+ log.error("jsonString is {}", jsonString);
+
+ MvcResult mvcResult =
+ mvc.perform(MockMvcRequestBuilders.post(url).contentType(MediaType.APPLICATION_JSON_VALUE).content(jsonString))
+ .andReturn();
+
+ assertEquals(401, mvcResult.getResponse().getStatus());
+
+ }
+
+ @Test
+ public void testTestResultAdd() throws Exception {
+ String url = "/config/SLI-API:test-results/";
+
+ MvcResult mvcResult = mvc.perform(MockMvcRequestBuilders.get(url).contentType(MediaType.APPLICATION_JSON_VALUE)).andReturn();
+
+ assertEquals(200, mvcResult.getResponse().getStatus());
+
+ // Delete any existing content before testing insert
+ mvcResult = mvc.perform(MockMvcRequestBuilders.delete(url).contentType(MediaType.APPLICATION_JSON)).andReturn();
+ assertEquals(200, mvcResult.getResponse().getStatus());
+
+ String jsonString = "{\n" +
+ " \"test-result\" : [\n" +
+ " {\n" +
+ " \"test-identifier\" : \"test-1\",\n" +
+ " \"results\" : [\"test result 1\"]\n" +
+ " }\n" +
+ " ]\n" +
+ "}";
+ mvcResult = mvc.perform(MockMvcRequestBuilders.post(url).contentType(MediaType.APPLICATION_JSON_VALUE).accept(MediaType.APPLICATION_JSON_VALUE).content(jsonString))
+ .andReturn();
+ assertEquals(200, mvcResult.getResponse().getStatus());
+
+ mvcResult = mvc.perform(MockMvcRequestBuilders.get(url).contentType(MediaType.APPLICATION_JSON)).andReturn();
+ assertEquals(200, mvcResult.getResponse().getStatus());
+
+ ObjectMapper objectMapper = new ObjectMapper();
+ SliApiTestResults testResults = objectMapper.readValue(mvcResult.getResponse().getContentAsString(), SliApiTestResults.class);
+ assertNotNull(testResults);
+ List<SliApiTestresultsTestResult> testResult = testResults.getTestResult();
+ assertNotNull(testResult);
+ assertFalse(testResult.isEmpty());
+ assertEquals(1, testResult.size());
+ SliApiTestresultsTestResult theResult = testResult.get(0);
+ assertEquals("test-1", theResult.getTestIdentifier());
+ assertEquals("test result 1", theResult.getResults().get(0));
+
+ }
+
+ private String mapToJson(Object obj) throws JsonProcessingException {
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(obj);
+ }
+
+ private SliApiResponseFields respFromJson(String jsonString) throws JsonProcessingException {
+ ObjectMapper objectMapper = new ObjectMapper();
+ return (objectMapper.readValue(jsonString, SliApiResponseFields.class));
+ }
+
+}
diff --git a/ms/sliboot/src/test/resources/DEMO_DEMO.xml b/ms/sliboot/src/test/resources/DEMO_DEMO.xml
new file mode 100755
index 00000000..1b304f18
--- /dev/null
+++ b/ms/sliboot/src/test/resources/DEMO_DEMO.xml
@@ -0,0 +1,35 @@
+<service-logic
+ xmlns='http://www.onap.org/sdnc/svclogic'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DEMO' version='1'>
+ <method rpc='DEMO' mode='sync'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="level" value="error" />
+ <parameter name="field1" value="Slf4jRecorder must be working!" />
+ </record>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID">
+ <parameter name="ctx-destination" value="requestID" />
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains" emitsOutcome='true' >
+ <parameter name="source" value="TEAM" />
+ <parameter name="target" value="I" />
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties" >
+ <parameter name="fileName" value="%SDNC_CONFIG_DIR%/aaf.properties" />
+ <parameter name="contextPrefix" value="tmp.props" />
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="restapiUrl" value="http://127.0.0.1:8080/restconf/config/SLI-API:test-results/"/>
+ <parameter name="restapiUser" value="admin"/>
+ <parameter name="restapiPassword" value="test"/>
+ <parameter name="format" value="json" />
+ <parameter name="httpMethod" value="get" />
+ <parameter name="responsePrefix" value="restapi-result" />
+ </execute>
+ <return status='success'>
+ <parameter name='' value='' />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/ms/sliboot/src/test/resources/application.properties b/ms/sliboot/src/test/resources/application.properties
new file mode 100644
index 00000000..58bf3cd8
--- /dev/null
+++ b/ms/sliboot/src/test/resources/application.properties
@@ -0,0 +1,18 @@
+springfox.documentation.swagger.v2.path=/api-docs
+server.servlet.context-path=/restconf
+server.port=8080
+spring.jackson.date-format=org.onap.ccsdk.apps.ms.sliboot.swagger.RFC3339DateFormat
+spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
+logging.level.com.att=TRACE
+logging.level.org.onap=TRACE
+spring.datasource.url=jdbc:derby:memory:sdnctl;create=true
+spring.datasource.username=sli
+spring.datasource.password=abc123
+spring.datasource.driver-class-name=org.apache.derby.jdbc.EmbeddedDriver
+spring.datasource.testWhileIdle=true
+spring.datasource.validationQuery=SELECT 1
+spring.jpa.show-sql=true
+spring.jpa.hibernate.ddl-auto=update
+spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
+spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+spring.jpa.database=derby \ No newline at end of file
diff --git a/ms/sliboot/src/test/resources/graph.versions b/ms/sliboot/src/test/resources/graph.versions
new file mode 100644
index 00000000..d21278aa
--- /dev/null
+++ b/ms/sliboot/src/test/resources/graph.versions
@@ -0,0 +1,3 @@
+sli healthcheck 0.7.0 sync
+sli vlbcheck 0.7.0 sync
+DEMO DEMO 1 sync
diff --git a/ms/sliboot/src/test/resources/log4j2.properties b/ms/sliboot/src/test/resources/log4j2.properties
new file mode 100644
index 00000000..40d18d15
--- /dev/null
+++ b/ms/sliboot/src/test/resources/log4j2.properties
@@ -0,0 +1,160 @@
+ #-
+ # ============LICENSE_START=======================================================
+ # ONAP - CCSDK
+ # ================================================================================
+ # Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ # ================================================================================
+ # Licensed under the Apache License, Version 2.0 (the "License");
+ # you may not use this file except in compliance with the License.
+ # You may obtain a copy of the License at
+ #
+ # http://www.apache.org/licenses/LICENSE-2.0
+ #
+ # Unless required by applicable law or agreed to in writing, software
+ # distributed under the License is distributed on an "AS IS" BASIS,
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+ # ============LICENSE_END=========================================================
+ #
+
+property.logDir = ${sys:LOG_PATH:-./target}
+
+property.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{currentGraph} - %X{nodeId} | %m%n
+
+#default mdc values
+property.ServiceName = INTERNAL
+property.ErrorCode = 900
+property.ErrorDesc = UnknownError
+
+rootLogger.level = INFO
+rootLogger.appenderRef.AppFile.ref = AppFile
+rootLogger.appenderRef.Console.ref = Console
+rootLogger.appenderRef.DebugFile.ref = DebugFile
+rootLogger.appenderRef.ErrorFile.ref = ErrorFile
+rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter
+rootLogger.appenderRef.Console.filter.threshold.level = DEBUG
+
+appender.console.type = Console
+appender.console.name = Console
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = ${pattern}
+
+appender.app.type = RollingRandomAccessFile
+appender.app.name = AppFile
+appender.app.fileName = ${logDir}/app.log
+appender.app.filePattern = ${logDir}/app.log.%i
+appender.app.immediateFlush = true
+appender.app.append = true
+appender.app.layout.type = PatternLayout
+appender.app.layout.pattern = ${pattern}
+appender.app.policies.type = Policies
+appender.app.policies.size.type = SizeBasedTriggeringPolicy
+appender.app.policies.size.size = 10MB
+appender.app.strategy.type = DefaultRolloverStrategy
+appender.app.strategy.max = 100
+appender.app.strategy.fileIndex = min
+
+appender.debug.type = RollingRandomAccessFile
+appender.debug.name = DebugFile
+appender.debug.fileName = ${logDir}/debug.log
+appender.debug.filePattern = ${logDir}/debug.log.%i
+appender.debug.immediateFlush = true
+appender.debug.append = true
+appender.debug.layout.type = PatternLayout
+appender.debug.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|%-5.5p|%-32.32c{1}|%X{currentGraph} - %X{nodeId}|%m%n
+appender.debug.policies.type = Policies
+appender.debug.policies.size.type = SizeBasedTriggeringPolicy
+appender.debug.policies.size.size = 10MB
+appender.debug.strategy.type = DefaultRolloverStrategy
+appender.debug.strategy.max = 200
+appender.debug.strategy.fileIndex = min
+
+appender.error.type = RollingRandomAccessFile
+appender.error.name = ErrorFile
+appender.error.fileName = ${logDir}/error.log
+appender.error.filePattern = ${logDir}/error.log.%i
+appender.error.immediateFlush = true
+appender.error.append = true
+appender.error.layout.type = PatternLayout
+appender.error.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|$${ctx:ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%p|$${ctx:ErrorCode}|$${ctx:ErrorDesc}|%m%n
+
+appender.error.policies.type = Policies
+appender.error.policies.size.type = SizeBasedTriggeringPolicy
+appender.error.policies.size.size = 10MB
+appender.error.strategy.type = DefaultRolloverStrategy
+appender.error.strategy.max = 100
+appender.error.strategy.fileIndex = min
+appender.error.filter.threshold.type = ThresholdFilter
+appender.error.filter.threshold.level = WARN
+
+appender.metric.type = RollingRandomAccessFile
+appender.metric.name = MetricFile
+appender.metric.fileName = ${logDir}/metric.log
+appender.metric.filePattern = ${logDir}/metric.log.%i
+appender.metric.immediateFlush = true
+appender.metric.append = true
+appender.metric.layout.type = PatternLayout
+appender.metric.layout.pattern=%X{InvokeTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|%p|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|||%X{TargetElement}|%markerSimpleName|%X|%X{currentGraph} - %X{nodeId}||%m%n
+appender.metric.policies.type = Policies
+appender.metric.policies.size.type = SizeBasedTriggeringPolicy
+appender.metric.policies.size.size = 10MB
+appender.metric.strategy.type = DefaultRolloverStrategy
+appender.metric.strategy.max = 100
+appender.metric.strategy.fileIndex = min
+
+appender.audit.type = RollingRandomAccessFile
+appender.audit.name = AuditFile
+appender.audit.fileName = ${logDir}/audit.log
+appender.audit.filePattern = ${logDir}/audit.log.%i
+appender.audit.immediateFlush = true
+appender.audit.append = true
+appender.audit.layout.type = PatternLayout
+appender.audit.layout.pattern=%X{EntryTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|INFO|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|%X{AUDIT-Unused}|%X{AUDIT-ProcessKey}|%markerSimpleName|%X|||%m%n
+appender.audit.policies.type = Policies
+appender.audit.policies.size.type = SizeBasedTriggeringPolicy
+appender.audit.policies.size.size = 10MB
+appender.audit.strategy.type = DefaultRolloverStrategy
+appender.audit.strategy.max = 200
+appender.audit.strategy.fileIndex = min
+
+appender.rr.name = RequestResponseFile
+appender.rr.type = RollingRandomAccessFile
+appender.rr.fileName = ${logDir}/request-response.log
+appender.rr.filePattern = ${logDir}/request-response.log.%i
+appender.rr.immediateFlush = true
+appender.rr.append = true
+appender.rr.layout.type = PatternLayout
+appender.rr.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%X{PartnerName}|%m%n
+appender.rr.policies.type = Policies
+appender.rr.policies.size.type = SizeBasedTriggeringPolicy
+appender.rr.policies.size.size = 10MB
+appender.rr.strategy.type = DefaultRolloverStrategy
+appender.rr.strategy.max = 100
+appender.rr.strategy.fileIndex = min
+
+logger.metric.name = org.onap.ccsdk.sli.core.filters.metric
+logger.metric.level = INFO
+logger.metric.additivity = false
+logger.metric.appenderRef.MetricFile.ref = MetricFile
+
+logger.metric2.name = org.onap.logging.filter.base.AbstractMetricLogFilter
+logger.metric2.level = INFO
+logger.metric2.additivity = false
+logger.metric2.appenderRef.MetricFile.ref = MetricFile
+
+logger.audit.name = org.onap.logging.filter.base.AbstractAuditLogFilter
+logger.audit.level = INFO
+logger.audit.additivity = false
+logger.audit.appenderRef.AuditFile.ref = AuditFile
+
+logger.rr.name = org.onap.logging.filter.base.PayloadLoggingServletFilter
+logger.rr.level = INFO
+logger.rr.additivity = false
+logger.rr.appenderRef.RequestResponseFile.ref = RequestResponseFile
+
+logger.ccsdk.name = org.onap.ccsdk
+logger.ccsdk.level = DEBUG
+
+logger.onaplogging.name = org.onap.logging
+logger.onaplogging.level = DEBUG \ No newline at end of file
diff --git a/ms/sliboot/src/test/resources/shiro-users.properties b/ms/sliboot/src/test/resources/shiro-users.properties
new file mode 100644
index 00000000..df4b1ae7
--- /dev/null
+++ b/ms/sliboot/src/test/resources/shiro-users.properties
@@ -0,0 +1,3 @@
+user.admin = Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U,service
+role.service = odl-api:*
+
diff --git a/ms/sliboot/src/test/resources/sli_healthcheck.xml b/ms/sliboot/src/test/resources/sli_healthcheck.xml
new file mode 100644
index 00000000..bc8e2f70
--- /dev/null
+++ b/ms/sliboot/src/test/resources/sli_healthcheck.xml
@@ -0,0 +1,27 @@
+<!--
+ ============LICENSE_START=======================================================
+ openECOMP : SDN-C
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights
+ reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ============LICENSE_END=========================================================
+ -->
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module='sli' version='0.7.0'><method rpc='healthcheck' mode='sync'>
+<set>
+<parameter name='error-code' value='200' />
+<parameter name='error-message' value='SDN-C is healthy'/>
+<parameter name='ack-final' value='Y'/>
+</set></method></service-logic>
diff --git a/ms/sliboot/src/test/resources/sli_vlbcheck.xml b/ms/sliboot/src/test/resources/sli_vlbcheck.xml
new file mode 100644
index 00000000..820a85c1
--- /dev/null
+++ b/ms/sliboot/src/test/resources/sli_vlbcheck.xml
@@ -0,0 +1,27 @@
+<!--
+ ============LICENSE_START=======================================================
+ openECOMP : SDN-C
+ ================================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights
+ reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ============LICENSE_END=========================================================
+ -->
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module='sli' version='0.7.0'><method rpc='vlbcheck' mode='sync'>
+<set>
+<parameter name='error-code' value='200' />
+<parameter name='error-message' value='SDN-C is healthy'/>
+<parameter name='ack-final' value='Y'/>
+</set></method></service-logic>
diff --git a/ms/sliboot/src/test/resources/svclogic.properties b/ms/sliboot/src/test/resources/svclogic.properties
new file mode 100644
index 00000000..1d90ab9b
--- /dev/null
+++ b/ms/sliboot/src/test/resources/svclogic.properties
@@ -0,0 +1,29 @@
+###
+# ============LICENSE_START=======================================================
+# ONAP : CCSDK
+# ================================================================================
+# Copyright (C) 2017 AT&T Intellectual Property. All rights
+# reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+###
+
+org.onap.ccsdk.sli.dbtype = jdbc
+org.onap.ccsdk.sli.jdbc.url=jdbc:derby:memory:sdnctl;create=true
+org.onap.ccsdk.sli.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
+org.onap.ccsdk.sli.jdbc.database = sdnctl
+org.onap.ccsdk.sli.jdbc.user = test
+org.onap.ccsdk.sli.jdbc.password = test
+
+sliapi.serviceLogicDirectory=/opt/onap/sdnc/svclogic/graphs