Use a logger instead of printStackTrace 08/30708/1
authorStephen Kitt <skitt@redhat.com>
Fri, 4 Dec 2015 11:36:00 +0000 (12:36 +0100)
committerStephen Kitt <skitt@redhat.com>
Fri, 4 Dec 2015 11:36:00 +0000 (12:36 +0100)
Drop commented code.

local_ip -> localIp to follow conventions.

Change-Id: I6b6f674d70af3eb894819d15fb80b762678e3742
Signed-off-by: Stephen Kitt <skitt@redhat.com>
openstack/net-virt-sfc/impl/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/sfc/workaround/NetvirtSfcWorkaroundOF13Provider.java

index cbd14b48eb97cf983b164ee46659935a0cf500e7..0fa03982b4f2bf7920f754ae69b28736cef0bb9d 100644 (file)
@@ -70,7 +70,6 @@ public class NetvirtSfcWorkaroundOF13Provider implements INetvirtSfcOF13Provider
 
         this.mdsalUtils = mdsalUtils;
         this.sfcUtils = sfcUtils;
-        //this.setDependencies(null);
     }
 
     public void setSfcClassifierService(ISfcClassifierService sfcClassifierService) {
@@ -274,17 +273,17 @@ public class NetvirtSfcWorkaroundOF13Provider implements INetvirtSfcOF13Provider
     }
 
     private boolean isSffOnBridge(Node bridgeNode, ServiceFunctionForwarder serviceFunctionForwarder) {
-        String local_ip = "";
+        String localIp = "";
         Ip ip = sfcUtils.getSffIp(serviceFunctionForwarder);
         Node ovsdbNode = southbound.readOvsdbNode(bridgeNode);
         if (ovsdbNode != null) {
             OvsdbNodeAugmentation ovsdbNodeAugmentation = ovsdbNode.getAugmentation(OvsdbNodeAugmentation.class);
             if (ovsdbNodeAugmentation != null && ovsdbNodeAugmentation.getOpenvswitchOtherConfigs() != null) {
-                local_ip = southbound.getOtherConfig(ovsdbNode, OvsdbTables.OPENVSWITCH, TUNNEL_ENDPOINT_KEY);
+                localIp = southbound.getOtherConfig(ovsdbNode, OvsdbTables.OPENVSWITCH, TUNNEL_ENDPOINT_KEY);
             }
 
         }
-        return local_ip.equals(String.valueOf(ip.getIp().getValue()));
+        return localIp.equals(String.valueOf(ip.getIp().getValue()));
     }
 
     private boolean isSfOnBridge(Node bridgeNode, ServiceFunction serviceFunction) {
@@ -393,7 +392,7 @@ public class NetvirtSfcWorkaroundOF13Provider implements INetvirtSfcOF13Provider
                 try {
                     Thread.sleep(1000);
                 } catch (InterruptedException e) {
-                    e.printStackTrace();
+                    LOG.error("Interrupted while waiting for ofPort {}", portName, e);
                 }
             }
         }