File: subnets_crud.yml

package info (click to toggle)
ruby-fog-openstack 1.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,784 kB
  • sloc: ruby: 47,937; makefile: 5; sh: 4
file content (180 lines) | stat: -rw-r--r-- 5,017 bytes parent folder | download
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
---
http_interactions:
- request:
    method: post
    uri: http://devstack.openstack.stack:9696/v2.0/networks
    body:
      encoding: UTF-8
      string: '{"network":{"name":"foo-net12","shared":false}}'
    headers:
      User-Agent:
      - fog-core/1.32.1
      Proxy-Connection:
      - Keep-Alive
      Content-Type:
      - application/json
      Accept:
      - application/json
      X-Auth-Token:
      - 3b58d1663a9a49b2af240e68bfb08081
  response:
    status:
      code: 201
      message: ''
    headers:
      Content-Type:
      - application/json; charset=UTF-8
      Content-Length:
      - '344'
      X-Openstack-Request-Id:
      - req-fdcd2d80-b5c1-4c2f-854b-b4723a66b777
      Date:
      - Thu, 29 Oct 2015 10:19:42 GMT
      X-Cache:
      - MISS from i056593-vagrant
      X-Cache-Lookup:
      - MISS from i056593-vagrant:3128
      Via:
      - 1.1 i056593-vagrant (squid/3.3.8)
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: '{"network": {"status": "ACTIVE", "subnets": [], "name": "foo-net12",
        "provider:physical_network": null, "router:external": false, "tenant_id":
        "ded5a6e0922c4be59e7c15517cfb89ee", "admin_state_up": true, "mtu": 0, "shared":
        false, "provider:network_type": "vxlan", "id": "212190ec-9075-45d6-b31e-e0649a79b356",
        "provider:segmentation_id": 1045}}'
    http_version: 
  recorded_at: Thu, 29 Oct 2015 10:19:38 GMT
- request:
    method: post
    uri: http://devstack.openstack.stack:9696/v2.0/subnets
    body:
      encoding: UTF-8
      string: '{"subnet":{"network_id":"212190ec-9075-45d6-b31e-e0649a79b356","cidr":"172.16.0.0/16","ip_version":4,"name":"my-network","gateway_ip":null}}'
    headers:
      User-Agent:
      - fog-core/1.32.1
      Proxy-Connection:
      - Keep-Alive
      Content-Type:
      - application/json
      Accept:
      - application/json
      X-Auth-Token:
      - 3b58d1663a9a49b2af240e68bfb08081
  response:
    status:
      code: 201
      message: ''
    headers:
      Content-Type:
      - application/json; charset=UTF-8
      Content-Length:
      - '452'
      X-Openstack-Request-Id:
      - req-6d6a0167-3c48-49e5-8bf4-10e6aa7f4873
      Date:
      - Thu, 29 Oct 2015 10:19:42 GMT
      X-Cache:
      - MISS from i056593-vagrant
      X-Cache-Lookup:
      - MISS from i056593-vagrant:3128
      Via:
      - 1.1 i056593-vagrant (squid/3.3.8)
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: '{"subnet": {"name": "my-network", "enable_dhcp": true, "network_id":
        "212190ec-9075-45d6-b31e-e0649a79b356", "tenant_id": "ded5a6e0922c4be59e7c15517cfb89ee",
        "dns_nameservers": [], "gateway_ip": null, "ipv6_ra_mode": null, "allocation_pools":
        [{"start": "172.16.0.1", "end": "172.16.255.254"}], "host_routes": [], "ip_version":
        4, "ipv6_address_mode": null, "cidr": "172.16.0.0/16", "id": "3d936331-954b-4d47-9531-f27cea2921da",
        "subnetpool_id": null}}'
    http_version: 
  recorded_at: Thu, 29 Oct 2015 10:19:38 GMT
- request:
    method: delete
    uri: http://devstack.openstack.stack:9696/v2.0/subnets/3d936331-954b-4d47-9531-f27cea2921da
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - fog-core/1.32.1
      Proxy-Connection:
      - Keep-Alive
      Content-Type:
      - application/json
      Accept:
      - application/json
      X-Auth-Token:
      - 3b58d1663a9a49b2af240e68bfb08081
  response:
    status:
      code: 204
      message: ''
    headers:
      Content-Length:
      - '0'
      X-Openstack-Request-Id:
      - req-e44101b5-1474-4796-85e5-2c451aec45b1
      Date:
      - Thu, 29 Oct 2015 10:19:43 GMT
      X-Cache:
      - MISS from i056593-vagrant
      X-Cache-Lookup:
      - MISS from i056593-vagrant:3128
      Via:
      - 1.1 i056593-vagrant (squid/3.3.8)
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 29 Oct 2015 10:19:38 GMT
- request:
    method: delete
    uri: http://devstack.openstack.stack:9696/v2.0/networks/212190ec-9075-45d6-b31e-e0649a79b356
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - fog-core/1.32.1
      Proxy-Connection:
      - Keep-Alive
      Content-Type:
      - application/json
      Accept:
      - application/json
      X-Auth-Token:
      - 3b58d1663a9a49b2af240e68bfb08081
  response:
    status:
      code: 204
      message: ''
    headers:
      Content-Length:
      - '0'
      X-Openstack-Request-Id:
      - req-c8c52a10-08ea-4e1f-8915-b5fd33e4d874
      Date:
      - Thu, 29 Oct 2015 10:19:43 GMT
      X-Cache:
      - MISS from i056593-vagrant
      X-Cache-Lookup:
      - MISS from i056593-vagrant:3128
      Via:
      - 1.1 i056593-vagrant (squid/3.3.8)
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 29 Oct 2015 10:19:38 GMT
recorded_with: VCR 2.9.3