aboutsummaryrefslogtreecommitdiffstats
path: root/cucumber-js-test-apis-ci/resources/yaml/CB_BASE.yaml
blob: 4aef40b27097b55c6ee95653f62a0a09fed4affd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
heat_template_version: 2013-05-23

description: >
 BASE TEMPLATE

parameters:
    vnf_name:
        type: string
        description: Unique name for this VF instance
        
    vnf_id:
        type: string
        description: Unique ID for this VF instance        
      
    network_in_cidr:
      type: string
      description: IN network address (CIDR notation)
      
    network_out_cidr:
      type: string
      description: MUX out network address (CIDR notation)

    network_in_gw_ip:
      type: string
      description: IN network gw address 

    network_out_gw_ip:
      type: string
      description: MUX out network gw address 
    
resources:
 
    random-str:
      type: OS::Heat::RandomString
      properties:
        length: 4
        
    CB_IN_Net:
        type: OS::Neutron::Net
        properties:
            name: 
              str_replace:
                template: CB_IN_Net_rand
                params:
                  rand: { get_resource: random-str }

    CB_IN_Subnet:
      type: OS::Neutron::Subnet
      properties:
        name:
          str_replace:
            template: CB_IN_Net_rand
            params:
              rand: { get_resource: random-str }
        network_id: { get_resource: CB_IN_Net }
        cidr: { get_param: network_in_cidr }
        gateway_ip: { get_param: network_in_gw_ip }
      
    CB_OUT_Net:
        type: OS::Neutron::Net
        properties:
            name: 
              str_replace:
                template: CB_OUT_Net_rand
                params:
                  rand: { get_resource: random-str }

    CB_OUT_Subnet:
        type: OS::Neutron::Subnet
        properties:
            network_id: { get_resource: CB_OUT_Net }
            cidr: { get_param: network_out_cidr }
            gateway_ip: { get_param: network_out_gw_ip }
            
outputs:

    CB_IN_Net:
      description: ID of the customer facing network
      value: { get_resource: CB_IN_Net }
      
    CB_IN_Subnet:
      description: ID of the customer facing subnet
      value: { get_resource: CB_IN_Subnet }
      
    CB_OUT_Net:
      description: ID of the Internet Facing network
      value: { get_resource: CB_OUT_Net }
      
    CB_OUT_Subnet:
      description: ID of the Internet Facing subnet
      value: { get_resource: CB_OUT_Subnet }