Added copyright and updated appropriate log levels 57/20257/1
authorHemaTG <hema.gopalkrishnan@ericsson.com>
Wed, 13 May 2015 13:03:30 +0000 (18:33 +0530)
committerHemaTG <hema.gopalkrishnan@ericsson.com>
Wed, 13 May 2015 13:07:56 +0000 (18:37 +0530)
Signed-off-by: HemaTG <hema.gopalkrishnan@ericsson.com>
Change-Id: I8a84498328cad5b66ca61b2446925c57dbde2ede

22 files changed:
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/AbstractSwitchEntity.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/ActionInfo.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/ActionType.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/BucketInfo.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/FlowEntity.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/GroupEntity.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/InstructionInfo.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/InstructionType.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/MDSALDataStoreUtils.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/MDSALUtil.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/MatchFieldType.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/MatchInfo.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/MetaDataConstants.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/MetaDataUtil.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/NwConstants.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/interfaces/IMdsalApiManager.java
mdsalutil/mdsalutil-impl/src/main/java/org/opendaylight/vpnservice/mdsalutil/internal/MDSALManager.java
mdsalutil/mdsalutil-impl/src/main/java/org/opendaylight/vpnservice/mdsalutil/internal/MDSALUtilProvider.java
mdsalutil/mdsalutil-impl/src/test/java/org/opendaylight/vpnservice/test/AbstractMockForwardingRulesManager.java
mdsalutil/mdsalutil-impl/src/test/java/org/opendaylight/vpnservice/test/MdSalUtilTest.java
mdsalutil/mdsalutil-impl/src/test/java/org/opendaylight/vpnservice/test/MockFlowForwarder.java
mdsalutil/mdsalutil-impl/src/test/java/org/opendaylight/vpnservice/test/MockGroupForwarder.java

index 8ec8a99af8de5a99958827f0ed3691e39110daf8..b833180761d3e6f64ea7b698ea78fce57df66da6 100644 (file)
@@ -1,31 +1,29 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
 public class AbstractSwitchEntity {
     private static final long serialVersionUID = 1L;
 
     private long m_lDpnId;
-    
+
 
     public AbstractSwitchEntity(long lDpnId) {
         m_lDpnId = lDpnId;
-      
+
     }
-    
+
     @Override
     public String toString() {
         return "AbstractSwitchEntity [m_lDpnId=" + m_lDpnId + " ]";
     }
 
-    
+
     public long getDpnId() {
         return m_lDpnId;
     }
index 6bcb8708119633defcf9c2e55a5d5f09add8935a..084c5653db84b329f9333ab62c1519529f50c465 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
@@ -12,9 +15,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 
 public class ActionInfo implements Serializable{
 
-    /**
-     *
-     */
     private static final long serialVersionUID = 1L;
     private final ActionType m_actionType;
     private String[] m_asActionValues = null;
index 8dba62c17efe1804a90ab7a3c03383d25f6d40cb..b5f1fc80845cfe825f4823cb9379043162a7d2cf 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index 2b532e499f72cb4c608140eadf0afcecf2558023..3499d286d7acb30e0efe039e298ae12b3c36fcd8 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index 8757f1e40a3f183167215225316d6ba16462fb94..9f15fa3b5d6302169d5c85ec6730b92053375316 100644 (file)
@@ -1,12 +1,10 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
 import java.math.BigInteger;
index 402abd831908ff08350017ae391b9903dace3968..345569cb4918644147a3d61966b57fe5a4eb558c 100644 (file)
@@ -1,12 +1,10 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
 import java.util.List;
index b46b366de7a296575a45de7e78d3e5478312b852..411f68f8a99d61fcf4d98945a47c4859f1fc26a5 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index 5ee42539a4425e771823edcfa750fce5bb11f998..7fe45306e399c59ffe2556ef516087fd543ee243 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index bf90fd8c0087a9d8b639e0b570671ac0e77683ba..acfc32aa2fff5a9e816a003bffa6931bb8f70ea4 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
 import com.google.common.base.Optional;
index fea7e624f69b7a55f19556fc85371f114b0a9737..7b99a66ad71c44638b73cf7f12696555a84d6ea2 100644 (file)
@@ -1,10 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
index 178ba18cf232b856f2aac5c4b08707fda97e17fc..2b4dac70543233e279180b05cb75ab22e9f23872 100644 (file)
@@ -1,7 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
- *
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index da82c402682c537b109bc03eca83dc44f5ee6c20..5cffa3a68b48d94bf9ef17093ad5bc3362f85ca7 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index 5cd8dba54b7c6bbec6fecb7736c3ae670689bf7b..6bbf6d4f8b329abba4a8183798690cdc23099f33 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index a57f0ff90bc9521fd2b5f5798c57aa3211c2d867..01d5adea23d1c9c593db7bef9553ed2a4391acfe 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
 import java.math.BigInteger;
index f800dbf06d2cf0a15085b5169b49752eb6df3088..c26c01fac0b493e43f773a113e27e82fe5e38fc8 100644 (file)
@@ -1,6 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil;
 
index 4b70e82d9a7b8850e366e615c45f442a47ed62af..3c889b96d23610de0c400467dbc7717da94575ec 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil.interfaces;
 
 import java.util.List;
index b021e84419c4f65a253fc67d4993e871401129a2..e31ad2d002d79af309a7eae048a3e51228c80a00 100644 (file)
@@ -1,10 +1,9 @@
 /*
- * Copyright (c) 2013 Ericsson AB.  All rights reserved.
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil.internal;
@@ -71,7 +70,7 @@ public class MDSALManager implements AutoCloseable {
     public MDSALManager(final DataBroker db, PacketProcessingService pktProcService) {
         m_dataBroker = db;
         m_packetProcessingService = pktProcService;
-
+        s_logger.info( "MDSAL Manager Initialized ") ;
     }
 
     @Override
@@ -82,7 +81,7 @@ public class MDSALManager implements AutoCloseable {
     public void installFlow(FlowEntity flowEntity) {
 
         try {
-            s_logger.info("InstallFlow for flowEntity {} ", flowEntity);
+            s_logger.trace("InstallFlow for flowEntity {} ", flowEntity);
 
             if (flowEntity.getCookie() == null) {
                flowEntity.setCookie(new BigInteger("0110000", 16));
@@ -108,7 +107,7 @@ public class MDSALManager implements AutoCloseable {
                 @Override
                 public void onSuccess(final Void result) {
                     // Commited successfully
-                    s_logger.info( "Install Flow -- Committedsuccessfully ") ;
+                    s_logger.debug( "Install Flow -- Committedsuccessfully ") ;
                 }
 
                 @Override
@@ -149,7 +148,7 @@ public class MDSALManager implements AutoCloseable {
                 @Override
                 public void onSuccess(final Void result) {
                     // Commited successfully
-                    s_logger.info( "Install Group -- Committedsuccessfully ") ;
+                    s_logger.debug( "Install Group -- Committedsuccessfully ") ;
                 }
 
                 @Override
@@ -189,7 +188,7 @@ public class MDSALManager implements AutoCloseable {
                     @Override
                     public void onSuccess(final Void result) {
                         // Commited successfully
-                        s_logger.info( "Delete Flow -- Committedsuccessfully ") ;
+                        s_logger.debug( "Delete Flow -- Committedsuccessfully ") ;
                     }
 
                     @Override
@@ -227,7 +226,7 @@ public class MDSALManager implements AutoCloseable {
                 @Override
                 public void onSuccess(final Void result) {
                     // Commited successfully
-                    s_logger.info( "Install Group -- Committedsuccessfully ") ;
+                    s_logger.debug( "Install Group -- Committedsuccessfully ") ;
                 }
 
                 @Override
index af1baa494f7ce541f0b4d6213c5e6d4e1b51215f..10d9b002752376ad1c62c9cadd3decc808725e5b 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.mdsalutil.internal;
 
 import java.util.List;
@@ -27,8 +34,7 @@ public class MDSALUtilProvider implements BindingAwareConsumer, IMdsalApiManager
             final DataBroker dataBroker;
             final PacketProcessingService packetProcessingService;
             dataBroker = session.getSALService(DataBroker.class);
-             // TODO - Verify this.
-             packetProcessingService = session.getRpcService(PacketProcessingService.class);
+            packetProcessingService = session.getRpcService(PacketProcessingService.class);
              mdSalMgr = new MDSALManager( dataBroker, packetProcessingService) ;
         }catch( Exception e) {
             s_logger.error( "Error initializing MD SAL Util Services " + e );
index 1bffa91add3d20a9bf32621afc15b2b694f460b5..c95c199b7eac7fc6a802928deada542cf7b1dbe4 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.test;
 
 import java.util.Collection;
index 8c804b8d242f650dedf645056022aa00710d0cd6..d05bb0018b6f291e73fe444e2e2d9491c1071d06 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.test;
 
 import java.math.BigInteger;
index 56ba800544bc36723e482b3c144d34e60ead4dc0..0a8579f921d2f5901d55f2d4edfd544dc2d6cce5 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.test;
 
 import java.util.Collection;
index b47deee8c7bbb9621d94b89f40a73da657bc1ead..331d4d23dc70313a40e021c19437056c5f254ccb 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.test;
 
 import java.util.Collection;