def device_exists(device):
 (_out, err) = _execute('ip', 'link', 'show', 'dev', device, check_exit_code=False, run_as_root=True)
 return (not err)

def device_exists ( device ) : ( _out , err ) = _execute ( 'ip' , 'link' , 'show' , 'dev' , device , check_exit_code = False , run_as_root = True ) return ( not err )
return true if the device exists in the namespace .