From 608d55685d920851c25523c2418b249811dbf0b7 Mon Sep 17 00:00:00 2001 From: ’zhaoyh6‘ Date: Thu, 10 Mar 2022 17:22:54 +0800 Subject: feat:Create an entry for the unified intent instance, save the instance information to AAI, and add test code. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue-ID: REQ-1075 Signed-off-by: ’zhaoyh6‘ Change-Id: Iae5d246441d06b8ba30cdde5b14ae2202d46b85a --- .../src/main/assembly/config/ccvpn.properties | 21 +++++++++++++++++++++ .../dbscripts/postgres/uui_create_table.sql | 5 +++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 standalone/src/main/assembly/config/ccvpn.properties (limited to 'standalone/src') diff --git a/standalone/src/main/assembly/config/ccvpn.properties b/standalone/src/main/assembly/config/ccvpn.properties new file mode 100644 index 00000000..27288ee9 --- /dev/null +++ b/standalone/src/main/assembly/config/ccvpn.properties @@ -0,0 +1,21 @@ +## +## Copyright (C) 2019 CMCC, Inc. and others. 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. +##/ + +ccvpn.globalCustomerId=IBNCustomer +ccvpn.subscriberName=IBNCustomer +ccvpn.subscriberType=INFRA +ccvpn.serviceType=IBN + diff --git a/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql b/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql index 6a3cf87c..d7201f51 100644 --- a/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql +++ b/standalone/src/main/assembly/resources/dbscripts/postgres/uui_create_table.sql @@ -170,7 +170,7 @@ DROP TABLE IF EXISTS ccvpn_instance; CREATE TABLE ccvpn_instance ( id serial not null - constraint intent_instance_pk + constraint ccvpn_instance_pk primary key, instance_id varchar(16), job_id varchar(36), @@ -182,7 +182,8 @@ CREATE TABLE ccvpn_instance access_point_one_name varchar(255), access_point_one_band_width integer, line_num varchar(64), - delete_state integer default 0 + delete_state integer default 0, + protect_status integer default 0 ); -- ---------------------------- -- cgit 1.2.3-korg