Bug 5938 - Updated the logging. 23/41223/1
authorananthip <ananthip@hcl.com>
Wed, 29 Jun 2016 14:10:39 +0000 (10:10 -0400)
committerAnil Vishnoi <vishnoianil@gmail.com>
Fri, 1 Jul 2016 19:56:25 +0000 (19:56 +0000)
Change-Id: I933a9f75ce87a4769c22f194eb06d39e1f669477
Signed-off-by: ananthip <ananthip@hcl.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolRemovedCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosRemovedCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java

index 8fa05814b1414f405df945f8d10a6ea78d28f288..0739d500fabfcb91de0835cebd2eccdff2e08e0d 100644 (file)
@@ -69,6 +69,8 @@ public class ProtocolRemovedCommand implements TransactCommand {
                         try {
                             transaction.add(op.mutate(bridge).addMutation(bridge.getProtocolsColumn().getSchema(),
                                     Mutator.DELETE,bridge.getProtocolsColumn().getData()));
+                            LOG.info("Removed ProtocolEntry : {} for OVSDB Bridge : {} ",
+                                    protocolString, bridge.getName());
                         } catch (SchemaVersionMismatchException e) {
                             schemaMismatchLog("protocols", "Bridge", e);
                         }
index ec80b7307fd0b69e374bb3e34628872bef544bd9..2390de15956f02448618a5bf70238dfb62c53c54 100644 (file)
@@ -81,6 +81,8 @@ public class ProtocolUpdateCommand implements TransactCommand {
                                         Mutator.INSERT,bridge.getProtocolsColumn().getData())
                                 .where(bridge.getNameColumn().getSchema().opEqual(bridge.getNameColumn().getData()))
                                 .build());
+                            LOG.info("Updated ProtocolEntry : {} for OVSDB Bridge : {} ",
+                                    protocolString, bridge.getName());
                         } catch (SchemaVersionMismatchException e) {
                             schemaMismatchLog("protocols", "Bridge", e);
                         }
index d7f1bddb50f3a3c2fa565cfedf48b5b2c7bd5f14..3246ea49942bf144b9b544bf2f01271b1c839b4e 100644 (file)
@@ -85,6 +85,8 @@ public class QosRemovedCommand implements TransactCommand {
                                 transaction.add(op.delete(qos.getSchema())
                                         .where(qos.getUuidColumn().getSchema().opEqual(new UUID(qosUuid.getValue())))
                                         .build());
+                                LOG.info("Removed QoS Uuid : {} for node : {} ",
+                                        origQosEntry.getQosId(), ovsdbNodeIid);
                             } else {
                                 LOG.warn("Unable to delete QoS{} for node {} because it was not found in the "
                                         + "operational store, and thus we cannot retrieve its UUID",
index 294e4910d46fc95bd8c11f13c58981525a4101de..969bf4443480a04f4c1fae7a013c3bdb4530dcc2 100644 (file)
@@ -126,6 +126,8 @@ public class QosUpdateCommand implements TransactCommand {
                     UUID namedUuid = new UUID(SouthboundConstants.QOS_NAMED_UUID_PREFIX
                             + TransactUtils.bytesToHexString(qosEntry.getQosId().getValue().getBytes()));
                     transaction.add(op.insert(qos).withId(namedUuid.toString())).build();
+                    LOG.info("Added QoS Uuid: {} for node : {} ",
+                            namedUuid, ovsdbNode);
                 } else {
                     UUID uuid = new UUID(operQosUuid.getValue());
                     Qos extraQos = TyperUtils.getTypedRowWrapper(
@@ -133,6 +135,8 @@ public class QosUpdateCommand implements TransactCommand {
                     extraQos.getUuidColumn().setData(uuid);
                     transaction.add(op.update(qos)
                             .where(extraQos.getUuidColumn().getSchema().opEqual(uuid)).build());
+                    LOG.info("Updated  QoS Uuid : {} for node : {} ",
+                            operQosUuid, ovsdbNode);
                 }
                 transaction.build();
             }