Add support for DescribeNetworkInterfaces tag filters (#4057)

This commit is contained in:
Brian Pandola 2021-07-03 23:44:58 -07:00 committed by GitHub
commit 05cdcbcedc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 1 deletions

View file

@ -404,6 +404,7 @@ class NetworkInterfaceBackend(object):
private_ip_addresses=None,
group_ids=None,
description=None,
tags=None,
**kwargs
):
eni = NetworkInterface(
@ -415,6 +416,8 @@ class NetworkInterfaceBackend(object):
description=description,
**kwargs
)
if tags:
eni.add_tags(tags)
self.enis[eni.id] = eni
return eni