'Function returns the internal and external device status.'

def _get_dvr_snat_namespace_device_status(self, router, internal_dev_name=None):

    snat_ns = dvr_snat_ns.SnatNamespace.get_snat_ns_name(router.router_id)
    external_port = router.get_ex_gw_port()
    external_device_name = router.get_external_device_name(external_port['id'])
    qg_device_created_successfully = ip_lib.device_exists(external_device_name, namespace=snat_ns)
    sg_device_created_successfully = ip_lib.device_exists(internal_dev_name, namespace=snat_ns)
    return (qg_device_created_successfully, sg_device_created_successfully)
