[147766] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

RE: BGPmon regex

daemon@ATHENA.MIT.EDU (Brandon Kim)
Wed Dec 21 12:44:11 2011

From: Brandon Kim <brandon.kim@brandontek.com>
To: nanog group <nanog@nanog.org>
Date: Wed, 21 Dec 2011 12:43:15 -0500
In-Reply-To: <CAOMUSPbL2stCYCTRVutOWsJJbvKm=1drnAecTMudNCSK7TSq2A@mail.gmail.com>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org


I'm not familiar with BGPmon but your symptoms sounds like typical programm=
ing issue.

The '\' is stripped probably due to a "Stripslashes" function in the code. =
So by doing double '\\' you kinda=20
trick the code into only doing the first one.

I don't really know of any way around this.=20



> Date: Wed=2C 21 Dec 2011 12:06:14 -0500
> Subject: BGPmon regex
> From: cjp@0x1.net
> To: nanog@nanog.org
>=20
> I'm trying to edit my prefixes' AS path regex in BGPmon=2C and when I add=
 a
> '\s' in the Regular expression field=2C upon save=2C the '\' is stripped.
>=20
> Is this expected behavior?
>=20
> The workaround is to insert a '\\s' instead=2C but one needs to remember =
to
> do this on every edit=2C and I tend to forget which results in panicking =
the
> others on our team with false positives.
>=20
> -cjp
 		 	   		  =

home help back first fref pref prev next nref lref last post