transcriber: remove redundant code in l2gw 55/53455/1
authorIsaku Yamahata <isaku.yamahata@intel.com>
Fri, 17 Mar 2017 05:52:59 +0000 (22:52 -0700)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Fri, 17 Mar 2017 05:53:20 +0000 (22:53 -0700)
Change-Id: I44c48614c1b2fa2aa2268c0cecf275b7638e7e68
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronL2gatewayConnectionInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronL2gatewayInterface.java

index ac2ff6bbfad51a4541f35d49081eae24c6d00784..25bf51e561b076531d5eece362552ef3fd921d70 100644 (file)
@@ -41,9 +41,6 @@ public final class NeutronL2gatewayConnectionInterface
         if (l2gatewayConnection.getUuid() != null) {
             result.setID(l2gatewayConnection.getUuid().getValue());
         }
-        if (l2gatewayConnection.getKey().getUuid() != null) {
-            result.setID(l2gatewayConnection.getKey().getUuid().getValue());
-        }
         if (l2gatewayConnection.getL2gatewayId().getValue() != null) {
             result.setL2gatewayID(String.valueOf(l2gatewayConnection.getL2gatewayId().getValue()));
         }
index 66b6c9f0dc53d3b1a497dd24d7ebd71b9bef97b3..2407bd72d1fe5316d2fef051e9c51596608628da 100644 (file)
@@ -45,9 +45,6 @@ public final class NeutronL2gatewayInterface
         final NeutronL2gateway result = new NeutronL2gateway();
         final List<NeutronL2gatewayDevice> neutronL2gatewayDevices = new ArrayList<NeutronL2gatewayDevice>();
 
-        if (l2gateway.getUuid() != null) {
-            result.setID(l2gateway.getUuid().getValue());
-        }
         if (l2gateway.getUuid() != null) {
             result.setID(l2gateway.getUuid().getValue());
         }