4123117617dcba55a814fa1366c86909a81c45a7
[ccsdk/sli/core.git] / sli / common / src / main / resources / crAseNetwork.sql
1 ---
2 -- ============LICENSE_START=======================================================
3 -- openECOMP : SDN-C
4 -- ================================================================================
5 -- Copyright (C) 2017 AT&T Intellectual Property. All rights
6 --                                              reserved.
7 -- ================================================================================
8 -- Licensed under the Apache License, Version 2.0 (the "License");
9 -- you may not use this file except in compliance with the License.
10 -- You may obtain a copy of the License at
11 -- 
12 --      http://www.apache.org/licenses/LICENSE-2.0
13 -- 
14 -- Unless required by applicable law or agreed to in writing, software
15 -- distributed under the License is distributed on an "AS IS" BASIS,
16 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 -- See the License for the specific language governing permissions and
18 -- limitations under the License.
19 -- ============LICENSE_END=========================================================
20 ---
21
22 CREATE TABLE sdnctl.ASE (
23         ase_network_id INT NOT NULL,
24         topology VARCHAR(25),
25         CONSTRAINT P_ASE PRIMARY KEY(ase_network_id));
26         
27 CREATE TABLE sdnctl.ASE_PORT (
28         esm_name VARCHAR(25),
29         resource_emt_clli VARCHAR(25) NOT NULL,
30         resource_emt_ip_addr VARCHAR(25) NOT NULL,
31         port_action VARCHAR(25),
32         profile VARCHAR(25) ,
33         port VARCHAR(15) NOT NULL,
34         state VARCHAR(25),
35         resource_mode VARCHAR(25),
36     speed INT,
37     resource_lldp VARCHAR(1),
38         resource_mtu VARCHAR(5),
39         resource_autoneg VARCHAR(10),
40         resource_twamp VARCHAR(10),
41         resource_description VARCHAR(80),
42         uni_circuit_id VARCHAR(45),
43         CONSTRAINT P_ASE_PORT PRIMARY KEY(resource_emt_clli, port));
44         
45 CREATE TABLE sdnctl.ASE_EVC (
46         esm_name VARCHAR(25),
47         emt_ip_addr VARCHAR(25) NOT NULL,
48         evc_action VARCHAR(25),
49         service_id VARCHAR(25),
50         serv_type VARCHAR(25),
51         evc_choice VARCHAR(25),
52         uni_port VARCHAR(25) NOT NULL,
53         lag_port VARCHAR(25),
54         mac_onoff VARCHAR(25),  
55         ppcos VARCHAR(25),
56         cir VARCHAR(25),
57         cbs VARCHAR(25),
58         ebs VARCHAR(25),        
59         sgos VARCHAR(25),
60         pe VARCHAR(25),
61         unit VARCHAR(25),
62         qinq VARCHAR(25),       
63         interface VARCHAR(25),
64         evc_description VARCHAR(80),    
65         bandwidth VARCHAR(10),
66         svlan VARCHAR(5),
67         cvlan VARCHAR(5),
68         routing_instance VARCHAR(25),
69         rd VARCHAR(25),
70         rt VARCHAR(25),
71         evc_limit VARCHAR(25),
72         label_block_size VARCHAR(25),
73         site VARCHAR(25),
74         int_mac_limit VARCHAR(5),
75         sgos_grade VARCHAR(25),
76         bum_rate VARCHAR(25),
77         uni_circuit_id VARCHAR(45),
78         leg INT,
79         CONSTRAINT P_ASE_EVC PRIMARY KEY(emt_ip_addr, uni_port,leg));
80         
81         
82