def show(self, subnet_id):
subnet = self.client.describe_subnets(
SubnetIds=[subnet_id]).get('Subnets')[0]
result = {'name': subnet['SubnetId'],
'description': None,
'id': subnet['SubnetId'],
'cidr': subnet['CidrBlock'],
'cloud': PROVIDER,
'gateway_ip': None,
'security_group': None,
'allocation_pools': None,
'dns_nameservers': None
}
return result
评论列表
文章目录