Revision e8ba3e9f kamaki/clients/network/__init__.py
b/kamaki/clients/network/__init__.py | ||
---|---|---|
180 | 180 |
return r.json['subnets'] |
181 | 181 |
|
182 | 182 |
def get_subnet_details(self, subnet_id): |
183 |
r = self.subnets_get(subnet_id, success=200)
|
|
183 |
r = self.subnets_get(subnet_id, success=201)
|
|
184 | 184 |
return r.json |
185 | 185 |
|
186 | 186 |
def update_subnet( |
... | ... | |
250 | 250 |
port['fixed_ips'] = fixed_ips |
251 | 251 |
if security_groups: |
252 | 252 |
port['security_groups'] = security_groups |
253 |
r = self.ports_post(json_data=dict(port=port), success=200)
|
|
253 |
r = self.ports_post(json_data=dict(port=port), success=201)
|
|
254 | 254 |
return r.json['port'] |
255 | 255 |
|
256 | 256 |
def create_ports(self, ports): |
... | ... | |
280 | 280 |
assert port.get('network_id', None), msg |
281 | 281 |
except AssertionError as ae: |
282 | 282 |
raise ValueError('%s' % ae) |
283 |
r = self.ports_post(json_data=dict(ports=list(ports)), success=200)
|
|
283 |
r = self.ports_post(json_data=dict(ports=list(ports)), success=201)
|
|
284 | 284 |
return r.json['ports'] |
285 | 285 |
|
286 | 286 |
def get_port_details(self, port_id): |
Also available in: Unified diff