/**
 * File:
 *   var_yp_securenets.scr
 * Summary:
 *   SCR Agent for reading /var/yp/securenets
 * Access:
 *   r/w
 * Authors:
 *   Daniel Vesely <dan@suse.cz>
 * See:
 *   anyagent
 *   libscr
 *   man exports
 * Example:
 *   Read(.var.yp.securenets)
 * [$["comment":" securenets\tThis file defines the access rights to your NIS server", "hash":"#"], 
 *  $["netmask":"255.0.0.0", "network":"127.0.0.0"], 
 *  $["netmask":"0.0.0.0", "network":"0.0.0.0"]]
 * 
 * $Id: var_yp_securenets.scr 13018 2003-12-11 12:52:53Z jhumpol $
 *
 * Returns a <b>list</b> containing information from the securenets file.
 */

.var.yp.securenets

`ag_anyagent(
  `Description (
  (`File ("/var/yp/securenets")),	// real file name
  "\n",                                   // Comment
  false,                                // read-only
  (`List (      
         `Or (
             `Tuple (
                 `hash (`String ("#")),
                 `Optional (`comment (`String ("^\n")))
                 ),
             `Tuple (
                 `netmask (`String ("^ \t")),
                 `Separator ("\t "),
                 `network (`String("^ \t\n"))
                 )
             ),
         "\n")
      ))
    )
    
