* ONAP PAP
* ================================================================================
* Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
ToscaPolicyTypeIdentifier type = id2type.get(policyId);
if (type == null) {
- logger.error("group {}:{} refers to non-existent policy {}:{}", group.getName(), subgrp.getPdpType(),
- policyId.getName(), policyId.getVersion());
+ logger.error("group {}:{} refers to non-existent policy {}", group.getName(), subgrp.getPdpType(),
+ policyId);
continue;
}
* ONAP PAP
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
if (matcher.test(ident)) {
result = true;
iter.remove();
- logger.info("remove policy {} {} from subgroup {} {} count={}", ident.getName(), ident.getVersion(),
+ logger.info("remove policy {} from subgroup {} {} count={}", ident,
group.getName(), subgroup.getPdpType(), subgroup.getPolicies().size());
data.trackUndeploy(ident, pdps);
* ONAP PAP
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// add the policy to the subgroup
subgroup.getPolicies().add(desiredIdent);
- logger.info("add policy {} {} to subgroup {} {} count={}", desiredIdent.getName(),
- desiredIdent.getVersion(), group.getName(), subgroup.getPdpType(),
- subgroup.getPolicies().size());
+ logger.info("add policy {} to subgroup {} {} count={}", desiredIdent, group.getName(),
+ subgroup.getPdpType(), subgroup.getPolicies().size());
Set<String> pdps = subgroup.getPdpInstances().stream().map(Pdp::getInstanceId).collect(Collectors.toSet());
data.trackDeploy(desiredIdent, pdps);
}
// already has the desired policy & version
- logger.info("subgroup {} {} already contains policy {} {}", group.getName(), subgroup.getPdpType(), desnm,
- desvers);
+ logger.info("subgroup {} {} already contains policy {}", group.getName(), subgroup.getPdpType(),
+ desiredIdent);
return true;
}
* ONAP PAP
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
continue;
}
- logger.info("remove policy {} {} from subgroup {} {} count={}", ident.getName(), ident.getVersion(),
- group.getName(), subgroup.getPdpType(), subgroup.getPolicies().size());
+ logger.info("remove policy {} from subgroup {} {} count={}", ident, group.getName(),
+ subgroup.getPdpType(), subgroup.getPolicies().size());
updated = true;
data.trackUndeploy(ident, pdps);