Bug 8255 - VPN creation with multiple RD via Rest 18/55718/5
authoreswanit <swati.udhavrao.niture@ericsson.com>
Thu, 20 Apr 2017 10:38:15 +0000 (16:08 +0530)
committerVivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Tue, 25 Apr 2017 09:25:03 +0000 (09:25 +0000)
is not working

fixed this by removing throwing of an error when
multiple RDs are passed to create VPN.

Change-Id: I28e546ca781d87566a2eb8b70148d980fa7dad3b
Signed-off-by: eswanit <swati.udhavrao.niture@ericsson.com>
vpnservice/neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnManager.java

index 3c2666c0119980d6da5df52553a9e037e9eb8720..e1c780626674be36a14a85d2dada4a2c37f7eb6f 100644 (file)
@@ -874,15 +874,6 @@ public class NeutronvpnManager implements NeutronvpnService, AutoCloseable, Even
                 l3vni = vpn.getL3vni();
             }
 
-            if (vpn.getRouteDistinguisher().size() > 1) {
-                msg = String.format("Creation of VPN failed for VPN %s due to multiple RD input %s",
-                        vpn.getId().getValue(), vpn.getRouteDistinguisher());
-                LOG.warn(msg);
-                error = RpcResultBuilder.newWarning(ErrorType.PROTOCOL, "invalid-input", msg);
-                errorList.add(error);
-                warningcount++;
-                continue;
-            }
             List<String> existingRDs = NeutronvpnUtils.getExistingRDs(dataBroker);
             if (existingRDs.contains(vpn.getRouteDistinguisher().get(0))) {
                 msg = String.format("Creation of L3VPN failed for VPN %s as another VPN with the same RD %s "