def add_local(f):
 if os.path.exists(f):
  fn = get_filename(f)
  if fn:
   if (get_ext(fn) in VALID_ARCHIVES):
    ProcessArchiveFile(fn, f, keep=True)
   elif (get_ext(fn) in ('.nzb', '.gz', '.bz2')):
    ProcessSingleFile(fn, f, keep=True)
  else:
   logging.error('Filename not found: %s', f)
 else:
  logging.error('File not found: %s', f)

def add_local ( f ) : if os . path . exists ( f ) : fn = get_filename ( f ) if fn : if ( get_ext ( fn ) in VALID_ARCHIVES ) : ProcessArchiveFile ( fn , f , keep = True ) elif ( get_ext ( fn ) in ( '.nzb' , '.gz' , '.bz2' ) ) : ProcessSingleFile ( fn , f , keep = True ) else : logging . error ( 'Filename not found: %s' , f ) else : logging . error ( 'File not found: %s' , f )
adds *prefix* from vrf identified by *route_dist* and sets the source as network controller .