Signed-off-by: Gaurav Bhagwani <gaurav.bhagwani@ericsson.com>
ActionBuilder actionBuilder = new ActionBuilder();
PushVlanActionCase pushVlanActionCase = (PushVlanActionCase) action;
PushVlanAction pushVlanAction = pushVlanActionCase.getPushVlanAction();
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);
actionBuilder.setType(PushVlan.class);
- return SalToOFPushAction(etherType, actionBuilder, actionsListBuilder);
+ return SalToOFPushAction(pushVlanAction.getEthernetType(), actionBuilder, actionsListBuilder);