--- /dev/null
+/*\r
+ * ============LICENSE_START========================================================================\r
+ * ONAP : tr-069-adapter\r
+ * =================================================================================================\r
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+ * =================================================================================================\r
+ * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
+ * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
+ * may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
+ * either express or implied. See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ===============LICENSE_END=======================================================================\r
+ */\r
+\r
+package org.commscope.tr069adapter.netconf.config;\r
+\r
+import org.springframework.boot.context.properties.ConfigurationProperties;\r
+import org.springframework.context.annotation.Configuration;\r
+\r
+@Configuration\r
+@ConfigurationProperties(prefix = "config")\r
+public class NetConfServerProperties {\r
+\r
+ private Integer defaultNetconfStartPort = 17830;\r
+ private Integer defaultMaxServers = 200;\r
+\r
+ private String requestTimeOut;\r
+ private String mapperPath;\r
+ private String netconfServerRestPort;\r
+ private String netconfServersStartPort;\r
+ private String netconfServersEndPort;\r
+ private String maxNumOfNetconfServers;\r
+ private String netconfServerIP;\r
+ private String schemaDirPath;\r
+\r
+ public String getRequestTimeOut() {\r
+ return requestTimeOut;\r
+ }\r
+\r
+ public void setRequestTimeOut(String requestTimeOut) {\r
+ this.requestTimeOut = requestTimeOut;\r
+ }\r
+\r
+ public String getMapperPath() {\r
+ return mapperPath;\r
+ }\r
+\r
+ public void setMapperPath(String mapperPath) {\r
+ this.mapperPath = mapperPath;\r
+ }\r
+\r
+ public String getNetconfServerRestPort() {\r
+ return netconfServerRestPort;\r
+ }\r
+\r
+ public void setNetconfServerRestPort(String netconfServerRestPort) {\r
+ this.netconfServerRestPort = netconfServerRestPort;\r
+ }\r
+\r
+ public String getMaxNumOfNetconfServers() {\r
+ return maxNumOfNetconfServers;\r
+ }\r
+\r
+ public void setMaxNumOfNetconfServers(String maxNumOfNetconfServers) {\r
+ this.maxNumOfNetconfServers = maxNumOfNetconfServers;\r
+ }\r
+\r
+ public String getNetconfServersStartPort() {\r
+ return netconfServersStartPort;\r
+ }\r
+\r
+ public void setNetconfServersStartPort(String netconfServersStartPort) {\r
+ this.netconfServersStartPort = netconfServersStartPort;\r
+ }\r
+\r
+ public String getNetconfServersEndPort() {\r
+ return netconfServersEndPort;\r
+ }\r
+\r
+ public void setNetconfServersEndPort(String netconfServersEndPort) {\r
+ this.netconfServersEndPort = netconfServersEndPort;\r
+ }\r
+\r
+ public Integer getDefaultNetconfStartPort() {\r
+ return defaultNetconfStartPort;\r
+ }\r
+\r
+ public void setDefaultNetconfStartPort(Integer defaultPort) {\r
+ defaultNetconfStartPort = defaultPort;\r
+ }\r
+\r
+ public Integer getDefaultMaxServers() {\r
+ return defaultMaxServers;\r
+ }\r
+\r
+ public void setDefaultMaxServers(Integer maxServers) {\r
+ defaultMaxServers = maxServers;\r
+ }\r
+\r
+ public String getNetconfServerIP() {\r
+ return netconfServerIP;\r
+ }\r
+\r
+ public void setNetconfServerIP(String netconfServerIP) {\r
+ this.netconfServerIP = netconfServerIP;\r
+ }\r
+\r
+ public String getSchemaDirPath() {\r
+ return schemaDirPath;\r
+ }\r
+\r
+ public void setSchemaDirPath(String schemaDirPath) {\r
+ this.schemaDirPath = schemaDirPath;\r
+ }\r
+\r
+}\r