network_req = self.new_create_request('networks', data, fmt)
return network_req.get_response(self.api)
- def _create_subnet(self, fmt, net_id, gateway_ip, cidr,
+ def _create_subnet(self, fmt, tenant_id, net_id, gateway_ip, cidr,
allocation_pools=None, ip_version=4):
- data = {'subnet': {'network_id': net_id,
+ data = {'subnet': {'tenant_id': tenant_id,
+ 'network_id': net_id,
'cidr': cidr,
- 'ip_version': ip_version}}
+ 'ip_version': ip_version,
+ 'tenant_id': self._tenant_id}}
if gateway_ip:
data['subnet']['gateway_ip'] = gateway_ip
if allocation_pools: