Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] RARE on Tofino model

Subject: Rare project developers

List archive

Re: [rare-dev] RARE on Tofino model


Chronological Thread 
  • From: mc36 <>
  • To: Alexander Gall <>
  • Cc:
  • Subject: Re: [rare-dev] RARE on Tofino model
  • Date: Fri, 17 Jun 2022 09:35:02 +0200

hi,
well, if we're talking about workarounds, freerouter already had the knob no
autostate to have a down interface in the routing tables...
with this commit
https://github.com/rare-freertr/freeRtr/commit/cc0cb4f563bd5e4da2eeeff6d9c5fa40e3c9f79c
it just passes traffic in such
a case... (before it dropped everything regardless of the autostate
configured or not on down interfaces)
now i see hw counters reported from the dataplane that is, it went out
somewhere on the tofino model....
br,
cs


rare(cfg-if)#no autostate
rare(cfg-if)#do cle co
rare(cfg-if)#do pin 1.1.1.2 vr v1 re 1111 tim 1
pinging 1.1.1.2, src=null, vrf=v1, cnt=1111, len=64, df=false, tim=1, gap=0,
ttl=255, tos=0, sgt=0, flow=0, fill=0, sweep=false, multi=false
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
result=0%, recv/sent/lost/err=0/1111/1111/0, rtt min/avg/max/sum=10/0/0/1343,
ttl min/avg/max=256/0/0, tos min/avg/max=256/0/0
rare(cfg-if)#show interfaces summary
interface state tx rx drop
ethernet0 up 35552 0 0
ethernet1 up 2362 0 0
ethernet2 up 0 0 0
sdn1 up 33330+31186 0+0 0+0

rare(cfg-if)#


On 6/17/22 08:49, Alexander Gall wrote:

Hi

On Tue, 14 Jun 2022 16:28:14 +0200, mc36 <> said:

hmmm... then we should move the sde990 then, for at least for the tofino1
model to work?

There is one obvious workaround: if running on the model, the
forwarder could simply synthesize the oper status by copying the admin
status. That would work at least on the Tofino1 model, which appears
to ignore the actual oper status in any case. I'd have to check
whether that would work for the Tofino2 model as well.




Archive powered by MHonArc 2.6.19.

Top of Page