Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] Capability detection added

Subject: Rare project developers

List archive

Re: [rare-dev] Capability detection added


Chronological Thread 
  • From: mc36 <>
  • To: , Frédéric LOUI <>
  • Subject: Re: [rare-dev] Capability detection added
  • Date: Fri, 4 Feb 2022 12:43:04 +0100

hi,

On 2/4/22 12:36, Fr d ric LOUI wrote:

adding additional logic to keep track
of the already programmed entries is obviously falls to the additional
complexity category, and does not pays
off, as if you try to add an entry to an already full table, it'll fail and
you'll get a grpc response accordingly.
No additional logic is planned.
Just get the GRPC response and notify the control plane the entry fails to be
programmed.

good!

we have the dataplane_say message that bfrt should emit in this case....

This is what I planned to use for freeRtr notification. For now this is not
implemented, is it ?
yesss, in freerouter, it is there....


> Could you send me the expected dataplane says message format
> in case of entry programmation failure from the dataplane that I sent to
freeRtr ?

as you can see here:
https://github.com/mc36/freeRouter/blob/e24547fe9ec8057134c551ad23b312bb6bb8d993/src/net/freertr/serv/servP4lang.java#L2032
it's a free-text that logged as is, without any further processing...
one approach could be that in the exception catcher, you have the
prepared entry and the grpc response right at hand, you can send
out.println("dataplane-say entry "+entry.toString()+" failed to program with
"+exception.toString());
but it's completely up to you to choose the format...

regards,
cs



Archive powered by MHonArc 2.6.19.

Top of Page