Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 6
Next »
######### Types shared by the provider and the consumer
capability_types:
onap.examples.capabilities.Firewall:
derived_from: onap.capabilities.Firewall
node_types:
onap.examples.nodes.Firewall:
derived_from: tosca.nodes.Root
description: an abstract firewall
capabilities:
i_can_be_a_firewall:
type: onap.examples.capabilities.Firewall
onap.nodes.Service
onap.capabilities.AllottedResourceProvider
onap.relationships.AllottedBy
node_types:
onap.examples.nodes.FirewallShare:
derived_from: onap.examples.nodes.Firewall
description: an abstract firewall
capabilities:
i_can_be_a_firewall:
type: onap.examples.capabilities.Firewall
requirements:
- i_need_a_providing_service:
capability: onap.capabilities.AllottedResourceProvider
########## Providing Service
capability_types:
vendorXXX.capabilities.FirewallsProvider:
derived_from: onap.capabilities.AllottedResourceProvider
valid_source_types: [onap.examples.nodes.Firewall]
node_types:
vendorXXX.nodes.FirewallsProvidingService:
derived_from: onap.nodes.Service
capabilities:
i_can_provide_firewalls:
type: vendorXXX.capabilities.FirewallsProvider
vendorXXX.nodes.MyVerySpecialFirewall:
derived_from: onap.examples.nodes.Firewall
capabilities:
i_can_be_a_firewalls:
type: vendorXXX.capabilities.Firewall
topology_template:
node_templates:
firewalls_manager:
type: ....
capabilities:
i_can_provide_firewalls:
type: vendorXXX.capabilities.FirewallsProvider
substitution_mappings:
type: vendorXXX.nodes.FirewallsProvidingService
capabilities:
i_can_provide_firewalls: [firewalls_manager, i_can_provide_firewalls]
####################### Consuming service
topology_template:
node_templates:
# A more released abstraction of a firewall, can be implemented by any way including an allotted resource
firewall_1:
type: onap.examples.nodes.Firewall
# A more restricted abstraction - must be resolved by an allotted resource
firewall_2:
type: onap.examples.nodes.FirewallShare
# A very specific firewall - must be resolved by an allotted resource of the specific type
firewall_3:
type: vendorXXX.nodes.FirewallShare