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.flow.flowflag;
11 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowConvertor;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.FlowModFlags;
17 public class FlowFlagsConvertorImpl implements FlowFlagConvertor<FlowModFlags> {
20 public FlowModFlags convert(
21 org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowModFlags source) {
23 FlowModFlags ofFlowModFlags;
25 ofFlowModFlags = new FlowModFlags(
26 source.isCHECKOVERLAP(), source.isNOBYTCOUNTS(), source.isNOPKTCOUNTS(),
27 source.isRESETCOUNTS(), source.isSENDFLOWREM());
29 ofFlowModFlags = new FlowModFlags(
30 FlowConvertor.DEFAULT_OFPFF_CHECK_OVERLAP,
31 FlowConvertor.DEFAULT_OFPFF_NO_BYT_COUNTS,
32 FlowConvertor.DEFAULT_OFPFF_NO_PKT_COUNTS,
33 FlowConvertor.DEFAULT_OFPFF_RESET_COUNTS,
34 FlowConvertor.DEFAULT_OFPFF_FLOW_REM);
37 return ofFlowModFlags;