From: Gilles Thouenon Date: Fri, 22 Jan 2021 11:02:07 +0000 (+0100) Subject: Set mandatory UUID in TAPI connectivity module X-Git-Tag: 2.3.0~12 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=2ef38c850b43cb0f5829667839ad109534390fa0;p=transportpce.git Set mandatory UUID in TAPI connectivity module JIRA: TRNSPRTPCE-388 Signed-off-by: Gilles Thouenon Change-Id: I5b2e99a06461dee708324eb5677425b20ab704a8 (cherry picked from commit 8aa2a4274fed6e7aabe45832194733d91db0cf25) (cherry picked from commit 3f3033d56040fbd1f24540540a80ea80c0f184eb) --- diff --git a/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiImpl.java b/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiImpl.java index 773e82cb6..00e98ce48 100644 --- a/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiImpl.java +++ b/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiImpl.java @@ -110,7 +110,9 @@ public class TapiImpl implements TapiConnectivityService { endPointList.put(endpoint2.key(), endpoint2); Connection connection = new ConnectionBuilder().setConnectionUuid(new Uuid(UUID.randomUUID().toString())) .build(); - ConnectivityService service = new ConnectivityServiceBuilder().build(); + ConnectivityService service = new ConnectivityServiceBuilder() + .setUuid(new Uuid(UUID.randomUUID().toString())) + .build(); Name serviceName = new NameBuilder().setValueName("Service Name").setValue("SENDATE Service 1").build(); CreateConnectivityServiceOutput output = new CreateConnectivityServiceOutputBuilder() .setService(new ServiceBuilder(service)