Fix CI Cent OS 8 configuration issue (workaround)
[transportpce.git] / inventory / src / main / java / org / opendaylight / transportpce / inventory / utils / JsonStringBuilder.java
1 /*
2  * Copyright © 2016 AT&T and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.transportpce.inventory.utils;
9
10 public final class JsonStringBuilder {
11
12     public static String getDevInfoJson() {
13
14         String devInfoJson = "{ \"info\" : { \n"
15             + "\"node-id\": \"$$NODE-ID$$\",\n"
16             + "\"node-number\": \"$$NODE-NUMBER$$\",\n"
17             + "\"node-type\":\"$$NODE-TYPE$$\",\n"
18             + "\"clli\":\"$$CLLI$$\",\n"
19             + "\"vendor\":\"$$VENDOR$$\",\n"
20             + "\"model\":\"$$MODEL$$\",\n"
21             + "\"serial-id\":\"$$SERIAL-ID$$\",\n"
22             + "\"ipAddress\":\"$$IPADDRESS$$\",\n"
23             + "\"prefix-length\":\"$$PREFIX-LENGTH$$\",\n"
24             + "\"defaultGateway\":\"$$DEFAULTGATEWAY$$\",\n"
25             + "\"source\":\"$$SOURCE$$\",\n"
26             + "\"current-ipAddress\":\"$$CURRENT-IPADDRESS$$\",\n"
27             + "\"current-prefix-length\":\"$$CURRENT-PREFIX-LENGTH$$\",\n"
28             + "\"current-defaultGateway\":\"$$CURRENT-DEFAULTGATEWAY$$\",\n"
29             + "\"macAddress\":\"$$MACADDRESS$$\",\n"
30             + "\"softwareVersion\":\"$$SOFTWAREVERSION$$\",\n"
31             + "\"openroadm-version\":\"$$OPENROADM-VERSION$$\",\n"
32             + "\"template\":\"$$TEMPLATE$$\",\n"
33             + "\"current-datetime\":\"$$CURRENT-DATETIME$$\",\n"
34             + "\"geoLocation\": {\n"
35             + "\"latitude\":\"$$LATITUDE$$\",\n"
36             + "\"longitude\":\"$$LONGITUDE$$\"\n"
37             + "},\n"
38             + "\"max-degrees\":\"$$MAX-DEGREES$$\",\n"
39             + "\"max-srgs\":\"$$MAX-SRGS$$\",\n"
40             + "\"max-num-bin-15min-historical-pm\":\"$$MAX-NUM-BIN-15MIN-HISTORICAL-PM$$\",\n"
41             + "\"max-num-bin-24hour-historical-pm\":\"$$MAX-NUM-BIN-24HOUR-HISTORICAL-PM$$\",\n"
42             + "\"pending-sw\":{\n"
43             + "\"sw-version\":\"$$SW-VERSION$$\",\n"
44             + "\"sw-validation-timer\":\"$$SW-VALIDATION-TIMER$$\",\n"
45             + "\"activation-date-time\":\"$$ACTIVATION-DATE-TIME$$\"\n"
46             + "}\n"
47             + "}\n"
48             + "}";
49         return devInfoJson;
50     }
51
52     private JsonStringBuilder() {
53         //not called
54     }
55
56 }