diff --git a/src/config/device-manager/device_manager/db.py b/src/config/device-manager/device_manager/db.py index c357dcabcda..fc22e420dea 100644 --- a/src/config/device-manager/device_manager/db.py +++ b/src/config/device-manager/device_manager/db.py @@ -1039,7 +1039,7 @@ def update(self, obj=None): self.params = obj['virtual_machine_interface_properties'] self.service_interface_type = self.params.get( 'service_interface_type', None) - self.device_owner = obj.get("virtual_machine_interface_device_owner") + self.device_owner = obj.get("virtual_machine_interface_device_owner") or '' self.update_single_ref('logical_interface', obj) self.update_single_ref('virtual_network', obj) self.update_single_ref('floating_ip', obj) @@ -1055,7 +1055,7 @@ def update(self, obj=None): # end update def is_device_owner_bms(self): - if self.logical_interface and self.device_owner.lower() == 'physicalrouter': + if self.logical_interface and self.device_owner.lower() in ['physicalrouter', 'physical-router']: return True return False # end