X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcompatibility%2Fflow-management-compatibility%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Ffrm%2Fcompatibility%2FSampleConsumer.java;h=0b77ea7989cb24f8b11eae172f8dd1ed775e03ac;hp=a82eedc3f95156c0980e7f5ce580faf6a16387c8;hb=9303b14b9dba1a940f0d0a6fe1604bfcd0f9e294;hpb=cfa6e9d0a2193edb2a2e36c04ca95eaf28a651f9 diff --git a/opendaylight/md-sal/compatibility/flow-management-compatibility/src/main/java/org/opendaylight/controller/md/frm/compatibility/SampleConsumer.java b/opendaylight/md-sal/compatibility/flow-management-compatibility/src/main/java/org/opendaylight/controller/md/frm/compatibility/SampleConsumer.java index a82eedc3f9..0b77ea7989 100644 --- a/opendaylight/md-sal/compatibility/flow-management-compatibility/src/main/java/org/opendaylight/controller/md/frm/compatibility/SampleConsumer.java +++ b/opendaylight/md-sal/compatibility/flow-management-compatibility/src/main/java/org/opendaylight/controller/md/frm/compatibility/SampleConsumer.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.controller.md.frm.compatibility; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ConsumerContext; @@ -31,7 +38,7 @@ public class SampleConsumer { Flow createSampleFlow(String name, NodeRef node) { FlowBuilder ret = new FlowBuilder(); - FlowKey key = new FlowKey(name, node); + FlowKey key = new FlowKey(Long.parseLong(name), node); ret.setKey(key); return ret.build(); }