1 | var mongoose = require('mongoose'),
|
2 | Schema = mongoose.Schema;
|
3 |
|
4 | var hostsSchema = new Schema({
|
5 | regionId: { type: String },
|
6 | hostId: { type: String },
|
7 | ip_address: {local_ip: { type: String },
|
8 | public_ip : { type: String },
|
9 | private_federation_ip : { type: String }},
|
10 |
|
11 | hostname: { type: String },
|
12 |
|
13 |
|
14 | type: { type: String, enum:
|
15 | ['phy', 'vm']
|
16 | },
|
17 |
|
18 | description: { type: String },
|
19 | port_NAM: { type: String },
|
20 | port_iperf: { type: String },
|
21 | ping_status: { type: Boolean },
|
22 | bdw_status: { type: Boolean },
|
23 | owd_status: { type: Boolean },
|
24 | lossp_status: { type: Boolean },
|
25 | ntp_server : { type: String },
|
26 | NGSIAdapter_url : { type: String },
|
27 | limit_scheduledTest : { type: String },
|
28 | ls_global : { type: String },
|
29 |
|
30 | OWD_endpoint_dest_schedule: [{ regionId: { type: String },
|
31 | hostId : { type: String },
|
32 | frequency: { type: Number },
|
33 | type: { type: String, enum:
|
34 | ['owd']
|
35 | }
|
36 | }],
|
37 |
|
38 | BDW_endpoint_dest_schedule: [{ regionId: { type: String },
|
39 | hostId : { type: String },
|
40 | frequency: { type: Number },
|
41 | type: { type: String, enum:
|
42 | ['bdw']
|
43 | }
|
44 |
|
45 | }]
|
46 |
|
47 |
|
48 | });
|
49 |
|
50 | module.exports = mongoose.model('hosts_data', hostsSchema); |
\ | No newline at end of file |