Class IpAddress has a function called 'interface' returning a Virtualization or DCIM interface based on the existance of the 'virtual_machine' property. But in case of a DCIM interface this property exists as well, only set to nil. So this nil check has to be added to return the right interface.
Class IpAddress has a function called 'interface' returning a Virtualization or DCIM interface based on the existance of the 'virtual_machine' property. But in case of a DCIM interface this property exists as well, only set to nil. So this nil check has to be added to return the right interface.