|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | +tosca_definitions_version: tosca_2_0 |
| 18 | + |
| 19 | +description: > |
| 20 | + NetworkOffering node type definition. |
| 21 | +
|
| 22 | +data_types: |
| 23 | + NetworkServiceProviderMapping: |
| 24 | + properties: |
| 25 | + service: |
| 26 | + type: string |
| 27 | + description: The network service. |
| 28 | + required: true |
| 29 | + provider: |
| 30 | + type: string |
| 31 | + description: The network service provider. |
| 32 | + required: true |
| 33 | + ServiceCapability: |
| 34 | + properties: |
| 35 | + capability-type: |
| 36 | + type: string |
| 37 | + description: The capability type. |
| 38 | + required: true |
| 39 | + capability-value: |
| 40 | + type: string |
| 41 | + description: The capability value. |
| 42 | + required: true |
| 43 | + |
| 44 | +node_types: |
| 45 | + NetworkOffering: |
| 46 | + properties: |
| 47 | + name: |
| 48 | + type: string |
| 49 | + description: Name of the network offering. |
| 50 | + required: true |
| 51 | + guest-ip-type: |
| 52 | + type: string |
| 53 | + description: "The type of the network created from the offering. Valid values are 'isolated', 'l2' and 'shared'." |
| 54 | + validation: { $valid_values: [ $value, [ isolated, l2, shared ] ] } |
| 55 | + required: true |
| 56 | + traffic-type: |
| 57 | + type: string |
| 58 | + description: The traffic type of the network offering. |
| 59 | + required: true |
| 60 | + display-text: |
| 61 | + type: string |
| 62 | + description: Display text of the network offering. |
| 63 | + required: false |
| 64 | + zone-id: |
| 65 | + type: string |
| 66 | + description: The ID of the availability zone. If not specified, the network offering will be public. |
| 67 | + required: false |
| 68 | + domain-id: |
| 69 | + type: string |
| 70 | + description: The ID of the domain for which the network offering will be available. If not specified, the compute offering will be public. |
| 71 | + required: false |
| 72 | + enable: |
| 73 | + type: boolean |
| 74 | + description: Whether the network offering will be enabled during creation. |
| 75 | + required: false |
| 76 | + internet-protocol: |
| 77 | + type: string |
| 78 | + description: "The internet protocol of the offering. Valid values are 'ipv4' and 'dualstack'." |
| 79 | + validation: { $valid_values: [ $value, [ ipv4, dualstack ] ] } |
| 80 | + required: false |
| 81 | + for-vpc: |
| 82 | + type: boolean |
| 83 | + description: Whether the network offering is for VPC tiers. |
| 84 | + required: false |
| 85 | + egress-default-policy: |
| 86 | + type: string |
| 87 | + description: "The default egress policy for the network created from the offering. Valid values are 'allow' and 'deny'." |
| 88 | + validation: { $valid_values: [ $value, [ allow, deny ] ] } |
| 89 | + required: false |
| 90 | + supported-services: |
| 91 | + type: list |
| 92 | + entry_schema: |
| 93 | + type: string |
| 94 | + description: The network services supported by the offering. |
| 95 | + required: false |
| 96 | + service-provider-list: |
| 97 | + type: list |
| 98 | + entry_schema: |
| 99 | + type: NetworkServiceProviderMapping |
| 100 | + description: The network services mapped to their providers. |
| 101 | + required: false |
| 102 | + service-offering-id: |
| 103 | + type: string |
| 104 | + description: The ID of the network service offering for the network router. |
| 105 | + required: false |
| 106 | + tags: |
| 107 | + type: list |
| 108 | + entry_schema: |
| 109 | + type: string |
| 110 | + description: The list of tags associated with the network offering. |
| 111 | + specify-vlan: |
| 112 | + type: boolean |
| 113 | + description: Whether the network offering requires a VLAN ID to be specified.. |
| 114 | + required: false |
| 115 | + specify-ip-ranges: |
| 116 | + type: boolean |
| 117 | + description: Whether the network offering requires IP ranges to be specified. |
| 118 | + required: false |
| 119 | + network-rate: |
| 120 | + type: integer |
| 121 | + description: The network rate in Mbps. |
| 122 | + required: false |
| 123 | + persistent: |
| 124 | + type: boolean |
| 125 | + description: Whether the network created from this offering will be persistent. |
| 126 | + required: false |
| 127 | + conserve-mode: |
| 128 | + type: boolean |
| 129 | + description: Whether the conserve mode is enabled. |
| 130 | + service-capability-list: |
| 131 | + type: list |
| 132 | + entry_schema: |
| 133 | + type: ServiceCapability |
| 134 | + description: The list of service capabilities. |
| 135 | + required: false |
| 136 | + attributes: |
| 137 | + id: |
| 138 | + type: string |
| 139 | + description: The ID of the network offering. |
0 commit comments