Skip to content
Snippets Groups Projects
Commit 1b4fa5ac authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updates alerts API to read servicefunctionchain instead of sfc from resource specification

parent 24ce95a0
No related branches found
No related tags found
No related merge requests found
Showing
with 13 additions and 12 deletions
......@@ -72,7 +72,8 @@ def get_resource_spec_policy_triggers(resource_spec_reference):
policy_trigger_ids = {}
# TODO next release - uncomment
# sfc, sfc_i = resource_spec["metadata"]["sfc"], resource_spec["metadata"]["sfci"]
sfc, sfc_i = resource_spec["metadata"]["sfc"], "{0}_1".format(resource_spec["metadata"]["sfc"])
sfc = resource_spec["metadata"]["servicefunctionchain"]
sfc_i = "{0}_1".format(sfc)
policies = resource_spec["topology_template"]["policies"]
for policy in policies:
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR-ERROR
servicefunctionchain: companyA-VR-ERROR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -4,7 +4,7 @@ metadata:
template_name: Flame Test Tosca resource specification
# sfc: companyA-VR
# sfci: companyA-VR-premium-ERROR
sfc: companyA-VR-ERROR
servicefunctionchain: companyA-VR-ERROR
# Import own definitions of nodes, capabilities and policy syntax.
imports:
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame Test Tosca resource specification
sfc: companyA-VR
servicefunctionchain: companyA-VR
# sfci: companyA-VR-premium
# Import own definitions of nodes, capabilities and policy syntax.
......
......@@ -2,7 +2,7 @@ tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
metadata:
template_name: Flame CLMC Alerts Integration Test
sfc: MS_Template_1
servicefunctionchain: MS_Template_1
sfci: MS_I1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment