def is_dvr_serviced(device_owner):
- """Check if the port need to be serviced by DVR
-
- Helper function to check the device owners of the
- ports in the compute and service node to make sure
- if they are required for DVR or any service directly or
- indirectly associated with DVR.
- """
- dvr_serviced_device_owners = (q_const.DEVICE_OWNER_LOADBALANCER,
- q_const.DEVICE_OWNER_DHCP)
- return (device_owner.startswith('compute:') or
- device_owner in dvr_serviced_device_owners)
+ """Check if the port need to be serviced by DVR
+
+ Helper function to check the device owners of the
+ ports in the compute and service node to make sure
+ if they are required for DVR or any service directly or
+ indirectly associated with DVR.
+ """
+ dvr_serviced_device_owners = (q_const.DEVICE_OWNER_LOADBALANCER,
+ q_const.DEVICE_OWNER_DHCP)
+ return (device_owner.startswith('compute:') or
+ device_owner in dvr_serviced_device_owners)