From: Gaurav Bhagwani Date: Wed, 11 Dec 2013 07:05:40 +0000 (+0530) Subject: EthernetType in PushVlaAction was not proper X-Git-Tag: jenkins-openflowplugin-bulk-release-prepare-only-4~98 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=51584a6ea4e86ad6b7e6c4cb61bba647c1d4a636;p=openflowplugin.git EthernetType in PushVlaAction was not proper Signed-off-by: Gaurav Bhagwani --- diff --git a/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/ActionConvertor.java b/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/ActionConvertor.java index 6ef5fee6cc..76d1ac6e74 100644 --- a/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/ActionConvertor.java +++ b/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/ActionConvertor.java @@ -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); }