rancid(3) | Library Functions Manual | rancid(3) |
rancid - rancid Perl and Python modules
The rancid library provides functions for handling rancid.types configuration files, loading modules, and the basic global variables, variables from parsing rancid.types files, and output handling functions that are common to all rancid device modules, all of which are exported (in Perl terms) for use by those that import the module. Specifically, the library is used by rancid(1), but it could be used by any Perl program for site-specific handling or additional automata.
Output handling functions:
Note that if the hash key sort_function_argument exists, the new strings is appended to the existing hash value.
ProcessHistory("TAG","keysort","B0","!\n"); ProcessHistory("TAG","keysort","D0","!\n");
B0 and D0 are the sort keys.
ProcessHistory("TAG","valsort","","!B0\n"); ProcessHistory("TAG","valsort","","!D0\n");
ProcessHistory("TAG","ipsort","192.168.0.0","!B0\n"); ProcessHistory("TAG","ipsort","192.168.1.0","!D0\n");
Please see the library code for exported variables.
Please see the pydoc(1) for documentation on the rancid Python module. It is equivalent to the Perl module, but in a Pythonic manner.
15 April 2019 |