EthernetType in PushVlaAction was not proper
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / ActionConvertor.java
index 6ef5fee6cc9a4ae246a0fc4d28e31c766672be40..76d1ac6e74f7ae7dba011c14822446c912e899a7 100644 (file)
@@ -239,11 +239,9 @@ public final class ActionConvertor {
         ActionBuilder actionBuilder = new ActionBuilder();
         PushVlanActionCase pushVlanActionCase = (PushVlanActionCase) action;
         PushVlanAction pushVlanAction = pushVlanActionCase.getPushVlanAction();
-        VlanId vlanId = new VlanId(pushVlanAction.getVlanId());
-        Integer etherType = vlanId.getValue();
         actionBuilder.setType(PushVlan.class);
 
-        return SalToOFPushAction(etherType, actionBuilder, actionsListBuilder);
+        return SalToOFPushAction(pushVlanAction.getEthernetType(), actionBuilder, actionsListBuilder);
 
     }