diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-10-26 13:27:54 -0400 |
---|---|---|
committer | Leigh, Phillip (pl876u) <phillip.leigh@amdocs.com> | 2018-10-26 15:28:46 -0400 |
commit | f6a725a0b5b6864c09443e7f328927772a78ea05 (patch) | |
tree | 9a7aec7d4a93059e28ea1b15eee2576f1ad87c5a /config/rules/api-mapping-rules.drl | |
parent | b5f75d3996fbfd270e301abbe38766a9f6cf3a40 (diff) |
SDNC context builder API Mapping Configuration
Issue-ID: LOG-421
Add code to use the VNF-API on SDNC where required.
This involves using the api-mapping logic to select the VNF-API over the
GNERIC-RESOURCES-API as well as adding the code to extract the
information required by the VNF-API from AAI and adding the code to
parse the VNF-API resonse into ModelContext.
Change-Id: I4447a14d7fa39b2c5d9b655c2b20e651e56d3d77
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'config/rules/api-mapping-rules.drl')
-rw-r--r-- | config/rules/api-mapping-rules.drl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/rules/api-mapping-rules.drl b/config/rules/api-mapping-rules.drl index 6278d48..629d683 100644 --- a/config/rules/api-mapping-rules.drl +++ b/config/rules/api-mapping-rules.drl @@ -23,7 +23,7 @@ rule "ApiMapping-1" no-loop true lock-on-active true when - $s : ServiceEntity( serviceType not contains "vFW" ) + $s : ServiceEntity( (serviceType not contains "vFW") && (serviceType not contains "vDNS") ) then $s.setApiName("GENERIC-RESOURCE-API"); end @@ -33,7 +33,7 @@ rule "ApiMapping-2" no-loop true lock-on-active true when - $s : ServiceEntity( serviceType contains "vFW" ) + $s : ServiceEntity( (serviceType contains "vFW") || (serviceType contains "vDNS") ) then $s.setApiName("VNF-API"); end |