Changes between Version 1 and Version 2 of NCG


Ignore:
Timestamp:
24 Jul 2009, 13:02:12 (9 years ago)
Author:
brent@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCG

    v1 v2  
    3030In a nutshell, NCG operates in two phases:
    3131
    32  * First, the program builds up an internal model of the network by parsing [http://www.netomata.com/docs/formats/neto '''.neto''' files] and [http://www.netomata.com/docs/formats/neto_table tables].
     32 * First, the program builds up an internal model of the network by parsing [http://www.netomata.com/docs/formats/neto .neto files] and [http://www.netomata.com/docs/formats/neto_table tables].
    3333   * These files describe the network, including all the information about various devices (routers, switches, etc.) and services (RANCID, DNS, etc.) that's needed in order to generate configs.
    34    * These files also include references to various config-file templates in [http://www.netomata.com/docs/formats/ncg '''.ncg''' format], which are used to generate the actual config files.
     34   * These files also include references to various config-file templates in [http://www.netomata.com/docs/formats/ncg .ncg format], which are used to generate the actual config files.
    3535 * Then, the program crawls through this internal model of the network, using the referenced templates to generate config files as directed.
    3636
    37   '''Tip:''' After '''ncg''' completes the first phase, its internal model of the network can be dumped for examination using the "{{{-d}}}" flag to the {{{ncg}}} program.
     37  '''Tip:''' After {{{ncg}}} completes the first phase, its internal model of the network can be dumped for examination using the "{{{-d}}}" flag to the {{{ncg}}} program.
    3838
    3939  If the "{{{-d}}}" flag to {{{ncg}}} is used, the program simply exits after dumping the internal model of the network that it has constructed, __without__ generating any config files.
    4040
    41   See the [http://www.netomata.com/docs/programs/ncg '''ncg''' manual page] for more information.
     41  See the [http://www.netomata.com/docs/programs/ncg ncg manual page] for more information.
    4242
    4343= NCG's Internal Network Model =
    4444
    45 The internal model of the network that NCG creates is a tree-structured description of the network, as described in the [http://www.netomata.com/docs/formats/neto '''.neto''' file] documentation.
     45The internal model of the network that NCG creates is a tree-structured description of the network, as described in the [http://www.netomata.com/docs/formats/neto .neto file] documentation.
    4646
    4747The tree is like a UNIX filesystem:
     
    5555The structure of the tree, and particularly the naming of elements within the tree, is established by convention (just as convention establishes the filesystem structure of a typical UNIX system to be "/bin", "/usr/lib", "/var", and so forth).
    5656
    57   '''Tip:''' To get a listing of all the keys in the network model, use the "{{{ncg -k ''neto_file''}}}" command (for instance, "{{{ncg -k ietf.neto}}}"). This is like doing "{{{find / -print}}}" to see the names of all the files and directories in a filesystem.
     57  '''Tip:''' To get a listing of all the keys in the network model, use the "{{{ncg -k}}} ''neto_file''" command (for instance, "{{{ncg -k ietf.neto}}}"). This is like doing "{{{find / -print}}}" to see the names of all the files and directories in a filesystem.
    5858
    5959= Files and Directories =