[rancid] CIDR Ranges in .clogit file

heasley heas at shrubbery.net
Mon Jun 26 18:56:42 UTC 2017


Mon, Jun 26, 2017 at 06:39:51PM +0000, Remsik,Robert:
> Nuts, that's what I thought.  Thank you for confirmation.
> 
> 
> Can I ask for that as a feature request to be able to parse/use CIDR someday?

you don't really want cidr either, given your example.  ie: what cidr prefix
is x.y.z.2-16?  none that i know of.

maybe a regex would be helpful?

> 
> 
> 
> Robert Remsik
> 
> ACNS
> 
> Desk Phone: 970 491 7120
> 
> Robert.Remsik at colostate.edu
> 
> ________________________________
> From: heasley <heas at shrubbery.net>
> Sent: Monday, June 26, 2017 12:34:34 PM
> To: Remsik,Robert
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] CIDR Ranges in .clogit file
> 
> Mon, Jun 26, 2017 at 04:38:46PM +0000, Remsik,Robert:
> > Hello!
> >
> >
> > I'm trying to setup entries in the .clogit file per credentials aligned with CIDR ranges.  Can rancid handle CIDR ranges?  It looks like RANCID just does globbing, but I'm having trouble setting the up the globs properly.
> 
> globs only.
> 
> > I'm using the globtester ( http://www.globtester.com/#p=eJwz1DPSM9aLNtA1NIutMYRxLGPBBABh%2BwbV&r=eJzNldEKgjAUhl9leFVQ6o5aU%2BfeRc1CEBUnUT19hhkES6nYYTe7OMP%2F%2BzzCLz%2BUZ5JXqZSJZQlqg%2B3ZlDvDVPC3Ky7btCayv1ZFYuVN1XQR6U7ZisGGUMaGI2TrmBybut%2FK8lZEw8CG9hJPqcCdR4TgWSe0ALwJ8HvQ6Dam6FD0zVcMzFfcma%2B4N1%2BRma8Yald8Fp67qP9ZktJvim0mB1Rv%2B%2B%2FaZ3jKvtTIU5afRp6yyTTylLWkjwfIvBCZR11sIPYXpNgrBeyVgo8NDNBaZun519%2FgDnPzhow%3D& ) to help debug the syntax.  For example the x.y.z.2-16 use {abc creds} and x.y.z.17-254 use {def creds}.
> >
> 
> https://www.tcl.tk/man/tcl/TclCmd/glob.htm
> 
> [] matches a single character
> 
> [2-9] 2 thru 9
> [2-17] 2-1 (no idea if that works) or 7



More information about the Rancid-discuss mailing list