File tree Expand file tree Collapse file tree
plugins/network-elements/bigswitch/src/com/cloud/network/bigswitch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ public List<AclData> listACLbyNetwork(Network network){
380380 Integer port = rule .getSourcePortStart ();
381381 fwCidrList = _fwCidrsDao .listByFirewallRuleId (rule .getId ());
382382 if (fwCidrList != null ){
383- if (fwCidrList .size ()> 1 || rule .getSourcePortEnd ()!= port ){
383+ if (fwCidrList .size () > 1 || ! rule .getSourcePortEnd (). equals ( port )) {
384384 continue ;
385385 } else {
386386 cidr = fwCidrList .get (0 ).getCidr ();
@@ -414,7 +414,7 @@ public List<AclData> listACLbyNetwork(Network network){
414414 Integer port = item .getSourcePortStart (); // currently BCF supports single port policy
415415 aclCidrList = _aclItemCidrsDao .listByNetworkACLItemId (item .getId ());
416416 if (aclCidrList != null ){
417- if (aclCidrList .size ()> 1 || item .getSourcePortEnd ()!= port ){
417+ if (aclCidrList .size () > 1 || ! item .getSourcePortEnd (). equals ( port )) {
418418 continue ;
419419 } else {
420420 cidr = aclCidrList .get (0 ).getCidr ();
You can’t perform that action at this time.
0 commit comments