diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2024-08-13 13:15:59 +0200 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2024-08-13 13:15:59 +0200 |
commit | d14a8e077f6855a96397ad3e85d1c7ba2e0aafba (patch) | |
tree | 08e15048140658730029069c5bafbe37fe5db480 /src/onapsdk/aai | |
parent | 0ac825d2ecb965666a4bc1369812e80c7c3f822d (diff) |
Fix PNF instance creation template
Use "-" sign instead of "_" on template
Issue-ID: TEST-404
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I63ce15c184c167d9c6468afa11730587f6322c40
Diffstat (limited to 'src/onapsdk/aai')
-rw-r--r-- | src/onapsdk/aai/templates/aai_put_pnf.json.j2 | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/src/onapsdk/aai/templates/aai_put_pnf.json.j2 b/src/onapsdk/aai/templates/aai_put_pnf.json.j2 index 4d22058..041a07a 100644 --- a/src/onapsdk/aai/templates/aai_put_pnf.json.j2 +++ b/src/onapsdk/aai/templates/aai_put_pnf.json.j2 @@ -1,54 +1,54 @@ { -{%- if pnf_object.admin_status %}"admin_status": "{{ pnf_object.admin_status }}",{% else %}{%endif %} -{%- if pnf_object.equip_model %}"equip_model": "{{ pnf_object.equip_model }}",{% else %}{%endif %} -{%- if pnf_object.equip_type %}"equip_type": "{{ pnf_object.equip_type }}",{% else %}{%endif %} -{%- if pnf_object.equip_vendor %}"equip_vendor": "{{ pnf_object.equip_vendor }}",{% else %}{%endif %} -{%- if pnf_object.frame_id %}"frame_id": "{{ pnf_object.frame_id }}",{% else %}{%endif %} -{%- if pnf_object.in_maint != None %}"in_maint": {{ convert_bool_for_json(pnf_object.in_maint) }},{% else %}{%endif %} -{%- if pnf_object.inv_status %}"inv_status": "{{ pnf_object.inv_status }}",{% else %}{%endif %} -{%- if pnf_object.ipaddress_v4_aim %}"ipaddress_v4_aim": "{{ pnf_object.ipaddress_v4_aim }}",{% else %}{%endif %} -{%- if pnf_object.ipaddress_v4_loopback_0 %}"ipaddress_v4_loopback_0": "{{ pnf_object.ipaddress_v4_loopback_0 }}",{% else %}{%endif %} -{%- if pnf_object.ipaddress_v4_oam %}"ipaddress_v4_oam": "{{ pnf_object.ipaddress_v4_oam }}",{% else %}{%endif %} -{%- if pnf_object.ipaddress_v6_aim %}"ipaddress_v6_aim": "{{ pnf_object.ipaddress_v6_aim }}",{% else %}{%endif %} -{%- if pnf_object.ipaddress_v6_loopback_0 %}"ipaddress_v6_loopback_0": "{{ pnf_object.ipaddress_v6_loopback_0 }}",{% else %}{%endif %} -{%- if pnf_object.ipaddress_v6_oam %}"ipaddress_v6_oam": "{{ pnf_object.ipaddress_v6_oam }}",{% else %}{%endif %} -{%- if pnf_object.management_option %}"management_option": "{{ pnf_object.management_option }}",{% else %}{%endif %} -{%- if pnf_object.model_customization_id %}"model_customization_id": "{{ pnf_object.model_customization_id }}",{% else %}{%endif %} -{%- if pnf_object.model_invariant_id %}"model_invariant_id": "{{ pnf_object.model_invariant_id }}",{% else %}{%endif %} -{%- if pnf_object.model_version_id %}"model_version_id": "{{ pnf_object.model_version_id }}",{% else %}{%endif %} -{%- if pnf_object.nf_role %}"nf_role": "{{ pnf_object.nf_role }}",{% else %}{%endif %} -{%- if pnf_object.operational_status %}"operational_status": "{{ pnf_object.operational_status }}",{% else %}{%endif %} -{%- if pnf_object.orchestration_status %}"orchestration_status": "{{ pnf_object.orchestration_status }}",{% else %}{%endif %} -{%- if pnf_object.pnf_id %}"pnf_id": "{{ pnf_object.pnf_id }}",{% else %}{%endif %} -{%- if pnf_object.pnf_ipv4_address %}"pnf_ipv4_address": "{{ pnf_object.pnf_ipv4_address }}",{% else %}{%endif %} -{%- if pnf_object.pnf_ipv6_address %}"pnf_ipv6_address": "{{ pnf_object.pnf_ipv6_address }}",{% else %}{%endif %} -{%- if pnf_object.pnf_name %}"pnf_name": "{{ pnf_object.pnf_name }}",{% else %}{%endif %} -{%- if pnf_object.prov_status %}"prov_status": "{{ pnf_object.prov_status }}",{% else %}{%endif %} +{%- if pnf_object.admin_status %}"admin-status": "{{ pnf_object.admin_status }}",{% else %}{%endif %} +{%- if pnf_object.equip_model %}"equip-model": "{{ pnf_object.equip_model }}",{% else %}{%endif %} +{%- if pnf_object.equip_type %}"equip-type": "{{ pnf_object.equip_type }}",{% else %}{%endif %} +{%- if pnf_object.equip_vendor %}"equip-vendor": "{{ pnf_object.equip_vendor }}",{% else %}{%endif %} +{%- if pnf_object.frame_id %}"frame-id": "{{ pnf_object.frame_id }}",{% else %}{%endif %} +{%- if pnf_object.in_maint != None %}"in-maint": {{ convert_bool_for_json(pnf_object.in_maint) }},{% else %}{%endif %} +{%- if pnf_object.inv_status %}"inv-status": "{{ pnf_object.inv_status }}",{% else %}{%endif %} +{%- if pnf_object.ipaddress_v4_aim %}"ipaddress-v4-aim": "{{ pnf_object.ipaddress_v4_aim }}",{% else %}{%endif %} +{%- if pnf_object.ipaddress_v4_loopback_0 %}"ipaddress-v4-loopback-0": "{{ pnf_object.ipaddress_v4_loopback_0 }}",{% else %}{%endif %} +{%- if pnf_object.ipaddress_v4_oam %}"ipaddress-v4-oam": "{{ pnf_object.ipaddress_v4_oam }}",{% else %}{%endif %} +{%- if pnf_object.ipaddress_v6_aim %}"ipaddress-v6-aim": "{{ pnf_object.ipaddress_v6_aim }}",{% else %}{%endif %} +{%- if pnf_object.ipaddress_v6_loopback_0 %}"ipaddress-v6-loopback-0": "{{ pnf_object.ipaddress_v6_loopback_0 }}",{% else %}{%endif %} +{%- if pnf_object.ipaddress_v6_oam %}"ipaddress-v6-oam": "{{ pnf_object.ipaddress_v6_oam }}",{% else %}{%endif %} +{%- if pnf_object.management_option %}"management-option": "{{ pnf_object.management_option }}",{% else %}{%endif %} +{%- if pnf_object.model_customization_id %}"model-customization-id": "{{ pnf_object.model_customization_id }}",{% else %}{%endif %} +{%- if pnf_object.model_invariant_id %}"model-invariant-id": "{{ pnf_object.model_invariant_id }}",{% else %}{%endif %} +{%- if pnf_object.model_version_id %}"model-version-id": "{{ pnf_object.model_version_id }}",{% else %}{%endif %} +{%- if pnf_object.nf_role %}"nf-role": "{{ pnf_object.nf_role }}",{% else %}{%endif %} +{%- if pnf_object.operational_status %}"operational-status": "{{ pnf_object.operational_status }}",{% else %}{%endif %} +{%- if pnf_object.orchestration_status %}"orchestration-status": "{{ pnf_object.orchestration_status }}",{% else %}{%endif %} +{%- if pnf_object.pnf_id %}"pnf-id": "{{ pnf_object.pnf_id }}",{% else %}{%endif %} +{%- if pnf_object.pnf_ipv4_address %}"pnf-ipv4-address": "{{ pnf_object.pnf_ipv4_address }}",{% else %}{%endif %} +{%- if pnf_object.pnf_ipv6_address %}"pnf-ipv6-address": "{{ pnf_object.pnf_ipv6_address }}",{% else %}{%endif %} +{%- if pnf_object.pnf_name %}"pnf-name": "{{ pnf_object.pnf_name }}",{% else %}{%endif %} +{%- if pnf_object.prov_status %}"prov-status": "{{ pnf_object.prov_status }}",{% else %}{%endif %} {%- if pnf_object.selflink %}"selflink": "{{ pnf_object.selflink }}",{% else %}{%endif %} -{%- if pnf_object.serial_number %}"serial_number": "{{ pnf_object.serial_number }}",{% else %}{%endif %} -{%- if pnf_object.sw_version %}"sw_version": "{{ pnf_object.sw_version }}",{% else %}{%endif %} -{%- if pnf_object.service_instance %}"service_instance": { -{%- if pnf_object.service_instance.service_subscription %}"service_subscription": "{{ pnf_object.service_instance.service_subscription }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.instance_id %}"instance_id": "{{ pnf_object.service_instance.instance_id }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.instance_name %}"instance_name": "{{ pnf_object.service_instance.instance_name }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.service_type %}"service_type": "{{ pnf_object.service_instance.service_type }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.service_role %}"service_role": "{{ pnf_object.service_instance.service_role }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.environment_context %}"environment_context": "{{ pnf_object.service_instance.environment_context }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.workload_context %}"workload_context": "{{ pnf_object.service_instance.workload_context }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.created_at %}"created_at": "{{ pnf_object.service_instance.created_at }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.updated_at %}"updated_at": "{{ pnf_object.service_instance.updated_at }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.resource_version %}"resource_version": "{{ pnf_object.service_instance.resource_version }}",{% else %}{%endif %} +{%- if pnf_object.serial_number %}"serial-number": "{{ pnf_object.serial_number }}",{% else %}{%endif %} +{%- if pnf_object.sw_version %}"sw-version": "{{ pnf_object.sw_version }}",{% else %}{%endif %} +{%- if pnf_object.service_instance %}"service-instance": { +{%- if pnf_object.service_instance.service_subscription %}"service-subscription": "{{ pnf_object.service_instance.service_subscription.service_type }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.instance_id %}"instance-id": "{{ pnf_object.service_instance.instance_id }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.instance_name %}"instance-name": "{{ pnf_object.service_instance.instance_name }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.service_type %}"service-type": "{{ pnf_object.service_instance.service_type }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.service_role %}"service-role": "{{ pnf_object.service_instance.service_role }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.environment_context %}"environment-context": "{{ pnf_object.service_instance.environment_context }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.workload_context %}"workload-context": "{{ pnf_object.service_instance.workload_context }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.created_at %}"created-at": "{{ pnf_object.service_instance.created_at }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.updated_at %}"updated-at": "{{ pnf_object.service_instance.updated_at }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.resource_version %}"resource-version": "{{ pnf_object.service_instance.resource_version }}",{% else %}{%endif %} {%- if pnf_object.service_instance.description %}"description": "{{ pnf_object.service_instance.description }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.model_invariant_id %}"model_invariant_id": "{{ pnf_object.service_instance.model_invariant_id }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.model_version_id %}"model_version_id": "{{ pnf_object.service_instance.model_version_id }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.persona_model_version %}"persona_model_version": "{{ pnf_object.service_instance.persona_model_version }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.widget_model_id %}"widget_model_id": "{{ pnf_object.service_instance.widget_model_id }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.widget_model_version %}"widget_model_version": "{{ pnf_object.service_instance.widget_model_version }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.bandwith_total %}"bandwith_total": "{{ pnf_object.service_instance.bandwith_total }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.vhn_portal_url %}"vhn_portal_url": "{{ pnf_object.service_instance.vhn_portal_url }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.service_instance_location_id %}"service_instance_location_id": "{{ pnf_object.service_instance.service_instance_location_id }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.model_invariant_id %}"model-invariant-id": "{{ pnf_object.service_instance.model_invariant_id }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.model_version_id %}"model-version-id": "{{ pnf_object.service_instance.model_version_id }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.persona_model_version %}"persona-model-version": "{{ pnf_object.service_instance.persona_model_version }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.widget_model_id %}"widget-model-id": "{{ pnf_object.service_instance.widget_model_id }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.widget_model_version %}"widget-model-version": "{{ pnf_object.service_instance.widget_model_version }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.bandwith_total %}"bandwith-total": "{{ pnf_object.service_instance.bandwith_total }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.vhn_portal_url %}"vhn-portal-url": "{{ pnf_object.service_instance.vhn_portal_url }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.service_instance_location_id %}"service-instance-location-id": "{{ pnf_object.service_instance.service_instance_location_id }}",{% else %}{%endif %} {%- if pnf_object.service_instance.selflink %}"selflink": "{{ pnf_object.service_instance.selflink }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.orchestration_status %}"orchestration_status": "{{ pnf_object.service_instance.orchestration_status }}",{% else %}{%endif %} -{%- if pnf_object.service_instance.input_parameters %}"input_parameters": "{{ pnf_object.service_instance.input_parameters }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.orchestration_status %}"orchestration-status": "{{ pnf_object.service_instance.orchestration_status }}",{% else %}{%endif %} +{%- if pnf_object.service_instance.input_parameters %}"input-parameters": "{{ pnf_object.service_instance.input_parameters }}",{% else %}{%endif %} }{% else %}{%endif %} } |