diff options
Diffstat (limited to 'installation')
27 files changed, 3593 insertions, 0 deletions
diff --git a/installation/admportal/pom.xml b/installation/admportal/pom.xml new file mode 100644 index 00000000..495a7fdb --- /dev/null +++ b/installation/admportal/pom.xml @@ -0,0 +1,197 @@ +<?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/maven-v4_0_0.xsd"> + + <parent> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation</artifactId> + <version>1.0.0</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>pom</packaging> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation-admportal</artifactId> + <version>1.0.0</version> + + <name>Installation - admportal</name> + <description>Creates admportal Docker container</description> + + <properties> + <image.name>ecomp/admportal-sdnc-image</image.name> + </properties> + + + <build> + <plugins> + + + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.16.5</version> + <inherited>false</inherited> + <configuration> + + <images> + <image> + <name>${image.name}</name> + <build> + <cleanup>try</cleanup> + <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> + <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> + <tags> + <tag>${project.version}</tag> + <tag>latest</tag> + </tags> + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>generate-sources</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </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>validate</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-properties</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</outputDirectory> + <resources> + <resource> + <directory>../src/main/properties</directory> + <includes> + <include>*.properties</include> + <include>*.properties.sdnctldb01</include> + </includes> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>exec-maven-plugin</artifactId> + <groupId>org.codehaus.mojo</groupId> + <executions> + <execution> + <id>Unzip admportal</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/usr/bin/unzip</executable> + <arguments> + <argument>-d</argument> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument> + <argument>../../admportal/target/*.zip</argument> + </arguments> + </configuration> + </execution> + + <execution> + <id>Copy admportal config</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/bin/cp</executable> + <arguments> + <argument>../../admportal/config/admportal.json</argument> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</argument> + </arguments> + </configuration> + </execution> + + <execution> + <id>Copy admportal config1</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/bin/cp</executable> + <arguments> + <argument>../../admportal/config/admportal.log4js.json</argument> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</argument> + </arguments> + </configuration> + </execution> + + + <execution> + <id>change shell permissions</id> + <phase>process-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/usr/bin/find</executable> + <arguments> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument> + <argument>-name</argument> + <argument>*.sh</argument> + <argument>-exec</argument> + <argument>chmod</argument> + <argument>+x</argument> + <argument>{}</argument> + <argument>;</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + + + </plugins> + + </build> + <organization> + <name>openECOMP</name> + </organization> +</project> diff --git a/installation/admportal/src/main/docker/Dockerfile b/installation/admportal/src/main/docker/Dockerfile new file mode 100644 index 00000000..8facc58b --- /dev/null +++ b/installation/admportal/src/main/docker/Dockerfile @@ -0,0 +1,12 @@ +# Base ubuntu with added packages needed for open ecomp +FROM ecomp/ubuntu-sdnc-image:${project.version} +MAINTAINER SDN-C Team (sdnc@lists.openecomp.org) + +# create link for pm2 +#RUN ln -s /opt/openecomp/sdnc/admportal/node_modules/pm2/bin/pm2 /usr/bin/pm2 + +# copy openecomp +COPY opt /opt + +#ENTRYPOINT exec /opt/openecomp/sdnc/admportal/shell/startssl.sh +EXPOSE 8843 diff --git a/installation/dgbuilder/flowShareUsers.js b/installation/dgbuilder/flowShareUsers.js new file mode 100644 index 00000000..4cbf7390 --- /dev/null +++ b/installation/dgbuilder/flowShareUsers.js @@ -0,0 +1,8 @@ +module.exports = {"flowShareUsers": + [ + { + "name" : "Release 1702", + "rootDir" : "1702" + } + ] +} diff --git a/installation/dgbuilder/pom.xml b/installation/dgbuilder/pom.xml new file mode 100644 index 00000000..4eaf158c --- /dev/null +++ b/installation/dgbuilder/pom.xml @@ -0,0 +1,177 @@ +<?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/maven-v4_0_0.xsd"> + + <parent> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation</artifactId> + <version>1.0.0</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>pom</packaging> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation-dgbuilder</artifactId> + <version>1.0.0</version> + + <name>Installation - dgbuilder</name> + <description>Creates docker container for dgbuilder</description> + + <properties> + <image.name>ecomp/dgbuilder-sdnc-image</image.name> + </properties> + + + <build> + <plugins> + + + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.16.5</version> + <inherited>false</inherited> + <configuration> + + <images> + <image> + <name>${image.name}</name> + <build> + <cleanup>try</cleanup> + <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> + <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> + <tags> + <tag>${project.version}</tag> + <tag>latest</tag> + </tags> + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>process-sources</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </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>validate</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> + </executions> + </plugin> + + <plugin> + <artifactId>exec-maven-plugin</artifactId> + <groupId>org.codehaus.mojo</groupId> + <executions> + <execution> + <id>make-path</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/bin/mkdir</executable> + <arguments> + <argument>-p</argument> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>Copy dgbuilder</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/bin/cp</executable> + <arguments> + <argument>-r</argument> + <argument>../../dgbuilder</argument> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument> + </arguments> + </configuration> + </execution> + + <execution> + <id>dgbuilder createReleaseDir</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/bin/bash</executable> + <arguments> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc/dgbuilder/createReleaseDir</argument> + <argument>1702</argument> + <argument>dguser</argument> + <argument>change_email_id@dgbuilder.com</argument> + </arguments> + </configuration> + </execution> + + <execution> + <id>change shell permissions</id> + <phase>process-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/usr/bin/find</executable> + <arguments> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument> + <argument>-name</argument> + <argument>*.sh</argument> + <argument>-exec</argument> + <argument>chmod</argument> + <argument>+x</argument> + <argument>{}</argument> + <argument>;</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + + + </plugins> + + </build> + <organization> + <name>openECOMP</name> + </organization> +</project> diff --git a/installation/dgbuilder/src/main/docker/Dockerfile b/installation/dgbuilder/src/main/docker/Dockerfile new file mode 100644 index 00000000..fd91e773 --- /dev/null +++ b/installation/dgbuilder/src/main/docker/Dockerfile @@ -0,0 +1,11 @@ +# Base ubuntu with added packages needed for open ecomp +FROM ecomp/ubuntu-sdnc-image:${project.version} +MAINTAINER SDN-C Team (sdnc@lists.openecomp.org) + +# copy openecomp +COPY opt /opt +WORKDIR /opt/openecomp/sdnc/dgbuilder +RUN npm install + +#ENTRYPOINT /bin/bash /opt/openecomp/sdnc/dgbuilder/start sdnc1.0 +EXPOSE 3100 diff --git a/installation/pom.xml b/installation/pom.xml new file mode 100644 index 00000000..c1336951 --- /dev/null +++ b/installation/pom.xml @@ -0,0 +1,35 @@ +<?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/maven-v4_0_0.xsd"> + + <parent> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>sdnc-oam</artifactId> + <version>1.0.0</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>pom</packaging> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation</artifactId> + <version>1.0.0</version> + + <name>Installation</name> + <description>Installs SDN-C on local file system</description> + + <properties> + <application.name>installation</application.name> + + <maven.build.timestamp.format>yyMMdd-HHmmss</maven.build.timestamp.format> + <build.number>${maven.build.timestamp}</build.number> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + </properties> + +<modules> +<module>ubuntu</module> +<module>sdnc</module> +<module>admportal</module> +<module>dgbuilder</module> +</modules> +</project> diff --git a/installation/sdnc/pom.xml b/installation/sdnc/pom.xml new file mode 100644 index 00000000..6db2fd5d --- /dev/null +++ b/installation/sdnc/pom.xml @@ -0,0 +1,255 @@ +<?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/maven-v4_0_0.xsd"> + + <parent> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation</artifactId> + <version>1.0.0</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>pom</packaging> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation-sdnc</artifactId> + <version>1.0.0</version> + + <name>Installation - sdnc</name> + <description>Creates SDN Controller Docker container</description> + + <properties> + <image.name>ecomp/sdnc-image</image.name> + <sdnc.core.version>${project.version}</sdnc.core.version> + <sdnc.adaptors.version>${project.version}</sdnc.adaptors.version> + <sdnc.northbound.version>${project.version}</sdnc.northbound.version> + <sdnc.plugins.version>${project.version}</sdnc.plugins.version> + </properties> + + + <build> + <plugins> + + + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.16.5</version> + <inherited>false</inherited> + <configuration> + + <images> + <image> + <name>${image.name}</name> + <build> + <cleanup>try</cleanup> + <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> + <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> + <tags> + <tag>${project.version}</tag> + <tag>latest</tag> + </tags> + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>generate-sources</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </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>validate</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-scripts</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/bin</outputDirectory> + <resources> + <resource> + <directory>src/main/scripts</directory> + <includes> + <include>*.sh</include> + </includes> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>copy-tarballs</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>${basedir}/target/docker-stage</outputDirectory> + <resources> + <resource> + <directory>src/main/resources</directory> + <includes> + <include>*.tgz</include> + <include>*.tar.gz</include> + <include>idmlight.db.mv.db</include> + </includes> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>copy-data</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data</outputDirectory> + <resources> + <resource> + <directory>src/main/resources</directory> + <includes> + <include>*.dump</include> + </includes> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>copy-properties</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/properties</outputDirectory> + <resources> + <resource> + <directory>../src/main/properties</directory> + <includes> + <include>*.properties</include> + </includes> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + <execution> + <id>copy-keystores</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>${basedir}/target/docker-stage/opt/openecomp/sdnc/data/stores</outputDirectory> + <resources> + <resource> + <directory>../src/main/stores</directory> + <includes> + <include>*.jks</include> + </includes> + <filtering>false</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>exec-maven-plugin</artifactId> + <groupId>org.codehaus.mojo</groupId> + <executions> + + <execution> + <id>Get features</id> + <phase>generate-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/bin/bash</executable> + <environmentVariables> + <SDNC_CORE_VERSION>${sdnc.core.version}</SDNC_CORE_VERSION> + <SDNC_ADAPTORS_VERSION>${sdnc.adaptors.version}</SDNC_ADAPTORS_VERSION> + <SDNC_NORTHBOUND_VERSION>${sdnc.northbound.version}</SDNC_NORTHBOUND_VERSION> + <SDNC_PLUGINS_VERSION>${sdnc.plugins.version}</SDNC_PLUGINS_VERSION> + <SDNC_OAM_VERSION>${project.version}</SDNC_OAM_VERSION> + </environmentVariables> + <arguments> + <argument>${basedir}/src/main/scripts/installZips.sh</argument> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument> + </arguments> + </configuration> + </execution> + + <execution> + <id>change shell permissions</id> + <phase>process-sources</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>/usr/bin/find</executable> + <arguments> + <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument> + <argument>-name</argument> + <argument>*.sh</argument> + <argument>-exec</argument> + <argument>chmod</argument> + <argument>+x</argument> + <argument>{}</argument> + <argument>;</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + + + </plugins> + + </build> + <organization> + <name>openECOMP</name> + </organization> +</project> diff --git a/installation/sdnc/src/main/docker/Dockerfile b/installation/sdnc/src/main/docker/Dockerfile new file mode 100644 index 00000000..2e2140bc --- /dev/null +++ b/installation/sdnc/src/main/docker/Dockerfile @@ -0,0 +1,23 @@ +# Base ubuntu with added packages needed for open ecomp +FROM ecomp/ubuntu-sdnc-image:${project.version} +MAINTAINER SDN-C Team (sdnc@lists.openecomp.org) +ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64 +ENV ODL_HOME /opt/opendaylight/current +ENV SDNC_CONFIG_DIR /opt/openecomp/sdnc/data/properties + +# copy the opendaylight tar and expand +COPY distribution-karaf-0.4.2-Beryllium-SR2.tar.gz /tmp +RUN mkdir /opt/opendaylight /opt/openecomp +RUN tar zxvf /tmp/distribution-karaf-0.4.2-Beryllium-SR2.tar.gz --directory /opt/opendaylight +RUN ln -s /opt/opendaylight/distribution-karaf-0.4.2-Beryllium-SR2 /opt/opendaylight/current +COPY idmlight.db.mv.db /opt/opendaylight/current + +# copy openecomp +COPY opt /opt +RUN ln -s /opt/openecomp/sdnc /opt/sdnc + +# workaround till we get proxy working +COPY mysql.tgz /tmp +RUN tar zxvf /tmp/mysql.tgz --directory /opt/opendaylight/current/system +# ENTRYPOINT exec /opt/opendaylight/current/bin/karaf +EXPOSE 8181 diff --git a/installation/sdnc/src/main/resources/distribution-karaf-0.4.2-Beryllium-SR2.tar.gz.REMOVED.git-id b/installation/sdnc/src/main/resources/distribution-karaf-0.4.2-Beryllium-SR2.tar.gz.REMOVED.git-id new file mode 100644 index 00000000..3d100916 --- /dev/null +++ b/installation/sdnc/src/main/resources/distribution-karaf-0.4.2-Beryllium-SR2.tar.gz.REMOVED.git-id @@ -0,0 +1 @@ +e3c6abcc979fe257f05da7f22ec22c6099d10a67
\ No newline at end of file diff --git a/installation/sdnc/src/main/resources/idmlight.db.mv.db b/installation/sdnc/src/main/resources/idmlight.db.mv.db Binary files differnew file mode 100644 index 00000000..c6b359d8 --- /dev/null +++ b/installation/sdnc/src/main/resources/idmlight.db.mv.db diff --git a/installation/sdnc/src/main/resources/mysql.tgz b/installation/sdnc/src/main/resources/mysql.tgz Binary files differnew file mode 100644 index 00000000..65973df8 --- /dev/null +++ b/installation/sdnc/src/main/resources/mysql.tgz diff --git a/installation/sdnc/src/main/resources/sdnctl.dump b/installation/sdnc/src/main/resources/sdnctl.dump new file mode 100644 index 00000000..8be4c6a3 --- /dev/null +++ b/installation/sdnc/src/main/resources/sdnctl.dump @@ -0,0 +1,1818 @@ +-- MySQL dump 10.13 Distrib 5.6.22, for Linux (x86_64) +-- +-- Host: sdnctldb01 Database: sdnctl +-- ------------------------------------------------------ +-- Server version 5.6.27-enterprise-commercial-advanced-log + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +SET @MYSQLDUMP_TEMP_LOG_BIN = @@SESSION.SQL_LOG_BIN; +SET @@SESSION.SQL_LOG_BIN= 0; + +-- +-- Table structure for table `AGNOSTIC_NOTIFICATION_URL` +-- + +DROP TABLE IF EXISTS `AGNOSTIC_NOTIFICATION_URL`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `AGNOSTIC_TO_SVC_SPCFC_API` +-- + +DROP TABLE IF EXISTS `AGNOSTIC_TO_SVC_SPCFC_API`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `AIC_AVAIL_ZONE_POOL` +-- + +DROP TABLE IF EXISTS `AIC_AVAIL_ZONE_POOL`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `AIC_HOSTNAME` +-- + +DROP TABLE IF EXISTS `AIC_HOSTNAME`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `AIC_NETWORK` +-- + +DROP TABLE IF EXISTS `AIC_NETWORK`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `AIC_SITE` +-- + +DROP TABLE IF EXISTS `AIC_SITE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `AIC_SWITCH` +-- + +DROP TABLE IF EXISTS `AIC_SWITCH`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `ALLOCATION_ITEM` +-- + +DROP TABLE IF EXISTS `ALLOCATION_ITEM`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=10104 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `ALTS_CREDENTIALS` +-- + +DROP TABLE IF EXISTS `ALTS_CREDENTIALS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `CITY_CODE` +-- + +DROP TABLE IF EXISTS `CITY_CODE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=37773 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `CUSTOMER` +-- + +DROP TABLE IF EXISTS `CUSTOMER`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `CUSTOMER` ( + `cust_id` int(11) NOT NULL AUTO_INCREMENT, + `customer_name` varchar(60) NOT 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=186 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `DATA_OBJECT_MAPPING` +-- + +DROP TABLE IF EXISTS `DATA_OBJECT_MAPPING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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, + 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 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `DEVICE2CONNECTION_MAPPING` +-- + +DROP TABLE IF EXISTS `DEVICE2CONNECTION_MAPPING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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` bigint(20) NOT NULL, + PRIMARY KEY (`vnf_host_name`,`e2e_vpn_key`,`service_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `DEVICE2IPADDRESS_CONSUMPTION` +-- + +DROP TABLE IF EXISTS `DEVICE2IPADDRESS_CONSUMPTION`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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, + PRIMARY KEY (`serial_key`), + KEY `IX1_DEVICEIPADDRESS_CONSUMPTION` (`device_id`,`device_type`,`ip_version`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `DEVICE2IPADDRESS_MAPPING` +-- + +DROP TABLE IF EXISTS `DEVICE2IPADDRESS_MAPPING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `EIPAM_IP_ASSIGNMENTS` +-- + +DROP TABLE IF EXISTS `EIPAM_IP_ASSIGNMENTS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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(20) 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, + PRIMARY KEY (`plan_name`,`client_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `EIPAM_IP_SUBNETS` +-- + +DROP TABLE IF EXISTS `EIPAM_IP_SUBNETS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `EIPAM_IP_SUBNETS` ( + `entity_id` int(6) NOT NULL, + `service_type` varchar(40) NOT NULL, + `plan_name` varchar(40) 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, + PRIMARY KEY (`entity_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `EIPAM_IP_SUBNET_KEYS` +-- + +DROP TABLE IF EXISTS `EIPAM_IP_SUBNET_KEYS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `EIPAM_IP_SUBNET_KEYS` ( + `entity_id` int(6) NOT NULL, + `key_name` varchar(255) NOT NULL, + `key_value` varchar(50) NOT NULL, + `level` int(2) NOT NULL, + PRIMARY KEY (`entity_id`,`key_name`,`key_value`,`level`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `EIPAM_REQUEST_KEY` +-- + +DROP TABLE IF EXISTS `EIPAM_REQUEST_KEY`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_L3_NETWORK` +-- + +DROP TABLE IF EXISTS `GENERIC_L3_NETWORK`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_L3_NETWORK_SUBNET` +-- + +DROP TABLE IF EXISTS `GENERIC_L3_NETWORK_SUBNET`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_L3_NETWORK_VPN_BINDING` +-- + +DROP TABLE IF EXISTS `GENERIC_L3_NETWORK_VPN_BINDING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF_L3_NETWORK` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF_L3_NETWORK`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF_LICENSE_MANAGEMENT` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF_LICENSE_MANAGEMENT`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF_LINTERFACE` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF_LINTERFACE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF_PSERVER` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF_PSERVER`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF_SERVICE_INSTANCE` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF_SERVICE_INSTANCE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF_VNF_IMAGE` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF_VNF_IMAGE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VNF_VSERVER` +-- + +DROP TABLE IF EXISTS `GENERIC_VNF_VSERVER`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `GENERIC_VPN_BINDING` +-- + +DROP TABLE IF EXISTS `GENERIC_VPN_BINDING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `HOSTNAME` +-- + +DROP TABLE IF EXISTS `HOSTNAME`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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 `FK3_HOSTNAME` FOREIGN KEY (`vendor_code`) REFERENCES `VENDOR_CODE` (`vendor_code`) 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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `IPV4_ADDRESS_POOL` +-- + +DROP TABLE IF EXISTS `IPV4_ADDRESS_POOL`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `LINTERFACE_VLAN` +-- + +DROP TABLE IF EXISTS `LINTERFACE_VLAN`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `LOCATION` +-- + +DROP TABLE IF EXISTS `LOCATION`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=112 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `MAX_PORT_SPEED` +-- + +DROP TABLE IF EXISTS `MAX_PORT_SPEED`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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 AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `MAX_SERVER_SPEED` +-- + +DROP TABLE IF EXISTS `MAX_SERVER_SPEED`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=25 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NBNC_BORDER_ELEMENT` +-- + +DROP TABLE IF EXISTS `NBNC_BORDER_ELEMENT`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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_array` varchar(512) 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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NBNC_IPE` +-- + +DROP TABLE IF EXISTS `NBNC_IPE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NBNC_IPE_PORT` +-- + +DROP TABLE IF EXISTS `NBNC_IPE_PORT`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NBNC_MAPPING_SBG_BGF` +-- + +DROP TABLE IF EXISTS `NBNC_MAPPING_SBG_BGF`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NBNC_SERVICE` +-- + +DROP TABLE IF EXISTS `NBNC_SERVICE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NBNC_SERVICE_VLAN` +-- + +DROP TABLE IF EXISTS `NBNC_SERVICE_VLAN`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NETWORK_PROFILE` +-- + +DROP TABLE IF EXISTS `NETWORK_PROFILE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `NETWORK_PROFILE` ( + `network_type` varchar(100) NOT NULL, + `technology` varchar(100) NOT NULL, + PRIMARY KEY (`network_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NETWORK_ROLE_VPN_BINDING` +-- + +DROP TABLE IF EXISTS `NETWORK_ROLE_VPN_BINDING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `NODE_TYPES` +-- + +DROP TABLE IF EXISTS `NODE_TYPES`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `NODE_TYPES` ( + `nodetype` varchar(80) NOT NULL, + PRIMARY KEY (`nodetype`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PARAMETERS` +-- + +DROP TABLE IF EXISTS `PARAMETERS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `PARAMETERS` ( + `name` varchar(100) NOT NULL, + `value` varchar(24) NOT NULL, + `category` varchar(24) DEFAULT NULL, + `memo` varchar(128) DEFAULT NULL, + PRIMARY KEY (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PHYSICAL_LINK` +-- + +DROP TABLE IF EXISTS `PHYSICAL_LINK`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PHYSICAL_LINK_PINTERFACE` +-- + +DROP TABLE IF EXISTS `PHYSICAL_LINK_PINTERFACE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PINTERFACE` +-- + +DROP TABLE IF EXISTS `PINTERFACE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PORTAL_USERS` +-- + +DROP TABLE IF EXISTS `PORTAL_USERS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PRE_LOAD_VNF_DATA` +-- + +DROP TABLE IF EXISTS `PRE_LOAD_VNF_DATA`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=105 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PRE_LOAD_VNF_NETWORK_DATA` +-- + +DROP TABLE IF EXISTS `PRE_LOAD_VNF_NETWORK_DATA`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=104 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `PSERVER` +-- + +DROP TABLE IF EXISTS `PSERVER`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `RANGE_RULE` +-- + +DROP TABLE IF EXISTS `RANGE_RULE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=7 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `RESOURCE` +-- + +DROP TABLE IF EXISTS `RESOURCE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=14 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `RESOURCE_LOAD` +-- + +DROP TABLE IF EXISTS `RESOURCE_LOAD`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `RESOURCE_LOCK` +-- + +DROP TABLE IF EXISTS `RESOURCE_LOCK`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `RESOURCE_LOCK` ( + `resource_lock_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `resource_name` varchar(50) NOT 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=2951 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `RESOURCE_RULE` +-- + +DROP TABLE IF EXISTS `RESOURCE_RULE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=9 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `RESOURCE_THRESHOLD` +-- + +DROP TABLE IF EXISTS `RESOURCE_THRESHOLD`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `SERVICE_HOMING` +-- + +DROP TABLE IF EXISTS `SERVICE_HOMING`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `SERVICE_HOMING_BACKUP` +-- + +DROP TABLE IF EXISTS `SERVICE_HOMING_BACKUP`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `SERVICE_MANAGER_CREDENTIALS` +-- + +DROP TABLE IF EXISTS `SERVICE_MANAGER_CREDENTIALS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `SERVICE_RESOURCE` +-- + +DROP TABLE IF EXISTS `SERVICE_RESOURCE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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=2203 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `SVC_LOGIC` +-- + +DROP TABLE IF EXISTS `SVC_LOGIC`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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, + PRIMARY KEY (`module`,`rpc`,`version`,`mode`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `TENANT` +-- + +DROP TABLE IF EXISTS `TENANT`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `THRESHOLD_NOTIFICATION` +-- + +DROP TABLE IF EXISTS `THRESHOLD_NOTIFICATION`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + + +-- +-- Table structure for table `VENDOR_CODE` +-- + +DROP TABLE IF EXISTS `VENDOR_CODE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `VENDOR_CODE` ( + `vendor_code` varchar(1) NOT NULL, + `vendor` varchar(45) DEFAULT NULL, + PRIMARY KEY (`vendor_code`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VLAN_ID_POOL` +-- + +DROP TABLE IF EXISTS `VLAN_ID_POOL`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VLAN_L3INTERFACE_IPV4_ADDRESS` +-- + +DROP TABLE IF EXISTS `VLAN_L3INTERFACE_IPV4_ADDRESS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VLAN_L3INTERFACE_IPV6_ADDRESS` +-- + +DROP TABLE IF EXISTS `VLAN_L3INTERFACE_IPV6_ADDRESS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VLAN_PLAN_ID` +-- + +DROP TABLE IF EXISTS `VLAN_PLAN_ID`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VLAN_POOL` +-- + +DROP TABLE IF EXISTS `VLAN_POOL`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VLAN_RANGES` +-- + +DROP TABLE IF EXISTS `VLAN_RANGES`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VM_NETWORKS` +-- + +DROP TABLE IF EXISTS `VM_NETWORKS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VM_PROFILE` +-- + +DROP TABLE IF EXISTS `VM_PROFILE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF` +-- + +DROP TABLE IF EXISTS `VNF`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF_IMAGE` +-- + +DROP TABLE IF EXISTS `VNF_IMAGE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF_MODEL_LICENSES` +-- + +DROP TABLE IF EXISTS `VNF_MODEL_LICENSES`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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 NULL, + `feature_group_uuid` varchar(255) DEFAULT NULL, + PRIMARY KEY (`att_part_number`,`license_assignment_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF_MODEL_LICENSE_FEATURES` +-- + +DROP TABLE IF EXISTS `VNF_MODEL_LICENSE_FEATURES`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF_NETWORKS` +-- + +DROP TABLE IF EXISTS `VNF_NETWORKS`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF_NETWORK_CONNECTION` +-- + +DROP TABLE IF EXISTS `VNF_NETWORK_CONNECTION`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF_NETWORK_CONNECTION_VLAN` +-- + +DROP TABLE IF EXISTS `VNF_NETWORK_CONNECTION_VLAN`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VNF_PROFILE` +-- + +DROP TABLE IF EXISTS `VNF_PROFILE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VPE_LOCK` +-- + +DROP TABLE IF EXISTS `VPE_LOCK`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VPE_POOL` +-- + +DROP TABLE IF EXISTS `VPE_POOL`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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, + PRIMARY KEY (`aic_site_id`,`vpe_name`,`availability_zone`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VPLSPE_POOL` +-- + +DROP TABLE IF EXISTS `VPLSPE_POOL`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VSERVER` +-- + +DROP TABLE IF EXISTS `VSERVER`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VSERVER2` +-- + +DROP TABLE IF EXISTS `VSERVER2`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `VSERVER_PSERVER` +-- + +DROP TABLE IF EXISTS `VSERVER_PSERVER`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +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; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `WAN_COMBO_ALLOWABLE` +-- + +DROP TABLE IF EXISTS `WAN_COMBO_ALLOWABLE`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `WAN_COMBO_ALLOWABLE` ( + `combo_sequence` int(11) NOT NULL AUTO_INCREMENT, + `internet_topology` varchar(20) DEFAULT NULL, + `wan1` varchar(40) DEFAULT NULL, + `wan2` varchar(40) DEFAULT NULL, + `new_start_release` char(5) DEFAULT NULL, + `description` varchar(128) NOT NULL, + PRIMARY KEY (`combo_sequence`), + UNIQUE KEY `IX1_WAN_COMBO_ALLOWABLE` (`internet_topology`,`wan1`,`wan2`) +) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `emp1000` +-- + +DROP TABLE IF EXISTS `emp1000`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `emp1000` ( + `firstName` varchar(20) DEFAULT NULL, + `lastName` varchar(20) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `linda` +-- + +DROP TABLE IF EXISTS `linda`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `linda` ( + `c1` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `testit` +-- + +DROP TABLE IF EXISTS `testit`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `testit` ( + `c1` varchar(12) DEFAULT NULL, + `c2` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `testtable` +-- + +DROP TABLE IF EXISTS `testtable`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `testtable` ( + `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_testtable` (`city`,`state`,`country_code`) +) ENGINE=InnoDB AUTO_INCREMENT=37756 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +SET @@SESSION.SQL_LOG_BIN = @MYSQLDUMP_TEMP_LOG_BIN; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2016-11-23 16:01:55 diff --git a/installation/sdnc/src/main/scripts/installFeatures.sh b/installation/sdnc/src/main/scripts/installFeatures.sh new file mode 100755 index 00000000..88a24f47 --- /dev/null +++ b/installation/sdnc/src/main/scripts/installFeatures.sh @@ -0,0 +1,108 @@ +#!/bin/bash + +### +# ============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========================================================= +### + +ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} +ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U} +SDNC_HOME=${SDNC_HOME:-/opt/openecomp/sdnc} +SDNC_FEATURE_DIR=${SDNC_FEATURE_DIR:-${SDNC_HOME}/features} + +SDNC_CORE_FEATURES=" \ + dblib \ + filters \ + sli \ + sliPluginUtils \ + sliapi" + +SDNC_ADAPTORS_FEATURES=" \ + aai-service \ + mdsal-resource \ + resource-assignment \ + sql-resource" + +SDNC_NORTHBOUND_FEATURES=" \ + asdcApi \ + dataChange \ + vnfapi \ + vnftools" + +SDNC_PLUGINS_FEATURES=" \ + properties-node \ + restapi-call-node" + + +SDNC_CORE_VERSION=${SDNC_CORE_VERSION:-0.0.1-SNAPSHOT} +SDNC_ADAPTORS_VERSION=${SDNC_ADAPTORS_VERSION:-0.0.1-SNAPSHOT} +SDNC_NORTHBOUND_VERSION=${SDNC_NORTHBOUND_VERSION:-0.0.1-SNAPSHOT} +SDNC_PLUGINS_VERSION=${SDNC_PLUGINS_VERSION:-0.0.1-SNAPSHOT} + +echo "Enabling core features" +${ODL_HOME}/bin/client -u karaf feature:install odl-mdsal-all +${ODL_HOME}/bin/client -u karaf feature:install odl-mdsal-apidocs +${ODL_HOME}/bin/client -u karaf feature:install odl-restconf-all + + + + +echo "Installing SDN-C core" +for feature in ${SDNC_CORE_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done + +echo "Installing SDN-C adaptors" +for feature in ${SDNC_ADAPTORS_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done + +echo "Installing SDN-C northbound" +for feature in ${SDNC_NORTHBOUND_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done + +echo "Installing SDN-C plugins" +for feature in ${SDNC_PLUGINS_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done diff --git a/installation/sdnc/src/main/scripts/installSdncDb.sh b/installation/sdnc/src/main/scripts/installSdncDb.sh new file mode 100755 index 00000000..6f42e8f8 --- /dev/null +++ b/installation/sdnc/src/main/scripts/installSdncDb.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +### +# ============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========================================================= +### + +SDNC_HOME=${SDNC_HOME:-/opt/openecomp/sdnc} +MYSQL_PASSWD=${MYSQL_PASSWD:-openECOMP1.0} + +SDNC_DB_USER=${SDNC_DB_USER:-sdnctl} +SDNC_DB_PASSWD=${SDNC_DB_PASSWD:-gamma} +SDNC_DB_DATABASE=${SDN_DB_DATABASE:-sdnctl} + + +# Create tablespace and user account +mysql -h dbhost -u root -p${MYSQL_PASSWD} mysql <<-END +CREATE DATABASE ${SDNC_DB_DATABASE}; +CREATE USER '${SDNC_DB_USER}'@'localhost' IDENTIFIED BY '${SDNC_DB_PASSWD}'; +CREATE USER '${SDNC_DB_USER}'@'%' IDENTIFIED BY '${SDNC_DB_PASSWD}'; +GRANT ALL PRIVILEGES ON ${SDNC_DB_DATABASE}.* TO '${SDNC_DB_USER}'@'localhost' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON ${SDNC_DB_DATABASE}.* TO '${SDNC_DB_USER}'@'%' WITH GRANT OPTION; +commit; +END + +if [ -f ${SDNC_HOME}/data/sdnctl.dump ] +then + mysql -h dbhost -u root -p${MYSQL_PASSWD} sdnctl < ${SDNC_HOME}/data/sdnctl.dump +fi diff --git a/installation/sdnc/src/main/scripts/installZips.sh b/installation/sdnc/src/main/scripts/installZips.sh new file mode 100755 index 00000000..0afb6a4a --- /dev/null +++ b/installation/sdnc/src/main/scripts/installZips.sh @@ -0,0 +1,116 @@ +#!/bin/bash + +### +# ============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========================================================= +### + +SDNC_HOME=${SDNC_HOME:-/opt/openecomp/sdnc} + +targetDir=${1:-${SDNC_HOME}} +featureDir=${targetDir}/features + +SDNC_CORE_FEATURES=" \ + dblib \ + filters \ + sli \ + sliPluginUtils \ + sliapi" + +SDNC_ADAPTORS_FEATURES=" \ + aai-service \ + mdsal-resource \ + resource-assignment \ + sql-resource" + +SDNC_NORTHBOUND_FEATURES=" \ + asdcApi \ + dataChange \ + vnfapi \ + vnftools" + +SDNC_PLUGINS_FEATURES=" \ + properties-node \ + restapi-call-node" + + +SDNC_CORE_VERSION=${SDNC_CORE_VERSION:-0.1.1} +SDNC_ADAPTORS_VERSION=${SDNC_ADAPTORS_VERSION:-0.1.1} +SDNC_NORTHBOUND_VERSION=${SDNC_NORTHBOUND_VERSION:-0.1.1} +SDNC_PLUGINS_VERSION=${SDNC_PLUGINS_VERSION:-0.1.1} +SDNC_OAM_VERSION=${SDNC_OAM_VERSION:-0.1.1} + +if [ ! -d ${targetDir} ] +then + mkdir -p ${targetDir} +fi + +if [ ! -d ${featureDir} ] +then + mkdir -p ${featureDir} +fi + +cwd=$(pwd) + +mavenOpts=${2:-"-s $cwd/../../jenkins-settings.xml"} +cd /tmp + +echo "Installing SDN-C core version ${SDNC_CORE_VERSION}" +for feature in ${SDNC_CORE_FEATURES} +do + rm -f /tmp/${feature}-installer*.zip +mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.openecomp.sdnc.core:${feature}-installer:${SDNC_CORE_VERSION}:zip -DoutputDirectory=/tmp -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true + unzip -d ${featureDir} /tmp/${feature}-installer*zip +done + +echo "Installing SDN-C adaptors version ${SDNC_ADAPTORS_VERSION}" +for feature in ${SDNC_ADAPTORS_FEATURES} +do + rm -f /tmp/${feature}-installer*.zip +mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.openecomp.sdnc.adaptors:${feature}-installer:${SDNC_ADAPTORS_VERSION}:zip -DoutputDirectory=/tmp -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true + unzip -d ${featureDir} /tmp/${feature}-installer*zip +done + +echo "Installing SDN-C northbound version ${SDNC_NORTHBOUND_VERSION}" +for feature in ${SDNC_NORTHBOUND_FEATURES} +do + rm -f /tmp/${feature}-installer*.zip +mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.openecomp.sdnc.northbound:${feature}-installer:${SDNC_NORTHBOUND_VERSION}:zip -DoutputDirectory=/tmp -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true + unzip -d ${featureDir} /tmp/${feature}-installer*zip +done + +echo "Installing SDN-C plugins version ${SDNC_PLUGINS_VERSION}" +for feature in ${SDNC_PLUGINS_FEATURES} +do + rm -f /tmp/${feature}-installer*.zip +mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.openecomp.sdnc.plugins:${feature}-installer:${SDNC_PLUGINS_VERSION}:zip -DoutputDirectory=/tmp -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true + unzip -d ${featureDir} /tmp/${feature}-installer*zip +done + + + +echo "Installing platform-logic" +rm -f /tmp/platform-logic-installer*.zip +mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.openecomp.sdnc.oam:platform-logic-installer:${SDNC_OAM_VERSION}:zip -DoutputDirectory=/tmp -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true +unzip -d ${targetDir} /tmp/platform-logic-installer*.zip + +find ${targetDir} -name '*.sh' -exec chmod +x '{}' \; + +cd $cwd + diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh new file mode 100755 index 00000000..93df96bb --- /dev/null +++ b/installation/sdnc/src/main/scripts/startODL.sh @@ -0,0 +1,45 @@ +#!/bin/bash + + +# Install SDN-C platform components if not already installed and start container + +ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} +ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U} +SDNC_HOME=${SDNC_HOME:-/opt/openecomp/sdnc} +SLEEP_TIME=${SLEEP_TIME:-120} +MYSQL_PASSWD=${MYSQL_PASSWD:-openECOMP1.0} + +# +# Wait for database +# +echo "Waiting for mysql" +until mysql -h dbhost -u root -p${MYSQL_PASSWD} mysql &> /dev/null +do + printf "." + sleep 1 +done +echo -e "\nmysql ready" + +if [ ! -f ${SDNC_HOME}/.installed ] +then + echo "Installing SDN-C database" + ${SDNC_HOME}/bin/installSdncDb.sh + echo "Starting OpenDaylight" + ${ODL_HOME}/bin/start + echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to initialize" + sleep ${SLEEP_TIME} + echo "Installing SDN-C platform features" + ${SDNC_HOME}/bin/installFeatures.sh + if [ -x ${SDNC_HOME}/svclogic/bin/install.sh ] + then + echo "Installing directed graphs" + ${SDNC_HOME}/svclogic/bin/install.sh + fi + + + echo "Restarting OpenDaylight" + ${ODL_HOME}/bin/stop + echo "Installed at `date`" > ${SDNC_HOME}/.installed +fi + +exec ${ODL_HOME}/bin/karaf diff --git a/installation/src/main/properties/aaiclient.properties b/installation/src/main/properties/aaiclient.properties new file mode 100644 index 00000000..485be8fe --- /dev/null +++ b/installation/src/main/properties/aaiclient.properties @@ -0,0 +1,249 @@ +### +# ============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========================================================= +### + +# +# Configuration file for A&AI Client +# + +# +# Certificate keystore and truststore +# +org.openecomp.sdnc.sli.aai.ssl.trust=/opt/openecomp/sdnc/data/stores/truststore.openecomp.client.jks +org.openecomp.sdnc.sli.aai.ssl.trust.psswd=adminadmin +org.openecomp.sdnc.sli.aai.host.certificate.ignore=true + +org.openecomp.sdnc.sli.aai.client.name=SDNC +org.openecomp.sdnc.sli.aai.client.psswd=SDNC + +org.openecomp.sdnc.sli.aai.application=openECOMP +#connection.timeout=1000 +#read.timeout=2000 + +# +# Configuration file for A&AI Client +# +org.openecomp.sdnc.sli.aai.uri=https://aai.api.simpledemo.openecomp.org:8443 + + +# query +org.openecomp.sdnc.sli.aai.path.query=/aai/v8/search/sdn-zone-query +org.openecomp.sdnc.sli.aai.query.nodes=/aai/v8/search/nodes-query?search-node-type={node-type}&filter={entity-identifier}:EQUALS:{entity-name} +org.openecomp.sdnc.sli.aai.query.generic=/aai/v8/search/generic-query?key={identifier}:{value}&start-node-type={start-node-type}&include=complex&depth=3 + +# named query +org.openecomp.sdnc.sli.aai.query.named=/aai/search/named-query + + +#update +org.openecomp.sdnc.sli.aai.update=/aai/v8/actions/update + +# vce +org.openecomp.sdnc.sli.aai.path.vce =/aai/v8/network/vces/vce/ +org.openecomp.sdnc.sli.aai.path.vces=/aai/v8/network/vces/ + +# vpe +org.openecomp.sdnc.sli.aai.path.vpe =/aai/v8/network/vpes/vpe/ +org.openecomp.sdnc.sli.aai.path.vpes=/aai/v8/network/vpes/ + +# customer +org.openecomp.sdnc.sli.aai.path.customer=/aai/v8/business/customers/customer/{customer-id} + +# service subscription +org.openecomp.sdnc.sli.aai.path.service.subscription=/aai/v8/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type} + +# service instance +org.openecomp.sdnc.sli.aai.path.svcinst=/aai/v8/business/customers/customer/{customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances +org.openecomp.sdnc.sli.aai.path.svcinst.query=/aai/v8/search/generic-query?key=service-instance.service-instance-id:{svc-instance-id}&start-node-type=service-instance&include=service-instance +org.openecomp.sdnc.sli.aai.path.service.instance=/aai/v8/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances/service-instance/{service-instance-id} + +# complex +org.openecomp.sdnc.sli.aai.path.complexes=/aai/v8/cloud-infrastructure/complexes +org.openecomp.sdnc.sli.aai.path.complex=/aai/v8/cloud-infrastructure/complexes/complex/{physical-location-id} + +# tenant +org.openecomp.sdnc.sli.aai.path.tenant=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/tenants/tenant/{tenant-id} +org.openecomp.sdnc.sli.aai.path.tenant.query=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/tenants/tenant?tenant-name={tenant-name} + +# vservers +org.openecomp.sdnc.sli.aai.path.vservers=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/tenants/tenant/{tenant-id}/vservers/ +org.openecomp.sdnc.sli.aai.path.vserver=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/tenants/tenant/{tenant-id}/vservers/vserver/{vserver-id} + +# vpls-pe +org.openecomp.sdnc.sli.aai.path.vpls.pes=/aai/v8/network/vpls-pes/ +org.openecomp.sdnc.sli.aai.path.vpls.pe =/aai/v8/network/vpls-pes/vpls-pe/ + +# ctag-pool +org.openecomp.sdnc.sli.aai.path.ctag.pools=/aai/v8/cloud-infrastructure/complexes/complex/{physical-location-id}/ctag-pools +org.openecomp.sdnc.sli.aai.path.ctag.pool=/aai/v8/cloud-infrastructure/complexes/complex/{physical-location-id}/ctag-pools/ctag-pool/{target-pe}/{availability-zone-name} + +# +#-------------- 1510 ---------------------- +# + +# pservers +org.openecomp.sdnc.sli.aai.path.pservers=/aai/v8/cloud-infrastructure/pservers +org.openecomp.sdnc.sli.aai.path.pserver=/aai/v8/cloud-infrastructure/pservers/pserver/{hostname} + +# generic-vnf +org.openecomp.sdnc.sli.aai.path.generic.vnfs=/aai/v8/network/generic-vnfs +org.openecomp.sdnc.sli.aai.path.generic.vnf=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id} + +# dvs-switch +org.openecomp.sdnc.sli.aai.path.dvsswitches=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/dvs-switches +org.openecomp.sdnc.sli.aai.path.dvsswitch=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/dvs-switches/dvs-switch/{switch-name} + +# L3 Networks +org.openecomp.sdnc.sli.aai.path.l3networks=/aai/v8/network/l3-networks +org.openecomp.sdnc.sli.aai.path.l3network=/aai/v8/network/l3-networks/l3-network/{network-id} +org.openecomp.sdnc.sli.aai.path.l3network.query.name=/aai/v8/network/l3-networks/l3-network?network-name={network-name} + +# P-Interfaces +org.openecomp.sdnc.sli.aai.path.pserver.pinterfaces=/aai/v8/cloud-infrastructure/pservers/pserver/{hostname}/p-interfaces +org.openecomp.sdnc.sli.aai.path.pserver.pinterface=/aai/v8/cloud-infrastructure/pservers/pserver/{hostname}/p-interfaces/p-interface/{interface-name} + +# Physical Link +org.openecomp.sdnc.sli.aai.path.physical.links=/aai/v8/network/physical-links +org.openecomp.sdnc.sli.aai.path.physical.link=/aai/v8/network/physical-links/physical-link/{link-name} + +# VPN Bindings +org.openecomp.sdnc.sli.aai.path.vpn.bindings=/aai/v8/network/vpn-bindings/ +org.openecomp.sdnc.sli.aai.path.vpn.binding=/aai/v8/network/vpn-bindings/vpn-binding/{vpn-id} + +# VNF IMAGES +org.openecomp.sdnc.sli.aai.path.vnf.images=/aai/v8/service-design-and-creation/vnf-images +org.openecomp.sdnc.sli.aai.path.vnf.image=/aai/v8/service-design-and-creation/vnf-images/vnf-image/{att-uuid} +org.openecomp.sdnc.sli.aai.path.vnf.image.query=/aai/v8/service-design-and-creation/vnf-images/vnf-image?application={application_model}&application-vendor={application_vendor} + +# UBB Notify +org.openecomp.sdnc.sli.aai.path.notify=/aai/v8/actions/notify +org.openecomp.sdnc.sli.aai.notify.selflink.fqdn=https://aai.api.simpledemo.openecomp.org:8443/restconf/config/L3SDN-API:services/layer3-service-list/{service-instance-id} +org.openecomp.sdnc.sli.aai.notify.selflink.avpn=https://aai.api.simpledemo.openecomp.org:8543/restconf/config/L3AVPN-EVC-API:services/service-list/{service-instance-id}/service-data/avpn-logicalchannel-information + +# Service +org.openecomp.sdnc.sli.aai.path.service=/aai/v8/service-design-and-creation/services/service/{service-id} +org.openecomp.sdnc.sli.aai.path.services=/aai/v8/service-design-and-creation/services + + +# +#-------------- 1604 ---------------------- +# + +# VNFC +org.openecomp.sdnc.sli.aai.path.vnfc=/aai/v8/network/vnfcs/vnfc/{vnfc-name} + +# class-of-service +org.openecomp.sdnc.sli.aai.path.class.of.service=/aai/v8/network/site-pair-sets/site-pair-set/{site-pair-set-id}/routing-instances/routing-instance/{routing-instance-id}/site-pairs/site-pair/{site-pair-id}/classes-of-service/class-of-service/{cos-id} + +# site-pair +org.openecomp.sdnc.sli.aai.path.site.pair=/aai/v8/network/site-pair-sets/site-pair-set/{site-pair-set-id}/routing-instances/routing-instance/{routing-instance-id}/site-pairs/site-pair/{site-pair-id} + +# routing-instance +org.openecomp.sdnc.sli.aai.path.routing.instance=/aai/v8/network/site-pair-sets/site-pair-set/{site-pair-set-id}/routing-instances/routing-instance/{routing-instance-id} + +# site-pair-set +org.openecomp.sdnc.sli.aai.path.site.pair.set=/aai/v8/network/site-pair-sets/site-pair-set/{site-pair-set-id} + +# license key resource +org.openecomp.sdnc.sli.aai.path.license.acquire=/aai/v8/actions/assignment/license-management/assignment-group-uuid/{assignment-group-uuid} +org.openecomp.sdnc.sli.aai.path.license=/aai/v8/license-management/license-key-resources/license-key-resource/{att-uuid} + +# logical-link +org.openecomp.sdnc.sli.aai.path.logical.link =/aai/v8/network/logical-links/logical-link/{link-name} + +# virtual-data-center +org.openecomp.sdnc.sli.aai.path.virtual.data.center=/aai/v8/cloud-infrastructure/virtual-data-centers/virtual-data-center/{vdc-id} + +# wan-connector +org.openecomp.sdnc.sli.aai.path.wan.connector=/aai/v8/business/connectors/connector/{resource-instance-id} + +# l-interface +org.openecomp.sdnc.sli.aai.path.lag.interface.l.interface=/aai/v8/cloud-infrastructure/pservers/pserver/{hostname}/lag-interfaces/lag-interface/{lag-interface.interface-name}/l-interfaces/l-interface/{interface-name} +org.openecomp.sdnc.sli.aai.path.p.interface.l.interface=/aai/v8/cloud-infrastructure/pservers/pserver/{hostname}/p-interfaces/p-interface/{p-interface.interface-name}/l-interfaces/l-interface/{interface-name} + +# l-interface pnf +org.openecomp.sdnc.sli.aai.path.lag.interface.l.interface.pnf=/aai/v8/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{lag-interface.interface-name}/l-interfaces/l-interface/{interface-name} +org.openecomp.sdnc.sli.aai.path.p.interface.l.interface.pnf=/aai/v8/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{p-interface.interface-name}/l-interfaces/l-interface/{interface-name} + +# subinterface +org.openecomp.sdnc.sli.aai.path.pnf.lag.interface.subinterface=/aai/v8/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{lag-interface.interface-name}/l-interfaces/l-interface/{interface-name} +org.openecomp.sdnc.sli.aai.path.pnf.p.interface.l.interface=/aai/v8/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{p-interface.interface-name}/l-interfaces/l-interface/{interface-name} + +# vlans +org.openecomp.sdnc.sli.aai.path.vlan=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/tenants/tenant/{tenant-id}/vservers/vserver/{vserver-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface} +org.openecomp.sdnc.sli.aai.path.generic.vnf.vlan=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface} + +# l3-interface-ipv4-address-list +org.openecomp.sdnc.sli.aai.path.l3.interface.ipv4.address.list=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address} +org.openecomp.sdnc.sli.aai.path.vlan.l3.interface.ipv4.address.list=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address} + +# l3-interface-ipv6-address-list +org.openecomp.sdnc.sli.aai.path.l3.interface.ipv6.address.list=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address} +org.openecomp.sdnc.sli.aai.path.vlan.l3.interface.ipv6.address.list=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address} + +# ipsec-configuration +org.openecomp.sdnc.sli.aai.path.ipsec.configuration=/aai/v8/network/ipsec-configurations/ipsec-configuration/{ipsec-configuration-id} + +# vig server +org.openecomp.sdnc.sli.aai.path.vig.server=/aai/v8/network/ipsec-configurations/ipsec-configuration/{ipsec-configuration-id}/vig-servers/vig-server/{vig-address-type} + +# l3-network +org.openecomp.sdnc.sli.aai.path.l3.network=/aai/v8/network/l3-networks/l3-network/{network-id} + +# subnet +org.openecomp.sdnc.sli.aai.path.subnet=/aai/v8/network/l3-networks/l3-network/{network-id}/subnets/subnet/{subnet-id} + +# multicast-configuration +org.openecomp.sdnc.sli.aai.path.multicast.configuration=/aai/v8/network/multicast-configurations/multicast-configuration/{multicast-configuration-id} + +# org.openecomp.sdnc.sli.aai.path.l.interface.ipv4.address.list +org.openecomp.sdnc.sli.aai.path.l3-interface.ipv4.address.list=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address} + +# org.openecomp.sdnc.sli.aai.path.l.interface.vlan.ipv4.address.list +org.openecomp.sdnc.sli.aai.path.l3-interface.vlan.ipv4.address.list=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address} + +# org.openecomp.sdnc.sli.aai.path.l.interface.ipv6.address.list +org.openecomp.sdnc.sli.aai.path.l3-interface.ipv6.address.list=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address} + +# volume.group +org.openecomp.sdnc.sli.aai.path.volume.group=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/volume-groups/volume-group/{volume-group-id} + +#cloud region +org.openecomp.sdnc.sli.aai.path.cloud.region=/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id} + +# vf-module +org.openecomp.sdnc.sli.aai.path.vf.module=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/vf-modules/vf-module/{vf-module-id} + +# l-interface through generic-vnf +org.openecomp.sdnc.sli.aai.path.generic.vnf.linterface=/aai/v8/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name} + +# network-policy +org.openecomp.sdnc.sli.aai.path.network.policy=/aai/v8/network/network-policies/network-policy/{network-policy-id} + +# pnf +org.openecomp.sdnc.sli.aai.path.pnf=/aai/v8/network/pnfs/pnf/{pnf-name} + +# +# Formatting +# +org.openecomp.sdnc.sli.aai.param.format=filter=%s:%s +org.openecomp.sdnc.sli.aai.param.vnf_type=vnf-type +org.openecomp.sdnc.sli.aai.param.physical.location.id=physical-location-id +org.openecomp.sdnc.sli.aai.param.service.type=service-type diff --git a/installation/src/main/properties/admportal.json b/installation/src/main/properties/admportal.json new file mode 100755 index 00000000..830b7629 --- /dev/null +++ b/installation/src/main/properties/admportal.json @@ -0,0 +1,68 @@ +{ + "MainMenu": "gamma", + "dbConnLimit": "100", + "home": "/opt/admportal", + "sslEnabled": "false", + "nonSslPort": "8843", + "ConexusNetworkPort": "8443", + "AppNetworkPort": "8543", + "clusterPort": "8443", + "serviceHomingServiceType": "SDN-ETHERNET-INTERNET", + "passwordKey": "QtfJMKggVk", + "preloadImportDirectory": "C:/data/csv", + "clusterPrefixURL": "/jolokia/read/org.opendaylight.controller:Category=Shards,name=member-", + "clusterMidURL": "-shard-", + "clusterSuffixURL": "-config,type=DistributedConfigDatastore", + "shards": [ + "default", + "inventory", + "topology" + ], + "dbFabric": "false", + "ip-addresses": { + "lo": "127.0.0.1", + "eth0": "127.0.0.1", + "docker0": "172.17.0.1", + "virbr0": "192.168.122.1" + }, + "svclogicPropertiesDb01": "/opt/openecomp/sdnc/data/properties/svclogic.properties.sdnctldb01", + "databases": [ + "dbhost|sdnctldb01" + ], + "dbFabricServer": "localhost", + "dbFabricPort": "32275", + "dbFabricGroupId": "hagroup1", + "dbFabricUser": "admin", + "dbFabricPassword": "admin", + "dbFabricDB": "mysql", + "dbUser": "sdnctl", + "dbPassword": "gamma", + "dbName": "sdnctl", + "odlProtocol": "http", + "odlHost": "sdnhost", + "odlConexusHost": "sdnhost", + "odlPort": "8181", + "odlConexusPort": "8181", + "odlUser": "admin", + "odlPasswd": "admin", + "ConexusNetwork_sslCert": "", + "ConexusNetwork_sslKey": "", + "AppNetwork_sslCert": "", + "AppNetwork_sslKey": "", + "hostnameList": [ + { + "hname": "localhost" + } + ], + "shard_list": [ + { + "shard_name": "default" + }, + { + "shard_name": "inventory" + }, + { + "shard_name": "topology" + } + ] +} diff --git a/installation/src/main/properties/admportal.log4js.json b/installation/src/main/properties/admportal.log4js.json new file mode 100755 index 00000000..0f41e564 --- /dev/null +++ b/installation/src/main/properties/admportal.log4js.json @@ -0,0 +1,169 @@ +{ + "appenders": [ + { + "category": "accesslog", + "type" : "file", + "absolute": true, + "filename": "/opt/admportal/logs/accesslog.log" + }, + { + "category" : "usertrace", + "type" : "file", + "absolute" : true, + "filename" : "/opt/admportal/logs/usertrace.log" + }, + { + "category": "tracelog", + "type" : "dateFile", + "absolute": true, + "filename": "/opt/admportal/logs/tracelog.log", + "pattern": "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "tunnel", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/tunnel.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "preload", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/preload.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "eipam", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/eipam.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "instar", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/instar.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "app", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/app.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "csp", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/csp.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "db", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/db.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "admin", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/admin.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "resalloc", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/resalloc.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "logs", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/applogs.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "sla", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/sla.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "gamma", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/gamma.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "odl", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/odl.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "mobility", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/mobility.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "ucpe", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/ucpe.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + }, + { + "category" : "user", + "type" : "dateFile", + "absolute" : true, + "filename" : "/opt/admportal/logs/user.log", + "pattern" : "-yyyy-MM-dd", + "alwaysIncludePattern": true, + "backups" : 14 + } + ] +} diff --git a/installation/src/main/properties/dblib.properties b/installation/src/main/properties/dblib.properties new file mode 100644 index 00000000..fa81866f --- /dev/null +++ b/installation/src/main/properties/dblib.properties @@ -0,0 +1,37 @@ +### +# ============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========================================================= +### + +# dblib.properrties +org.openecomp.sdnc.sli.dbtype=jdbc + +org.openecomp.sdnc.sli.jdbc.hosts=sdnctldb01 +org.openecomp.sdnc.sli.jdbc.url=jdbc:mysql://dbhost:3306/sdnctl +org.openecomp.sdnc.sli.jdbc.database=sdnctl +org.openecomp.sdnc.sli.jdbc.user=sdnctl +org.openecomp.sdnc.sli.jdbc.password=gamma +org.openecomp.sdnc.sli.jdbc.connection.name=sdnctldb01 +org.openecomp.sdnc.sli.jdbc.connection.timeout=50 +org.openecomp.sdnc.sli.jdbc.request.timeout=100 +org.openecomp.sdnc.sli.jdbc.limit.init=10 +org.openecomp.sdnc.sli.jdbc.limit.min=10 +org.openecomp.sdnc.sli.jdbc.limit.max=20 +org.openecomp.dblib.connection.recovery=false + diff --git a/installation/src/main/properties/mdsal-resource.properties b/installation/src/main/properties/mdsal-resource.properties new file mode 100644 index 00000000..62ad3757 --- /dev/null +++ b/installation/src/main/properties/mdsal-resource.properties @@ -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========================================================= +### + +org.openecomp.sdnc.sli.resource.mdsal.sdnc-user=admin +org.openecomp.sdnc.sli.resource.mdsal.sdnc-passwd=admin +org.openecomp.sdnc.sli.resource.mdsal.sdnc-host=localhost +org.openecomp.sdnc.sli.resource.mdsal.sdnc-protocol=http +org.openecomp.sdnc.sli.resource.mdsal.sdnc-port=8181 + diff --git a/installation/src/main/properties/sql-resource.properties b/installation/src/main/properties/sql-resource.properties new file mode 100644 index 00000000..3a08ebf9 --- /dev/null +++ b/installation/src/main/properties/sql-resource.properties @@ -0,0 +1,23 @@ +### +# ============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========================================================= +### + +org.openecomp.sdnc.resource.sql.cryptkey=QtfJMKggVk + diff --git a/installation/src/main/properties/svclogic.properties b/installation/src/main/properties/svclogic.properties new file mode 100644 index 00000000..8f7c16e8 --- /dev/null +++ b/installation/src/main/properties/svclogic.properties @@ -0,0 +1,29 @@ +### +# ============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========================================================= +### + +org.openecomp.sdnc.sli.dbtype = dblib +#Note : the next 4 fields are only used if org.openecomp.sdnc.sli.dbtype = jdbc +org.openecomp.sdnc.sli.jdbc.url=jdbc:mysql://dbhost:3306/sdnctl +org.openecomp.sdnc.sli.jdbc.database=sdnctl +org.openecomp.sdnc.sli.jdbc.user=sdnctl +org.openecomp.sdnc.sli.jdbc.password=gamma + +org.xml.sax.driver=org.apache.xerces.parsers.SAXParser diff --git a/installation/src/main/properties/svclogic.properties.sdnctldb01 b/installation/src/main/properties/svclogic.properties.sdnctldb01 new file mode 100755 index 00000000..efc1cb34 --- /dev/null +++ b/installation/src/main/properties/svclogic.properties.sdnctldb01 @@ -0,0 +1,29 @@ +### +# ============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========================================================= +### + +org.openecomp.sdnc.sli.dbtype = dblib +#Note : the next 4 fields are only used if org.openecomp.sdnc.sli.dbtype = jdbc +org.openecomp.sdnc.sli.jdbc.url=jdbc:mysql://dbhost:3306/sdnctl +org.openecomp.sdnc.sli.jdbc.database=sdnctl +org.openecomp.sdnc.sli.jdbc.user=sdnctl +org.openecomp.sdnc.sli.jdbc.password=gamma + +org.xml.sax.driver=org.apache.xerces.parsers.SAXParser diff --git a/installation/src/main/stores/truststore.openecomp.client.jks b/installation/src/main/stores/truststore.openecomp.client.jks Binary files differnew file mode 100644 index 00000000..6c854b4c --- /dev/null +++ b/installation/src/main/stores/truststore.openecomp.client.jks diff --git a/installation/ubuntu/pom.xml b/installation/ubuntu/pom.xml new file mode 100644 index 00000000..603ba267 --- /dev/null +++ b/installation/ubuntu/pom.xml @@ -0,0 +1,102 @@ +<?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/maven-v4_0_0.xsd"> + + <parent> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation</artifactId> + <version>1.0.0</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>pom</packaging> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation-ubuntu</artifactId> + <version>1.0.0</version> + + <name>Installation - ubuntu</name> + <description>Creates base ubuntu Docker container</description> + + <properties> + <image.name>ecomp/ubuntu-sdnc-image</image.name> + </properties> + + + <build> + <plugins> + + + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.16.5</version> + <inherited>false</inherited> + <configuration> + + <images> + <image> + <name>${image.name}</name> + <build> + <cleanup>try</cleanup> + <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> + <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> + <tags> + <tag>${project.version}</tag> + <tag>latest</tag> + </tags> + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>generate-sources</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </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>validate</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> + </executions> + </plugin> + </plugins> + + </build> + <organization> + <name>openECOMP</name> + </organization> +</project> diff --git a/installation/ubuntu/src/main/docker/Dockerfile b/installation/ubuntu/src/main/docker/Dockerfile new file mode 100644 index 00000000..4c6de286 --- /dev/null +++ b/installation/ubuntu/src/main/docker/Dockerfile @@ -0,0 +1,9 @@ +# Base ubuntu with added packages needed for open ecomp +FROM ubuntu:14.04.5 +MAINTAINER SDN-C Team (sdnc@lists.openecomp.org) +# Steps needed to run inside ATT +#COPY sources.list /etc/apt +#COPY my_key.pub /tmp +#RUN apt-key add - < /tmp/my_key.pub +# Add tools needed for OpenDaylight +RUN apt-get update && apt-get install -y git openjdk-7-jdk maven2 mysql-client nodejs nodejs-legacy python-pip graphviz npm |