From 92fc7744a4df901d1688b9fa8da899372ea76fd8 Mon Sep 17 00:00:00 2001 From: "vamshi.nemalikonda" Date: Wed, 10 Apr 2019 16:37:08 +0530 Subject: Parse new model ids from operation policy Takes VFModule info from policy yaml,instead AAI. Change-Id: If745b3ba32562cbc37571cea29ec7797ee697e88 Issue-ID: POLICY-1545 Signed-off-by: vamshi.nemalikonda --- .../guard/src/main/java/org/onap/policy/guard/PolicyGuard.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'controlloop/common/guard') diff --git a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuard.java b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuard.java index 7ae0e7eb2..90e6e8753 100644 --- a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuard.java +++ b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuard.java @@ -3,6 +3,7 @@ * guard * ================================================================================ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2019 Tech Mahindra * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,6 +109,12 @@ public class PolicyGuard { // Create the Lock object // return new VnfTargetLock(targetType, targetInstance, requestId, callback); + + case VFMODULE: + // + // Create the Lock object + // + return new VnfTargetLock(targetType, targetInstance, requestId, callback); default: logger.error("invalid target type {} for lock on {}", targetType, targetInstance); return null; -- cgit 1.2.3-korg