commit | 9c3f30a0345de2d17422e620959b5f932748c7e3 | [log] [tgz] |
---|---|---|
author | kimjt <kimjt@telcoware.com> | Tue Sep 06 09:58:21 2016 +0900 |
committer | kimjt <kimjt@telcoware.com> | Tue Sep 06 09:58:21 2016 +0900 |
tree | 140853ed28385cbdf2fd5db485064c425f343dac | |
parent | 685e34d425713ed41f20d8e66a50facddd8ee090 [diff] |
fix to apply TCP/UDP port rule of Security Group Change-Id: I1e1db236c1a1da939c6e6205b72de3eba45964a7
diff --git a/apps/openstacknetworking/switching/src/main/java/org/onosproject/openstacknetworking/switching/OpenstackSecurityGroupManager.java b/apps/openstacknetworking/switching/src/main/java/org/onosproject/openstacknetworking/switching/OpenstackSecurityGroupManager.java index 9b15f00..ce546d6 100644 --- a/apps/openstacknetworking/switching/src/main/java/org/onosproject/openstacknetworking/switching/OpenstackSecurityGroupManager.java +++ b/apps/openstacknetworking/switching/src/main/java/org/onosproject/openstacknetworking/switching/OpenstackSecurityGroupManager.java
@@ -228,15 +228,15 @@ if (portMin > 0 && portMax > 0 && portMin == portMax) { if (protocol.toUpperCase().equals(PROTO_TCP)) { if (direction.equals(OpenstackSecurityGroupRule.Direction.EGRESS)) { - sBuilder.matchTcpDst(TpPort.tpPort(portMax)); - } else { sBuilder.matchTcpSrc(TpPort.tpPort(portMax)); + } else { + sBuilder.matchTcpDst(TpPort.tpPort(portMax)); } } else if (protocol.toUpperCase().equals(PROTO_UDP)) { if (direction.equals(OpenstackSecurityGroupRule.Direction.EGRESS)) { - sBuilder.matchUdpDst(TpPort.tpPort(portMax)); - } else { sBuilder.matchUdpSrc(TpPort.tpPort(portMax)); + } else { + sBuilder.matchUdpDst(TpPort.tpPort(portMax)); } } }