TSC-115: Fix MinimumBandwidthRule direction
[neutron.git] / transcriber / src / main / java / org / opendaylight / neutron / transcriber / NeutronSecurityRuleInterface.java
index e45c2b048ffed7d84f18ca6f92ad9c73f2f9bc83..a6d16b9589c4f1044bd83a81fd0ee99c22c3c2be 100644 (file)
@@ -54,7 +54,7 @@ public final class NeutronSecurityRuleInterface extends
         final NeutronSecurityRule answer = new NeutronSecurityRule();
         fromMdIds(rule, answer);
         if (rule.getDirection() != null) {
-            answer.setSecurityRuleDirection(DirectionMapper.getName(rule.getDirection()));
+            answer.setSecurityRuleDirection(DirectionMapper.getDirectionString(rule.getDirection()));
         }
         if (rule.getSecurityGroupId() != null) {
             answer.setSecurityRuleGroupID(rule.getSecurityGroupId().getValue());