Skip to content

Commit 3995455

Browse files
Rakesh Venkateshweizhouapache
authored andcommitted
apache#4141 Ignore case for protocol name in LB rules
1 parent 090bc56 commit 3995455

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public List<String> getSourceCidrList() {
255255
}
256256

257257
public String getLbProtocol() {
258-
return lbProtocol;
258+
return lbProtocol != null ? lbProtocol.toLowerCase().trim() : null;
259259
}
260260

261261
/////////////////////////////////////////////////////

tools/marvin/marvin/lib/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,6 +2968,7 @@ def create(cls, apiclient, services, ipaddressid=None, accountid=None,
29682968
cmd.algorithm = services["alg"]
29692969
cmd.privateport = services["privateport"]
29702970
cmd.publicport = services["publicport"]
2971+
cmd.protocol = services["protocol"]
29712972

29722973
if "openfirewall" in services:
29732974
cmd.openfirewall = services["openfirewall"]

0 commit comments

Comments
 (0)