From c8f1b9cc62990a0c0f1608a6c6bf0091756072db Mon Sep 17 00:00:00 2001 From: ysssasaki Date: Thu, 8 Apr 2021 09:24:25 +0900 Subject: [PATCH] Make interfaces optional in create VNA --- ecl/virtual_network_appliance/v1/_proxy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecl/virtual_network_appliance/v1/_proxy.py b/ecl/virtual_network_appliance/v1/_proxy.py index 62a0e34..2731b40 100755 --- a/ecl/virtual_network_appliance/v1/_proxy.py +++ b/ecl/virtual_network_appliance/v1/_proxy.py @@ -151,7 +151,7 @@ def delete_virtual_network_appliance(self, virtual_network_appliance_id, def create_virtual_network_appliance( self, virtual_network_appliance_plan_id, - interfaces, + interfaces=None, name=None, description=None, tags=None, @@ -175,7 +175,8 @@ def create_virtual_network_appliance( body = {} body["virtual_network_appliance_plan_id"] = \ virtual_network_appliance_plan_id - body["interfaces"] = interfaces + if interfaces: + body["interfaces"] = interfaces if name: body["name"] = name if description: