- "dhcp_enabled": ip_profile["dhcp-params"].get("enabled", True),
- "dhcp_start_address": ip_profile["dhcp-params"].get("start-address"),
- "dhcp_count": ip_profile["dhcp-params"].get("count"),
-
+ "dhcp_enabled": ip_profile["dhcp-params"].get("enabled", True)
+ if "dhcp_params" in ip_profile else False,
+ "dhcp_start_address": ip_profile["dhcp-params"].get("start-address")
+ if "dhcp_params" in ip_profile else None,
+ "dhcp_count": ip_profile["dhcp-params"].get("count") if "dhcp_params" in ip_profile else None,