Issue-ID: VVP-231
Signed-off-by: Lokur, Manish <manish.shivakumar.lokur@att.com>
Change-Id: I9b42d682f9cca0b8ae68746c5472cf7903933558
"""Returns True/False as `resource` is/not
An OS::Nova:Port with the property binding:vnic_type
"""
- return nested_dict.get(
- resource, "type"
- ) == cls.resource_type and "binding:vnic_type" in nested_dict.get(
- resource, "properties", default={}
- )
+ resource_properties = nested_dict.get(resource, "properties", default={})
+ if nested_dict.get(resource, "type") == cls.resource_type and resource_properties.get("binding:vnic_type", "") == "direct":
+ return True
+
+ return False
class NovaServerProcessor(HeatProcessor):