EthernetType in PushVlaAction was not proper 30/3630/2
authorGaurav Bhagwani <gaurav.bhagwani@ericsson.com>
Wed, 11 Dec 2013 07:05:40 +0000 (12:35 +0530)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 11 Dec 2013 08:10:31 +0000 (08:10 +0000)
Signed-off-by: Gaurav Bhagwani <gaurav.bhagwani@ericsson.com>
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);
 
     }