2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flowflag;
11 import java.math.BigInteger;
13 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.FlowConvertor;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.FlowModFlagsV10;
19 public class FlowFlagsConvertorV10Impl implements FlowFlagConvertor<FlowModFlagsV10> {
22 public FlowModFlagsV10 convert(
23 org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowModFlags source, BigInteger datapathid) {
25 FlowModFlagsV10 ofFlowModFlags = null;
27 ofFlowModFlags = new FlowModFlagsV10(
28 source.isCHECKOVERLAP(), FlowConvertor.DEFAULT_OFPFF_EMERGENCY, source.isSENDFLOWREM());
30 ofFlowModFlags = new FlowModFlagsV10(
31 FlowConvertor.DEFAULT_OFPFF_CHECK_OVERLAP,
32 FlowConvertor.DEFAULT_OFPFF_EMERGENCY,
33 FlowConvertor.DEFAULT_OFPFF_FLOW_REM);
36 return ofFlowModFlags;