From c908c74e68ff5a50ca9d43de5a5a640464c5cb3f Mon Sep 17 00:00:00 2001 From: "michal.polkorab" Date: Thu, 26 Sep 2013 09:25:01 +0200 Subject: [PATCH] Added Yang code generation for Multipart messages Updated comments Removed gitignore Signed-off-by: michal.polkorab Change-Id: Ic31c58db37a9dfe072b53eeb64209c5a2d9c9a41 --- .../api/connection/ConnectionAdapter.java | 8 +- .../connection/ConnectionConfiguration.java | 8 +- .../connection/SwitchConnectionHandler.java | 9 +- .../src/main/yang/openflow-protocol.yang | 406 ++++++++++++++++-- .../src/main/yang/openflow-types.yang | 55 +++ .../connection/ConnectionAdapterFactory.java | 8 +- .../connection/ConnectionAdapterImpl.java | 8 +- .../impl/connection/ConnectionFacade.java | 1 + .../impl/connection/MessageConsumer.java | 8 +- .../impl/connection/OnlineProvider.java | 8 +- .../impl/connection/RpcResponseKey.java | 8 +- .../impl/connection/ServerFacade.java | 8 +- .../impl/connection/ShutdownProvider.java | 8 +- .../SwitchConnectionProviderImpl.java | 10 +- .../integration/TestingConnConfigImpl.java | 2 +- .../protocol/impl/util/BufferHelper.java | 2 +- .../connection/SwitchConnectionProvider.java | 9 +- 17 files changed, 434 insertions(+), 132 deletions(-) diff --git a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java index a955d135..4fad1907 100644 --- a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java +++ b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.api.connection; diff --git a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionConfiguration.java b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionConfiguration.java index 16ffde3c..139d84ec 100644 --- a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionConfiguration.java +++ b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionConfiguration.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.api.connection; diff --git a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/SwitchConnectionHandler.java b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/SwitchConnectionHandler.java index 04957109..532bfa9f 100644 --- a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/SwitchConnectionHandler.java +++ b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/SwitchConnectionHandler.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.api.connection; @@ -12,6 +6,7 @@ import java.net.InetAddress; /** * @author mirehak + * @author michal.polkorab * */ public interface SwitchConnectionHandler { diff --git a/openflow-protocol-api/src/main/yang/openflow-protocol.yang b/openflow-protocol-api/src/main/yang/openflow-protocol.yang index 114d5119..cbcd4e3b 100644 --- a/openflow-protocol-api/src/main/yang/openflow-protocol.yang +++ b/openflow-protocol-api/src/main/yang/openflow-protocol.yang @@ -458,43 +458,107 @@ module openflow-protocol { leaf flags { type oft:multipart-request-flags; } - choice body { - case multipart-flow { - leaf length { - type uint16; - } + choice multipart-request-body { + case multipart-request-flow { leaf table-id { type uint8; } - leaf duration-sec { + leaf out-port { type uint32; } - leaf duration-nsec { + leaf out-group { type uint32; } - leaf priority { - type uint16; + leaf cookie { + type uint64; } - leaf idle-timeout { - type uint16; + leaf cookie-mask { + type uint64; } - leaf hard-timeout { - type uint16; + leaf match { + type identityref { + base oft:match-type-base; + } } - leaf flags { - type uint16; + } + case multipart-request-aggregate { + leaf table-id { + type uint8; } - leaf cookie { - type uint64; + leaf out-port { + type uint32; } - leaf packet-count { + leaf out-group { + type uint32; + } + leaf cookie { type uint64; } - leaf byte-count { + leaf cookie-mask { type uint64; } leaf match { - type uint64; + type identityref { + base oft:match-type-base; + } + } + } + case multipart-request-port-stats { + leaf port-no { + type uint32; + } + } + case multipart-request-queue { + leaf port-no { + type uint32; + } + leaf queue-id { + type uint32; + } + } + case multipart-request-group { + leaf group-id { + type uint32; + } + } + case multipart-request-meter { + leaf meter-id { + type uint32; + } + } + case multipart-request-meter-config { + leaf meter-id { + type uint32; + } + } + case multipart-request-table-features { + list table_features { + leaf table-id { + type uint8; + } + leaf name { + type string; + } + leaf metadata-match { + type uint64; + } + leaf metadata-write { + type uint64; + } + leaf config { + type oft:table-config; + } + leaf max-entries { + type uint32; + } + } + } + case multipart-request-experimenter { + leaf experimenter { + type uint32; + } + leaf exp-type { + type uint32; } } } @@ -511,8 +575,8 @@ module openflow-protocol { leaf flags { type oft:multipart-request-flags; } - choice body { - case multipart-desc { + choice multipart-reply-body { + case multipart-reply-desc { leaf mfr_desc { type string; } @@ -529,42 +593,294 @@ module openflow-protocol { type string; } } - case multipart-flow { - leaf length { - type uint16; + case multipart-reply-flow { + list flow-stats { + leaf table-id { + type uint8; + } + leaf duration-sec { + type uint32; + } + leaf duration-nsec { + type uint32; + } + leaf priority { + type uint16; + } + leaf idle-timeout { + type uint16; + } + leaf hard-timeout { + type uint16; + } + leaf flags { + type uint16; + } + leaf cookie { + type uint64; + } + leaf packet-count { + type uint64; + } + leaf byte-count { + type uint64; + } + leaf match { + type uint64; + } } - leaf table-id { - type uint8; + } + case multipart-reply-aggregate { + leaf packet-count { + type uint64; + } + leaf byte-count { + type uint64; + } + leaf flow-count { + type uint32; + } + } + case multipart-reply-table { + list table-stats { + leaf table-id { + type uint8; + } + leaf active-count { + type uint32; + } + leaf lookup-count { + type uint64; + } + leaf matched-count { + type uint64; + } + } + } + case multipart-reply-port-stats { + list port-stats { + leaf port-no { + type uint32; + } + leaf rx-packets { + type uint64; + } + leaf tx-packets { + type uint64; + } + leaf rx-bytes { + type uint64; + } + leaf tx-bytes { + type uint64; + } + leaf rx-dropped { + type uint64; + } + leaf tx-dropped { + type uint64; + } + leaf rx-errors { + type uint64; + } + leaf tx-errors { + type uint64; + } + leaf rx-frame-err { + type uint64; + } + leaf rx-over-err { + type uint64; + } + leaf rx-crc-err { + type uint64; + } + leaf collisions { + type uint64; + } + leaf duration-sec { + type uint32; + } + leaf duration-nsec { + type uint32; + } + } + } + case multipart-reply-queue { + list queue-stats { + leaf port-no { + type uint32; + } + leaf queue-id { + type uint32; + } + leaf tx-bytes { + type uint64; + } + leaf tx-packets { + type uint64; + } + leaf tx-errors { + type uint64; + } + leaf duration-sec { + type uint32; + } + leaf duration-nsec { + type uint32; + } + } + } + case multipart-reply-group { + list group-stats { + leaf group-id { + type uint32; + } + leaf ref-count { + type uint32; + } + leaf packet-count { + type uint64; + } + leaf byte-count { + type uint64; + } + leaf duration-sec { + type uint32; + } + leaf duration-nsec { + type uint32; + } + list bucket-stats { + leaf packet-count { + type uint64; + } + leaf byte-count { + type uint64; + } + } + } + } + case multipart-reply-group-desc { + list group-desc { + leaf type { + type uint8; + } + leaf group-id { + type uint32; + } + list buckets { + uses bucket; + } + } + } + case multipart-reply-group-features { + leaf types { + type oft:group-types; + } + leaf capabilities { + type oft:group-capabilities; } - leaf duration-sec { + leaf-list max_groups { type uint32; } - leaf duration-nsec { + leaf-list actions { + type ofaction:action-type; + } + } + case multipart-reply-meter { + list meter-stats { + leaf meter-id { + type uint32; + } + leaf flow-count { + type uint32; + } + leaf packet-in-count { + type uint64; + } + leaf byte-in-count { + type uint64; + } + leaf duration-sec { + type uint32; + } + leaf duration-nsec { + type uint32; + } + list meter-band-stats { + leaf packet-band-count { + type uint64; + } + leaf byte-band-count { + type uint64; + } + } + } + } + case multipart-reply-meter-config { + list meter-config { + leaf flags { + type oft:meter-mod-command; + } + leaf meter-id { + type uint32; + } + list bands { + uses meter-band-header; + } + } + } + case multipart-reply-meter-features { + leaf max-meter { type uint32; } - leaf priority { - type uint16; + leaf band-types { + type oft:meter-band-type; } - leaf idle-timeout { - type uint16; + leaf capabilities { + type oft:meter-flags; } - leaf hard-timeout { - type uint16; + leaf max-bands { + type uint8; } - leaf flags { - type uint16; + leaf max-color { + type uint8; } - leaf cookie { - type uint64; + } + case multipart-reply-table-features { + list table-features { + leaf table-id { + type uint8; + } + leaf name { + type string; + } + leaf metadata-match { + type binary; + } + leaf metadata-write { + type binary; + } + leaf config { + type oft:port-config; + } + leaf max-entries { + type uint32; + } } - leaf packet-count { - type uint64; + } + case multipart-reply-port-desc { + list ports { + uses port; } - leaf byte-count { - type uint64; + } + case multipart-reply-experimenter { + leaf experimenter { + type uint32; } - leaf match { - type uint64; + leaf exp-type { + type uint32; } } } diff --git a/openflow-protocol-api/src/main/yang/openflow-types.yang b/openflow-protocol-api/src/main/yang/openflow-types.yang index f4c45ba6..c8fde31d 100644 --- a/openflow-protocol-api/src/main/yang/openflow-types.yang +++ b/openflow-protocol-api/src/main/yang/openflow-types.yang @@ -662,4 +662,59 @@ module openflow-types { } } + + typedef table-config { + /* ofp_table_config */ + type bits { + bit OFPTC_DEPRECATED_MASK { + /* Deprecated bits */ + position 3; + } + } + } + + typedef group-types { + /* ofp_group_type */ + type bits { + bit OFPGT_ALL { + /* All (multicast/broadcast) group. */ + position 0; + } + bit OFPGT_SELECT { + /* Select group. */ + position 1; + } + bit OFPGT_INDIRECT { + /* Indirect group. */ + position 2; + } + bit OFPGT_FF { + /* Fast failover group. */ + position 3; + } + } + } + + typedef group-capabilities { + /* ofp_group_capabilities */ + type bits { + bit OFPGFC_SELECT_WEIGHT { + /* Support weight for select groups */ + position 0; + } + bit OFPGFC_SELECT_LIVENESS { + /* Support liveness for select groups */ + position 1; + } + bit OFPGFC_CHAINING { + /* Support chaining groups */ + position 2; + } + bit OFPGFC_CHAINING_CHECKS { + /* Check chaining for loops and delete */ + position 3; + } + } + } + } diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterFactory.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterFactory.java index d0b25e5d..dcdb15a2 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterFactory.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterFactory.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterImpl.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterImpl.java index c6e9e230..3136c7fc 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterImpl.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionAdapterImpl.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionFacade.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionFacade.java index 6cdc1f11..29348362 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionFacade.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ConnectionFacade.java @@ -1,4 +1,5 @@ /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ + package org.opendaylight.openflowjava.protocol.impl.connection; import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/MessageConsumer.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/MessageConsumer.java index 88a3c747..3243a82f 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/MessageConsumer.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/MessageConsumer.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/OnlineProvider.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/OnlineProvider.java index dc68ca63..b732587c 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/OnlineProvider.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/OnlineProvider.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/RpcResponseKey.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/RpcResponseKey.java index 1ef1df00..d4cd3976 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/RpcResponseKey.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/RpcResponseKey.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ServerFacade.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ServerFacade.java index 108e53aa..dda56a52 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ServerFacade.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ServerFacade.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ShutdownProvider.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ShutdownProvider.java index 1be047ae..235f0d09 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ShutdownProvider.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ShutdownProvider.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/SwitchConnectionProviderImpl.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/SwitchConnectionProviderImpl.java index e0c36e62..813fa91e 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/SwitchConnectionProviderImpl.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/SwitchConnectionProviderImpl.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.impl.connection; @@ -42,7 +36,7 @@ public class SwitchConnectionProviderImpl implements SwitchConnectionProvider { public void configure(Collection connConfigs) { LOG.debug("Configurating .."); - //TODO - add and configure servers according to configuration + //TODO - configure servers according to configuration serverLot = new HashSet<>(); for (Iterator iterator = connConfigs.iterator(); iterator.hasNext();) { ConnectionConfiguration connConfig = iterator.next(); diff --git a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/integration/TestingConnConfigImpl.java b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/integration/TestingConnConfigImpl.java index 9992e5be..2db3b5b2 100644 --- a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/integration/TestingConnConfigImpl.java +++ b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/integration/TestingConnConfigImpl.java @@ -9,7 +9,7 @@ import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfigura * @author michal.polkorab * */ -public class TestingConnConfigImpl implements ConnectionConfiguration{ +public class TestingConnConfigImpl implements ConnectionConfiguration { private InetAddress address; private int port; diff --git a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/util/BufferHelper.java b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/util/BufferHelper.java index e06e8a61..a125764f 100644 --- a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/util/BufferHelper.java +++ b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/util/BufferHelper.java @@ -62,7 +62,7 @@ public abstract class BufferHelper { * Use version 1.3 for encoded message * @param input ByteBuf to be checked for correct OpenFlow Protocol header * @param msgType type of received message - * @param length TODO + * @param length expected length of message in header */ public static void checkHeaderV13(ByteBuf input, byte msgType, int length) { checkHeader(input, msgType, length, HelloMessageFactoryTest.VERSION_YET_SUPPORTED); diff --git a/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java b/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java index 6e04b94c..9cf1b736 100644 --- a/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java +++ b/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 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 - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.spi.connection; @@ -17,6 +11,7 @@ import org.opendaylight.openflowjava.protocol.api.connection.SwitchConnectionHan /** * @author mirehak + * @author michal.polkorab * */ public interface SwitchConnectionProvider { -- 2.36.6