File tree Expand file tree Collapse file tree
server/src/main/java/com/cloud/network/lb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747import org .apache .cloudstack .framework .config .dao .ConfigurationDao ;
4848import org .apache .cloudstack .lb .ApplicationLoadBalancerRuleVO ;
4949import org .apache .cloudstack .lb .dao .ApplicationLoadBalancerRuleDao ;
50+ import org .apache .commons .lang3 .StringUtils ;
5051import org .apache .log4j .Logger ;
5152
5253import com .cloud .agent .api .to .LoadBalancerTO ;
@@ -2105,6 +2106,7 @@ public LoadBalancer updateLoadBalancerRule(UpdateLoadBalancerRuleCmd cmd) {
21052106 LoadBalancerVO lbBackup = _lbDao .findById (lbRuleId );
21062107 String customId = cmd .getCustomId ();
21072108 Boolean forDisplay = cmd .getDisplay ();
2109+ String lbProtocol = cmd .getLbProtocol ();
21082110
21092111 if (lb == null ) {
21102112 throw new InvalidParameterValueException ("Unable to find lb rule by id=" + lbRuleId );
@@ -2133,6 +2135,10 @@ public LoadBalancer updateLoadBalancerRule(UpdateLoadBalancerRuleCmd cmd) {
21332135 lb .setDisplay (forDisplay );
21342136 }
21352137
2138+ if (StringUtils .isNotBlank (lbProtocol )) {
2139+ lb .setLbProtocol (lbProtocol );
2140+ }
2141+
21362142 // Validate rule in LB provider
21372143 LoadBalancingRule rule = getLoadBalancerRuleToApply (lb );
21382144 if (!validateLbRule (rule )) {
You can’t perform that action at this time.
0 commit comments