diff options
-rw-r--r-- | lcm/pub/nfvi/vim/api/multivim/api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/pub/nfvi/vim/api/multivim/api.py b/lcm/pub/nfvi/vim/api/multivim/api.py index 11a772ee..82e42913 100644 --- a/lcm/pub/nfvi/vim/api/multivim/api.py +++ b/lcm/pub/nfvi/vim/api/multivim/api.py @@ -347,6 +347,8 @@ class MultiVimApi: if "ip_version" in subnet and subnet["ip_version"]: subnet_data["ipVersion"] = int(subnet["ip_version"]) if "enable_dhcp" in subnet and subnet["enable_dhcp"]: + if isinstance(subnet["enable_dhcp"], str): + subnet["enable_dhcp"] = (subnet["enable_dhcp"]).strip().lower() in "true" subnet_data["enableDhcp"] = int(subnet["enable_dhcp"]) == const.ENABLE_DHCP if "gateway_ip" in subnet and subnet["gateway_ip"]: subnet_data["gatewayIp"] = subnet["gateway_ip"] |