[rancid] multiple files
Alan McKinnon
alan.mckinnon at gmail.com
Mon Mar 17 21:46:28 UTC 2014
On 17/03/2014 22:09, heasley wrote:
> Mon, Mar 17, 2014 at 09:47:33PM +0200, Alan McKinnon:
>> On 17/03/2014 20:40, Siegel, Richard wrote:
>>> Good day! I am new to rancid git, and had a question regarding
>>> extensibility of functionality for using rancid against directory of xml
>>> files on a server.
>>>
>>>
>>>
>>> Could a single device class (a vendor) write out multiple .new files?
>>> Has anyone done anything like this, or can refer me to it? I get that I
>>> specify a device, and it creates a device.new, and tell rancid about
>>> this new class of device. But could I create a device-myfile1.new and a
>>> device-myfile2.new and will something like this work or is this not what
>>> will be expected?
>>>
>>>
>>>
>>> I hope this is clear.
>>
>>
>> rancid is software so anything is possible but I fear you will need to
>> do a large amount of refactoring first before your idea will work. The
>> files you mention are opened for reading in the script "rancid" on line
>> 2069; the other parser scripts will have equivalent code.
>
> just poll the device twice, eg: two groups or a cname. i do this, using 3.0a,
> to collect regular and xml versions of juniper configs; so the xml collection
> is just a different device type.
I got the sense that the OP can't dynamically poll the devices, that
most likely he only has the XML output that comes to him via some other
process. But maybe I'm reading more into it than is there
Guess we'll have to wait for Richard to clarify his need
--
Alan McKinnon
alan.mckinnon at gmail.com
More information about the Rancid-discuss
mailing list