From e2e54618859bf098a7f06c106d869d3765e7f04c Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Wed, 13 Sep 2017 09:00:12 +0800 Subject: Replace vnfres db scripts openo to onap Change-Id: Ie50c7e544e0e49f5e02d9519b9fd9e749641e632 Issue-ID: VFC-343 Signed-off-by: ying.yunlong --- res/assembly/bin/initDB.sh | 2 +- .../dbscripts/mysql/onap-gvnfm-vnfres-createdb.sql | 32 +++ .../mysql/onap-gvnfm-vnfres-createobj.sql | 251 +++++++++++++++++++++ .../mysql/openo-gvnfm-vnfres-createdb.sql | 32 --- .../mysql/openo-gvnfm-vnfres-createobj.sql | 251 --------------------- 5 files changed, 284 insertions(+), 284 deletions(-) create mode 100644 res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createdb.sql create mode 100644 res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createobj.sql delete mode 100644 res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createdb.sql delete mode 100644 res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createobj.sql diff --git a/res/assembly/bin/initDB.sh b/res/assembly/bin/initDB.sh index f756643..1ed4863 100755 --- a/res/assembly/bin/initDB.sh +++ b/res/assembly/bin/initDB.sh @@ -23,7 +23,7 @@ port=$3 host=$4 echo "start create resource management db" sql_path=$HOME/../ -mysql -u$user -p$password -P$port -h$host <$sql_path/dbscripts/mysql/openo-gvnfm-vnfres-createdb.sql +mysql -u$user -p$password -P$port -h$host <$sql_path/dbscripts/mysql/onap-gvnfm-vnfres-createdb.sql sql_result=$? if [ $sql_result != 0 ] ; then echo "failed to create resource management database" diff --git a/res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createdb.sql b/res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createdb.sql new file mode 100644 index 0000000..32d2450 --- /dev/null +++ b/res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createdb.sql @@ -0,0 +1,32 @@ +-- +-- Copyright 2017 ZTE Corporation. +-- +-- 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. +-- + + +/******************drop old database and user***************************/ +use mysql; +drop database IF EXISTS gvnfm; +delete from user where User='gvnfm'; +FLUSH PRIVILEGES; + +/******************create new database and user***************************/ +create database gvnfm CHARACTER SET utf8; + +GRANT ALL PRIVILEGES ON gvnfm.* TO 'gvnfm'@'%' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON mysql.* TO 'gvnfm'@'%' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; + +GRANT ALL PRIVILEGES ON gvnfm.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON mysql.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; +FLUSH PRIVILEGES; \ No newline at end of file diff --git a/res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createobj.sql b/res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createobj.sql new file mode 100644 index 0000000..86a2010 --- /dev/null +++ b/res/assembly/dbscripts/mysql/onap-gvnfm-vnfres-createobj.sql @@ -0,0 +1,251 @@ +-- +-- Copyright 2017 ZTE Corporation. +-- +-- 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. +-- + +use gvnfm; + +CREATE TABLE `NFINST` ( + `NFINSTID` varchar(200) NOT NULL PRIMARY KEY, + `NFNAME` varchar(100), + `PACKAGEID` varchar(200), + `STATUS` varchar(20), + `FLAVOURID` varchar(200), + `LOCATION` varchar(200), + `VERSION` varchar(255), + `VENDOR` varchar(255), + `NETYPE` varchar(255), + `VNFDMODEL` longtext, + `INPUTPARAMS` longtext, + `CREATETIME` varchar(200), + `LASTUPTIME` varchar(200), + `VNFINSTANCEDESC` varchar(200), + `VNFDID` varchar(200), + `VNFSOFTWAREVER` varchar(200), + `VNFCONFIGURABLEPROPERTIES` longtext, + `LOCALIZATIONLANGUAGE` varchar(255) +) +; +CREATE TABLE `JOB` ( + `JOBID` varchar(255) NOT NULL PRIMARY KEY, + `JOBTYPE` varchar(255) NOT NULL, + `JOBACTION` varchar(255) NOT NULL, + `RESID` varchar(255) NOT NULL, + `STATUS` integer, + `STARTTIME` varchar(255), + `ENDTIME` varchar(255), + `PROGRESS` integer, + `USER` varchar(255), + `PARENTJOBID` varchar(255), + `RESNAME` varchar(255) +) +; +CREATE TABLE `JOB_STATUS` ( + `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, + `INDEXID` integer NOT NULL, + `JOBID` varchar(255) NOT NULL, + `STATUS` varchar(255) NOT NULL, + `PROGRESS` integer, + `DESCP` longtext NOT NULL, + `ERRCODE` varchar(255), + `ADDTIME` varchar(255) +) +; +CREATE TABLE `NFVOREGINFO` ( + `NFVOID` varchar(255) NOT NULL PRIMARY KEY, + `VNFMINSTID` varchar(255) NOT NULL, + `URL` varchar(255) NOT NULL, + `USERNAME` varchar(255), + `PASSWD` varchar(255), + `AUTHTYPE` integer NOT NULL, + `CLIENTCERT` varchar(255), + `SERVERCERT` varchar(255), + `REGTIME` varchar(255) NOT NULL +) +; +CREATE TABLE `STORAGEINST` ( + `STORAGEID` varchar(255) NOT NULL PRIMARY KEY, + `VIMID` varchar(255) NOT NULL, + `RESOURCEID` varchar(255) NOT NULL, + `INSTTYPE` integer NOT NULL, + `INSTID` varchar(255) NOT NULL, + `NAME` varchar(255), + `STORAGETYPE` varchar(255) NOT NULL, + `SIZE` varchar(255) NOT NULL, + `TENANT` varchar(50), + `ISPREDEFINED` integer, + `CREATETIME` varchar(200), + `NODEID` varchar(255) +) +; +CREATE TABLE `VMINST` ( + `VMID` varchar(255) NOT NULL PRIMARY KEY, + `VIMID` varchar(255) NOT NULL, + `TENANT` varchar(255), + `RESOURCEID` varchar(255) NOT NULL, + `VMNAME` varchar(255) NOT NULL, + `NICARRAY` varchar(255) NOT NULL, + `METADATA` varchar(255) NOT NULL, + `VOLUMEARRAY` varchar(255) NOT NULL, + `SERVERGROUP` varchar(255) NOT NULL, + `AVAILABILITYZONE` varchar(255) NOT NULL, + `FLAVORID` varchar(255) NOT NULL, + `SECURITYGROUPS` varchar(255) NOT NULL, + `OPERATIONALSTATE` varchar(255), + `INSTTYPE` integer NOT NULL, + `ISPREDEFINED` integer, + `CREATETIME` varchar(200), + `INSTID` varchar(255) NOT NULL, + `NODEID` varchar(255) +) +; +CREATE TABLE `VNFCINST` ( + `VNFCINSTANCEID` varchar(255) NOT NULL PRIMARY KEY, + `VDUID` varchar(255) NOT NULL, + `VDUTYPE` varchar(255) NOT NULL, + `NFINSTID` varchar(255) NOT NULL, + `VMID` varchar(255) NOT NULL, + `ISPREDEFINED` integer +) +; +CREATE TABLE `FLAVOURINST` ( + `FLAVOURID` varchar(255) NOT NULL PRIMARY KEY, + `VIMID` varchar(255) NOT NULL, + `RESOURCEID` varchar(255) NOT NULL, + `NAME` varchar(255) NOT NULL, + `TENANT` varchar(255), + `VCPU` integer, + `MEMORY` integer, + `DISK` integer, + `EPHEMERAL` integer, + `SWAP` integer, + `ISPUBLIC` integer, + `EXTRASPECS` varchar(255) NOT NULL, + `INSTID` varchar(255) NOT NULL, + `CREATETIME` varchar(200), + `ISPREDEFINED` integer +) +; +CREATE TABLE `NETWORKINST` ( + `NETWORKID` varchar(255) NOT NULL PRIMARY KEY, + `VIMID` varchar(255) NOT NULL, + `RESOURCEID` varchar(255) NOT NULL, + `INSTTYPE` integer NOT NULL, + `INSTID` varchar(255) NOT NULL, + `NAME` varchar(255) NOT NULL, + `TENANT` varchar(255), + `ISPREDEFINED` integer, + `DESC` varchar(255), + `VENDOR` varchar(255), + `BANDWIDTH` integer, + `MTU` integer, + `NETWORKTYPE` varchar(255), + `SEGMENTID` varchar(255), + `NETWORKQOS` varchar(255), + `CREATETIME` varchar(200), + `PHYNETWORK` varchar(255), + `ISSHARED` integer, + `VLANTRANS` integer, + `ROUTEREXTERNAL` integer, + `NODEID` varchar(255) +) +; +CREATE TABLE `SUBNETWORKINST` ( + `SUBNETWORKID` varchar(255) NOT NULL PRIMARY KEY, + `VIMID` varchar(255) NOT NULL, + `RESOURCEID` varchar(255) NOT NULL, + `NETWORKID` varchar(255) NOT NULL, + `INSTTYPE` integer NOT NULL, + `INSTID` varchar(255) NOT NULL, + `NAME` varchar(255) NOT NULL, + `IPVERSION` integer, + `GATEWAYIP` varchar(255), + `ISDHCPENABLED` integer, + `CIDR` varchar(255) NOT NULL, + `VDSNAME` varchar(255), + `OPERATIONALSTATE` varchar(255), + `TENANT` varchar(255), + `ISPREDEFINED` integer, + `CREATETIME` varchar(200), + `DNSNAMESERVERS` longtext NOT NULL, + `HOSTROUTES` longtext NOT NULL, + `ALLOCATIONPOOLS` longtext NOT NULL +) +; +CREATE TABLE `VLINST` ( + `VLINSTANCEID` varchar(255) NOT NULL PRIMARY KEY, + `VLDID` varchar(255) NOT NULL, + `VLINSTANCENAME` varchar(255), + `OWNERTYPE` integer NOT NULL, + `OWNERID` varchar(255) NOT NULL, + `RELATEDNETWORKID` varchar(255), + `RELATEDSUBNETWORKID` varchar(255), + `VLTYPE` integer NOT NULL, + `VIMID` varchar(255) NOT NULL, + `TENANT` varchar(50) NOT NULL +) +; +CREATE TABLE `PORTINST` ( + `PORTID` varchar(255) NOT NULL PRIMARY KEY, + `NETWORKID` varchar(255) NOT NULL, + `SUBNETWORKID` varchar(255), + `VIMID` varchar(255) NOT NULL, + `RESOURCEID` varchar(255) NOT NULL, + `NAME` varchar(255), + `INSTTYPE` integer NOT NULL, + `INSTID` varchar(255) NOT NULL, + `CPINSTANCEID` varchar(255), + `BANDWIDTH` varchar(255), + `OPERATIONALSTATE` varchar(255), + `IPADDRESS` varchar(255) NOT NULL, + `MACADDRESS` varchar(255) NOT NULL, + `NICORDER` varchar(255) NOT NULL, + `FLOATIPADDRESS` varchar(255), + `SERVICEIPADDRESS` varchar(255), + `TYPEVIRTUALNIC` varchar(255), + `SFCENCAPSULATION` varchar(255), + `DIRECTION` varchar(255), + `TENANT` varchar(255), + `INTERFACENAME` varchar(255), + `VMID` varchar(255), + `CREATETIME` varchar(200), + `SECURITYGROUPS` varchar(255) NOT NULL, + `ISPREDEFINED` integer, + `NODEID` varchar(255) +) +; +CREATE TABLE `CPINST` ( + `CPINSTANCEID` varchar(255) NOT NULL PRIMARY KEY, + `CPDID` varchar(255) NOT NULL, + `CPINSTANCENAME` varchar(255) NOT NULL, + `VLINSTANCEID` varchar(255) NOT NULL, + `OWNERTYPE` integer NOT NULL, + `OWNERID` varchar(255) NOT NULL, + `RELATEDTYPE` integer NOT NULL, + `RELATEDVL` varchar(255), + `RELATEDCP` varchar(255), + `RELATEDPORT` varchar(255) +) +; +CREATE TABLE `VNF_REG` ( + `ID` varchar(200) NOT NULL PRIMARY KEY, + `IP` varchar(200) NOT NULL, + `PORT` varchar(200) NOT NULL, + `USERNAME` varchar(255) NOT NULL, + `PASSWORD` varchar(255) NOT NULL +) +; + +COMMIT; + \ No newline at end of file diff --git a/res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createdb.sql b/res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createdb.sql deleted file mode 100644 index 32d2450..0000000 --- a/res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createdb.sql +++ /dev/null @@ -1,32 +0,0 @@ --- --- Copyright 2017 ZTE Corporation. --- --- 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. --- - - -/******************drop old database and user***************************/ -use mysql; -drop database IF EXISTS gvnfm; -delete from user where User='gvnfm'; -FLUSH PRIVILEGES; - -/******************create new database and user***************************/ -create database gvnfm CHARACTER SET utf8; - -GRANT ALL PRIVILEGES ON gvnfm.* TO 'gvnfm'@'%' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; -GRANT ALL PRIVILEGES ON mysql.* TO 'gvnfm'@'%' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; - -GRANT ALL PRIVILEGES ON gvnfm.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; -GRANT ALL PRIVILEGES ON mysql.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION; -FLUSH PRIVILEGES; \ No newline at end of file diff --git a/res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createobj.sql b/res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createobj.sql deleted file mode 100644 index 86a2010..0000000 --- a/res/assembly/dbscripts/mysql/openo-gvnfm-vnfres-createobj.sql +++ /dev/null @@ -1,251 +0,0 @@ --- --- Copyright 2017 ZTE Corporation. --- --- 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. --- - -use gvnfm; - -CREATE TABLE `NFINST` ( - `NFINSTID` varchar(200) NOT NULL PRIMARY KEY, - `NFNAME` varchar(100), - `PACKAGEID` varchar(200), - `STATUS` varchar(20), - `FLAVOURID` varchar(200), - `LOCATION` varchar(200), - `VERSION` varchar(255), - `VENDOR` varchar(255), - `NETYPE` varchar(255), - `VNFDMODEL` longtext, - `INPUTPARAMS` longtext, - `CREATETIME` varchar(200), - `LASTUPTIME` varchar(200), - `VNFINSTANCEDESC` varchar(200), - `VNFDID` varchar(200), - `VNFSOFTWAREVER` varchar(200), - `VNFCONFIGURABLEPROPERTIES` longtext, - `LOCALIZATIONLANGUAGE` varchar(255) -) -; -CREATE TABLE `JOB` ( - `JOBID` varchar(255) NOT NULL PRIMARY KEY, - `JOBTYPE` varchar(255) NOT NULL, - `JOBACTION` varchar(255) NOT NULL, - `RESID` varchar(255) NOT NULL, - `STATUS` integer, - `STARTTIME` varchar(255), - `ENDTIME` varchar(255), - `PROGRESS` integer, - `USER` varchar(255), - `PARENTJOBID` varchar(255), - `RESNAME` varchar(255) -) -; -CREATE TABLE `JOB_STATUS` ( - `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, - `INDEXID` integer NOT NULL, - `JOBID` varchar(255) NOT NULL, - `STATUS` varchar(255) NOT NULL, - `PROGRESS` integer, - `DESCP` longtext NOT NULL, - `ERRCODE` varchar(255), - `ADDTIME` varchar(255) -) -; -CREATE TABLE `NFVOREGINFO` ( - `NFVOID` varchar(255) NOT NULL PRIMARY KEY, - `VNFMINSTID` varchar(255) NOT NULL, - `URL` varchar(255) NOT NULL, - `USERNAME` varchar(255), - `PASSWD` varchar(255), - `AUTHTYPE` integer NOT NULL, - `CLIENTCERT` varchar(255), - `SERVERCERT` varchar(255), - `REGTIME` varchar(255) NOT NULL -) -; -CREATE TABLE `STORAGEINST` ( - `STORAGEID` varchar(255) NOT NULL PRIMARY KEY, - `VIMID` varchar(255) NOT NULL, - `RESOURCEID` varchar(255) NOT NULL, - `INSTTYPE` integer NOT NULL, - `INSTID` varchar(255) NOT NULL, - `NAME` varchar(255), - `STORAGETYPE` varchar(255) NOT NULL, - `SIZE` varchar(255) NOT NULL, - `TENANT` varchar(50), - `ISPREDEFINED` integer, - `CREATETIME` varchar(200), - `NODEID` varchar(255) -) -; -CREATE TABLE `VMINST` ( - `VMID` varchar(255) NOT NULL PRIMARY KEY, - `VIMID` varchar(255) NOT NULL, - `TENANT` varchar(255), - `RESOURCEID` varchar(255) NOT NULL, - `VMNAME` varchar(255) NOT NULL, - `NICARRAY` varchar(255) NOT NULL, - `METADATA` varchar(255) NOT NULL, - `VOLUMEARRAY` varchar(255) NOT NULL, - `SERVERGROUP` varchar(255) NOT NULL, - `AVAILABILITYZONE` varchar(255) NOT NULL, - `FLAVORID` varchar(255) NOT NULL, - `SECURITYGROUPS` varchar(255) NOT NULL, - `OPERATIONALSTATE` varchar(255), - `INSTTYPE` integer NOT NULL, - `ISPREDEFINED` integer, - `CREATETIME` varchar(200), - `INSTID` varchar(255) NOT NULL, - `NODEID` varchar(255) -) -; -CREATE TABLE `VNFCINST` ( - `VNFCINSTANCEID` varchar(255) NOT NULL PRIMARY KEY, - `VDUID` varchar(255) NOT NULL, - `VDUTYPE` varchar(255) NOT NULL, - `NFINSTID` varchar(255) NOT NULL, - `VMID` varchar(255) NOT NULL, - `ISPREDEFINED` integer -) -; -CREATE TABLE `FLAVOURINST` ( - `FLAVOURID` varchar(255) NOT NULL PRIMARY KEY, - `VIMID` varchar(255) NOT NULL, - `RESOURCEID` varchar(255) NOT NULL, - `NAME` varchar(255) NOT NULL, - `TENANT` varchar(255), - `VCPU` integer, - `MEMORY` integer, - `DISK` integer, - `EPHEMERAL` integer, - `SWAP` integer, - `ISPUBLIC` integer, - `EXTRASPECS` varchar(255) NOT NULL, - `INSTID` varchar(255) NOT NULL, - `CREATETIME` varchar(200), - `ISPREDEFINED` integer -) -; -CREATE TABLE `NETWORKINST` ( - `NETWORKID` varchar(255) NOT NULL PRIMARY KEY, - `VIMID` varchar(255) NOT NULL, - `RESOURCEID` varchar(255) NOT NULL, - `INSTTYPE` integer NOT NULL, - `INSTID` varchar(255) NOT NULL, - `NAME` varchar(255) NOT NULL, - `TENANT` varchar(255), - `ISPREDEFINED` integer, - `DESC` varchar(255), - `VENDOR` varchar(255), - `BANDWIDTH` integer, - `MTU` integer, - `NETWORKTYPE` varchar(255), - `SEGMENTID` varchar(255), - `NETWORKQOS` varchar(255), - `CREATETIME` varchar(200), - `PHYNETWORK` varchar(255), - `ISSHARED` integer, - `VLANTRANS` integer, - `ROUTEREXTERNAL` integer, - `NODEID` varchar(255) -) -; -CREATE TABLE `SUBNETWORKINST` ( - `SUBNETWORKID` varchar(255) NOT NULL PRIMARY KEY, - `VIMID` varchar(255) NOT NULL, - `RESOURCEID` varchar(255) NOT NULL, - `NETWORKID` varchar(255) NOT NULL, - `INSTTYPE` integer NOT NULL, - `INSTID` varchar(255) NOT NULL, - `NAME` varchar(255) NOT NULL, - `IPVERSION` integer, - `GATEWAYIP` varchar(255), - `ISDHCPENABLED` integer, - `CIDR` varchar(255) NOT NULL, - `VDSNAME` varchar(255), - `OPERATIONALSTATE` varchar(255), - `TENANT` varchar(255), - `ISPREDEFINED` integer, - `CREATETIME` varchar(200), - `DNSNAMESERVERS` longtext NOT NULL, - `HOSTROUTES` longtext NOT NULL, - `ALLOCATIONPOOLS` longtext NOT NULL -) -; -CREATE TABLE `VLINST` ( - `VLINSTANCEID` varchar(255) NOT NULL PRIMARY KEY, - `VLDID` varchar(255) NOT NULL, - `VLINSTANCENAME` varchar(255), - `OWNERTYPE` integer NOT NULL, - `OWNERID` varchar(255) NOT NULL, - `RELATEDNETWORKID` varchar(255), - `RELATEDSUBNETWORKID` varchar(255), - `VLTYPE` integer NOT NULL, - `VIMID` varchar(255) NOT NULL, - `TENANT` varchar(50) NOT NULL -) -; -CREATE TABLE `PORTINST` ( - `PORTID` varchar(255) NOT NULL PRIMARY KEY, - `NETWORKID` varchar(255) NOT NULL, - `SUBNETWORKID` varchar(255), - `VIMID` varchar(255) NOT NULL, - `RESOURCEID` varchar(255) NOT NULL, - `NAME` varchar(255), - `INSTTYPE` integer NOT NULL, - `INSTID` varchar(255) NOT NULL, - `CPINSTANCEID` varchar(255), - `BANDWIDTH` varchar(255), - `OPERATIONALSTATE` varchar(255), - `IPADDRESS` varchar(255) NOT NULL, - `MACADDRESS` varchar(255) NOT NULL, - `NICORDER` varchar(255) NOT NULL, - `FLOATIPADDRESS` varchar(255), - `SERVICEIPADDRESS` varchar(255), - `TYPEVIRTUALNIC` varchar(255), - `SFCENCAPSULATION` varchar(255), - `DIRECTION` varchar(255), - `TENANT` varchar(255), - `INTERFACENAME` varchar(255), - `VMID` varchar(255), - `CREATETIME` varchar(200), - `SECURITYGROUPS` varchar(255) NOT NULL, - `ISPREDEFINED` integer, - `NODEID` varchar(255) -) -; -CREATE TABLE `CPINST` ( - `CPINSTANCEID` varchar(255) NOT NULL PRIMARY KEY, - `CPDID` varchar(255) NOT NULL, - `CPINSTANCENAME` varchar(255) NOT NULL, - `VLINSTANCEID` varchar(255) NOT NULL, - `OWNERTYPE` integer NOT NULL, - `OWNERID` varchar(255) NOT NULL, - `RELATEDTYPE` integer NOT NULL, - `RELATEDVL` varchar(255), - `RELATEDCP` varchar(255), - `RELATEDPORT` varchar(255) -) -; -CREATE TABLE `VNF_REG` ( - `ID` varchar(200) NOT NULL PRIMARY KEY, - `IP` varchar(200) NOT NULL, - `PORT` varchar(200) NOT NULL, - `USERNAME` varchar(255) NOT NULL, - `PASSWORD` varchar(255) NOT NULL -) -; - -COMMIT; - \ No newline at end of file -- cgit 1.2.3-korg