Sync network examples with the spec

Sync two network examples with the spec:
- Network 1: Server bound to a new network
- Network 2: Server bound to an existing network

Change-Id: I5f0dfa2d6a3d6e9c3fdc2ecbe4a10f1e16b2c768
Partial-Bug: #1475807
This commit is contained in:
Vahid Hashemian 2015-07-17 20:34:27 -07:00
parent dcd77567e5
commit 0d0c3a75b7
3 changed files with 12 additions and 3 deletions

View File

@ -49,6 +49,10 @@ IMAGES = {'ubuntu-software-config-os-init': {'architecture': 'x86_64',
'type': 'Linux',
'distribution': 'CirrOS',
'version': '0.3.1'},
'cirros-0.3.2-x86_64-uec': {'architecture': 'x86_64',
'type': 'Linux',
'distribution': 'CirrOS',
'version': '0.3.2'},
'rhel-6.5-test-image': {'architecture': 'x86_64',
'type': 'Linux',
'distribution': 'RHEL',

View File

@ -1,9 +1,10 @@
tosca_definitions_version: tosca_simple_yaml_1_0
description: >
TOSCA simple profile with 1 network and 1 attached server
TOSCA simple profile with 1 server bound to a new network
topology_template:
inputs:
network_name:
type: string
@ -24,15 +25,17 @@ topology_template:
type: Linux
distribution: CirrOS
version: 0.3.2
my_network:
type: tosca.nodes.network.Network
properties:
network_name: { get_input: network_name }
ip_version: 4
cidr: '192.168.0.0/24'
network_name: { get_input: network_name }
start_ip: '192.168.0.50'
end_ip: '192.168.0.200'
gateway_ip: '192.168.0.1'
my_port:
type: tosca.nodes.network.Port
requirements:

View File

@ -1,7 +1,7 @@
tosca_definitions_version: tosca_simple_yaml_1_0
description: >
TOSCA simple profile with 1 server attached to existing network
TOSCA simple profile with 1 server bound to an existing network
topology_template:
inputs:
@ -24,10 +24,12 @@ topology_template:
type: Linux
distribution: CirrOS
version: 0.3.2
my_network:
type: tosca.nodes.network.Network
properties:
network_name: { get_input: network_name }
my_port:
type: tosca.nodes.network.Port
requirements: