-/**
+/*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
@Override
public void onSuccess(@Nonnull RpcResult<AddGroupOutput> result) {
if (result.isSuccessful()) {
- if (LOG.isDebugEnabled()) {
- LOG.debug("Group add with id={} finished without error", input.getGroupId().getValue());
- }
- deviceContext.getDeviceGroupRegistry().store(input.getGroupId());
+ LOG.debug("adding group successful {}", input.getGroupId().getValue());
} else {
if (LOG.isDebugEnabled()) {
LOG.debug("Group add with id={} failed, errors={}", input.getGroupId().getValue(),
if (LOG.isDebugEnabled()) {
LOG.debug("Group remove with id={} finished without error", input.getGroupId().getValue());
}
- removeGroup.getDeviceRegistry().getDeviceGroupRegistry().addMark(input.getGroupId());
} else {
LOG.warn("Group remove with id={} failed, errors={}", input.getGroupId().getValue(),
ErrorUtil.errorsToString(result.getErrors()));