aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/resources/OS_Neutron_Net/inputs/ep-jsa_net.yaml
blob: 3c5b00dc489378941ec168a61ffa425a4326ec10 (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
heat_template_version: 2013-05-23

description: >
  Version 2.0 02-09-2016 (Authors: John Doe, user PROD)

parameters:
  param_string:
      type: string
      description: param String - string
  param_number:
      type: number
      description: param number - float
  param_json:
      type: json
      description: param json - map<String>
  param_boolean:
      type: boolean
      description: param boolean - boolean
  param_comma_delimited_list:
      type: comma_delimited_list
      description: param comma_delimited_list - List

  jsa_net_name:
    type: string
    description: network name of jsa log network
  jsa_cidr:
    type: string
    description: CIDR of jsa log network
  user_name:
    type: string
    label: User Name
    description: User name to be configured for the application
    hidden: true
    constraints:
      - length: { min: 6, max: 8 }
        description: User name must be between 6 and 8 characters
      - allowed_pattern: "[A-Z]+[a-zA-Z0-9]*"
        description: User name must start with an uppercase character
      - range: { min: 0, max: 10 }
  instance_type:
    type: string
    label: Instance Type
    description: Instance type for compute instances
    constraints:
      - allowed_values:
        - m1.small
        - m1.medium
        - m1.large

resources:
  jsa_subnet:
    type: OS::Neutron::Subnet
    properties:
      network_id: {get_resource: jsa_net}
      cidr: {get_param: jsa_cidr}

  jsa_net:
    type: OS::Neutron::Net
    properties:
      name: {get_param: jsa_net_name}
      shared: True

  jsa_net_test_full_attribute:
    type: OS::Neutron::Net
    properties:
      name: {get_param: jsa_net_name}
      shared: True
      dhcp_agent_ids: ['1000','1001','1002']
      tenant_id: 23456
      port_security_enabled: t
      admin_state_up: 0
      qos_policy: full
      value_specs:
            key1: "spec1"
            key2: "spec2"

  jsa_net_test_full_attribute_subnet:
    type: OS::Neutron::Subnet
    properties:
      network_id: {get_resource: jsa_net_test_full_attribute}
      cidr: {get_param: jsa_cidr}

  jsa_net_test_get_attribute_2_params:
    type: OS::Neutron::Net
    properties:
      name: {get_attr: [jsa_net, name]}
      shared: True
      dhcp_agent_ids: ['1000','1001','1002']
      tenant_id: 23456
      port_security_enabled: t
      admin_state_up: 0
      qos_policy: full
      value_specs:
            key1: "spec1"

  jsa_net_test_get_attribute_3_params:
    type: OS::Neutron::Net
    properties:
      name: {get_attr: [jsa_net, name, 0]}
      shared: True
      dhcp_agent_ids: ['1000','1001','1002']
      tenant_id: 23456
      port_security_enabled: t
      admin_state_up: 0
      qos_policy: full
      value_specs:
            key1: "spec1"

  jsa_net_test_get_attribute_4_params:
    type: OS::Neutron::Net
    properties:
      name: {get_attr: [jsa_net, name, 0,a1]}
      shared: True
      dhcp_agent_ids: ['1000','1001','1002']
      tenant_id: 23456
      port_security_enabled: t
      admin_state_up: 0
      qos_policy: full
      value_specs:
            key1: "spec1"

  jsa_net_test_get_attribute_5_params:
    type: OS::Neutron::Net
    properties:
      name: {get_attr: [jsa_net, name, 0, a1, a2]}
      shared: True
      dhcp_agent_ids: ['1000','1001','1002']
      tenant_id: 23456
      port_security_enabled: t
      admin_state_up: 0
      qos_policy: full
      value_specs:
            key1: "spec1"