- } else {
- LocalUcastMacs updatedMac = operationalMacOptional.get();
- String existingMac = updatedMac.getMacEntryKey().getValue();
- UcastMacsLocal extraMac = TyperUtils.getTypedRowWrapper(transaction.getDatabaseSchema(), UcastMacsLocal.class);
- extraMac.setMac("");;
+ transaction.add(op.comment("UcastMacLocal: Creating " + localUcastMac.getMacEntryKey().getValue()));
+ } else if (operationalMacOptional.get().getMacEntryUuid() != null) {
+ UUID macEntryUUID = new UUID(operationalMacOptional.get().getMacEntryUuid().getValue());
+ UcastMacsLocal extraMac = TyperUtils.getTypedRowWrapper(transaction.getDatabaseSchema(),
+ UcastMacsLocal.class, null);
+ extraMac.getUuidColumn().setData(macEntryUUID);
+ LOG.trace("execute: updating LocalUcastMac entry: {}", ucastMacsLocal);