trying to find out ec2 error

Signed-off-by: nik.kaluzhin <doupfish@gmail.com>
Change-Id: I1c9b790eb6ce3f9d4281d6b1306eed49043078f3
This commit is contained in:
nik.kaluzhin 2022-07-22 01:37:13 +03:00
parent ebb12611ca
commit 4aad5e6978
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ DEFAULT_BGP_ASN = 65000
def create_customer_gateway(context, ip_address, type, bgp_asn=None):
if bgp_asn and bgp_asn != DEFAULT_BGP_ASN:
raise exception.Unsupported("BGP dynamic routing is unsupported")
# testing output to get ec2 failures
customer_gateway = next((cgw for cgw in db_api.get_items(context, 'cgw')
if cgw['ip_address'] == ip_address), None)
if not customer_gateway: