Support default ACL in a VPC

a vpc usually has a default acl
this makes sure that moto flags it
and that the describe response has it in there
This commit is contained in:
earthmant 2015-11-23 18:07:51 +02:00
commit 18fe3e41e9
2 changed files with 5 additions and 3 deletions

View file

@ -2610,10 +2610,12 @@ class NetworkAcl(TaggedEC2Resource):
self.vpc_id = vpc_id
self.network_acl_entries = []
self.associations = {}
self.default = default
self.default = 'true' if default is True else 'false'
def get_filter_value(self, filter_name):
if filter_name == "vpc-id":
if filter_name == "default":
return self.default
elif filter_name == "vpc-id":
return self.vpc_id
elif filter_name == "association.network-acl-id":
return self.id