Re: notification scripts ?

2023-12-15 Thread Maria Matejka via Bird-users
On 2023-12-14 14:17, Douglas Fischer wrote: Well... If it will be really yang modeled, sounds "not that hard" for an external daemon doing that translation. Not that hard on first sight, anyway with the current state of BGP YANG drafts, we may very easily get forced to divert from the IETF

Re: notification scripts ?

2023-12-14 Thread Douglas Fischer
Well... If it will be really yang modeled, sounds "not that hard" for an external daemon doing that translation. Thinking of it as Kubernetes way, feels an excelente opportunity to a container-based neighbor doing that job. O even maybe some lib to the well stablished telemetry local colector

Re: notification scripts ?

2023-12-14 Thread Maria Matejka via Bird-users
the machine-friendly interface will be a YANG-defined API encoded in CBOR gRPC and gNMI are no-go because of HTTP/2; won't go that direction; if there is such a need, a separate (standalone) daemon may be created to handle translations between BIRD API and gRPC / gNMI but it isn't in our

Re: notification scripts ?

2023-12-14 Thread Douglas Fischer
"also subscribing to various notifications." Are we talking about gRPC? If no, maybe some external tool running in same host of bird could use this "machine-friendly interface" to get it from bird and supply those data as gRPC? gNMI is on the table in some way? -- Douglas Fernando Fischer Engº

Re: notification scripts ?

2023-12-13 Thread Tim Small via Bird-users
FWIW CBOR etc. sounds good to me. There is good support across a wide range of languages. e.g. It would be relatively straightforward to use such an API to provide e.g. systemd notify integration (for systemd monitoring of bird daemon health, including automatic restarts etc.), and also a

Re: notification scripts ?

2023-12-13 Thread Maria Matejka via Bird-users
On 2023-12-13 11:28, Nigel Kukard wrote: On 12/13/23 10:14, Maria Matejka via Bird-users wrote: Hello! On 2023-12-13 10:19, Kees Meijs | Nefos wrote: Hi, On 12-12-2023 17:20, Maria Matejka via Bird-users wrote: We're prototyping a machine-friendly interface which should include, in some

Re: notification scripts ?

2023-12-13 Thread Nigel Kukard via Bird-users
On 12/13/23 10:14, Maria Matejka via Bird-users wrote: Hello! On 2023-12-13 10:19, Kees Meijs | Nefos wrote: Hi, On 12-12-2023 17:20, Maria Matejka via Bird-users wrote: We're prototyping a machine-friendly interface which should include, in some later versions, also subscribing to various

Re: notification scripts ?

2023-12-13 Thread Maria Matejka via Bird-users
Hello! On 2023-12-13 10:19, Kees Meijs | Nefos wrote: Hi, On 12-12-2023 17:20, Maria Matejka via Bird-users wrote: We're prototyping a machine-friendly interface which should include, in some later versions, also subscribing to various notifications. Hear hear! Probably asked before, but

Re: notification scripts ?

2023-12-12 Thread Alexander Zubkov via Bird-users
Hello, Depending on the type of events needed, besides logs or active monitoring with birdc, one can also do things like exporting routes to some kernel table and monitoring them using netlink. Or setup a "monitoring" bgp (or other protocol) sessions with something like exabgp. Regards,

Re: notification scripts ?

2023-12-12 Thread Maria Matejka via Bird-users
Hello, there is no such mechanism in current BIRD, your best option is probably hooking on logs and parsing them. We're prototyping a machine-friendly interface which should include, in some later versions, also subscribing to various notifications. Maria On 2023-12-12 16:19, Jérôme Loyet

notification scripts ?

2023-12-12 Thread Jérôme Loyet
Hello, i'm using bird as BGP/BFD client and I'd like to exec some command when something happens in bird. Like up/down script or something like that. Is there something close to that or another notification mechanism that exists ? Thanks ++ jerome