Skip to content

Commit fb6eba6

Browse files
committed
allow privateips on consoleproxy.url.domain
1 parent c83dee5 commit fb6eba6

File tree

2 files changed

+171
-111
lines changed

2 files changed

+171
-111
lines changed

server/src/main/java/com/cloud/configuration/Config.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public enum Config {
228228
String.class,
229229
"network.loadbalancer.haproxy.stats.visibility",
230230
"global",
231-
"Load Balancer(haproxy) stats visibilty, the value can be one of the following six parameters : global,guest-network,link-local,disabled,all,default",
231+
"Load Balancer(haproxy) stats visibility, the value can be one of the following six parameters : global,guest-network,link-local,disabled,all,default",
232232
null),
233233
NetworkLBHaproxyStatsUri(
234234
"Network",
@@ -244,7 +244,7 @@ public enum Config {
244244
String.class,
245245
"network.loadbalancer.haproxy.stats.auth",
246246
"admin1:AdMiN123",
247-
"Load Balancer(haproxy) authetication string in the format username:password",
247+
"Load Balancer(haproxy) authentication string in the format username:password",
248248
null),
249249
NetworkLBHaproxyStatsPort(
250250
"Network",
@@ -426,7 +426,7 @@ public enum Config {
426426
"Console proxy command port that is used to communicate with management server",
427427
null),
428428
ConsoleProxyRestart("Console Proxy", AgentManager.class, Boolean.class, "consoleproxy.restart", "true", "Console proxy restart flag, defaulted to true", null),
429-
ConsoleProxyUrlDomain("Console Proxy", AgentManager.class, String.class, "consoleproxy.url.domain", "", "Console proxy url domain", "domainName"),
429+
ConsoleProxyUrlDomain("Console Proxy", AgentManager.class, String.class, "consoleproxy.url.domain", "", "Console proxy url domain", "domainName","privateip"),
430430
ConsoleProxySessionMax(
431431
"Console Proxy",
432432
AgentManager.class,
@@ -648,7 +648,7 @@ public enum Config {
648648
"hypervisor.list",
649649
HypervisorType.Hyperv + "," + HypervisorType.KVM + "," + HypervisorType.XenServer + "," + HypervisorType.VMware + "," + HypervisorType.BareMetal + "," +
650650
HypervisorType.Ovm + "," + HypervisorType.LXC + "," + HypervisorType.Ovm3,
651-
"The list of hypervisors that this deployment will use.",
651+
"The list of hypervisors that this deployment will use.",
652652
"hypervisorList"),
653653
ManagementNetwork("Advanced", ManagementServer.class, String.class, "management.network.cidr", null, "The cidr of management server network", null),
654654
EventPurgeDelay(
@@ -1722,7 +1722,7 @@ public enum Config {
17221722
"5",
17231723
"The maximum size limit for S3 single part upload API(in GB). If it is set to 0, then it means always use multi-part upload to upload object to S3. "
17241724
+ "If it is set to -1, then it means always use single-part upload to upload object to S3. ",
1725-
null),
1725+
null),
17261726

17271727
// VMSnapshots
17281728
VMSnapshotMax("Advanced", VMSnapshotManager.class, Integer.class, "vmsnapshot.max", "10", "Maximum vm snapshots for a vm", null),
@@ -1745,7 +1745,7 @@ public enum Config {
17451745
"false",
17461746
"If set to true, DhcpEntryCommand, SavePasswordCommand, VmDataCommand will be synchronized on the agent side."
17471747
+ " If set to false, these commands become asynchronous. Default value is false.",
1748-
null),
1748+
null),
17491749

17501750
UCSSyncBladeInterval(
17511751
"Advanced",
@@ -1792,7 +1792,7 @@ public enum Config {
17921792
private final String _name;
17931793
private final String _defaultValue;
17941794
private final String _description;
1795-
private final String _range;
1795+
private final String[] _range;
17961796
private final String _scope; // Parameter can be at different levels (Zone/cluster/pool/account), by default every parameter is at global
17971797

17981798
private static final HashMap<String, List<Config>> s_scopeLevelConfigsMap = new HashMap<String, List<Config>>();
@@ -1842,7 +1842,7 @@ public enum Config {
18421842
}
18431843
}
18441844

1845-
private Config(String category, Class<?> componentClass, Class<?> type, String name, String defaultValue, String description, String range) {
1845+
private Config(String category, Class<?> componentClass, Class<?> type, String name, String defaultValue, String description, String... range) {
18461846
_category = category;
18471847
_componentClass = componentClass;
18481848
_type = type;
@@ -1905,7 +1905,7 @@ public String getComponent() {
19051905
}
19061906
}
19071907

1908-
public String getRange() {
1908+
public String[] getRange() {
19091909
return _range;
19101910
}
19111911

0 commit comments

Comments
 (0)