CLOSE, my misunderstanding ... default go value BdID and SwIfIndex is zero.
The default value at the VPP side is 4294967295, so the was no successful
result to reply. I have no idea how long is this behavior is used. Old
golang examples (from 2018) do not mention this behavior.

Regards Petr B.

po 21. 3. 2022 v 15:08 odesílatel Petr Boltík via lists.fd.io <petr.boltik=
gmail....@lists.fd.io> napsal:

> News ... I can successfully use python3 api to call bridge_domain_dump
> (vpp respond bridge domain list correctly). Any Idea where to start? (I can
> successfully use govpp for other functions). Many thanks for any help you
> can provide.
> Regards Petr B.
> s
>
>
> so 19. 3. 2022 v 9:23 odesílatel Petr Boltík via lists.fd.io <petr.boltik=
> gmail....@lists.fd.io> napsal:
>
>> Hi,
>>
>> I'm not able to perform govpp API "BridgeDomainDump" request. The reply
>> is always empty. Connection to API works. I can successfully create
>> bridgeDomain, remove, etc. Only BridgeDomainDump not working for me. What
>> am I have missing?
>>
>> Many thanks
>> Regards Petr
>>
>>
>>     reqCtx := ch.SendMultiRequest(&l2.BridgeDomainDump{
>>>       BdID: 19,
>>>    })
>>>    for {
>>>       msg := &l2.BridgeDomainDetails{}
>>>       stop, err := reqCtx.ReceiveReply(msg)
>>>       if stop {
>>>          break
>>>       }
>>>       if err != nil {
>>>          fmt.Println(err, "dumping domain")
>>>       }
>>>       n++
>>>       bridgeDomains = append(bridgeDomains, *msg)
>>>    }
>>>    fmt.Println(bridgeDomains)
>>> }
>>>
>>>
>>
>> ~# vppctl show bridge-domain
>>>   BD-ID   Index   BSN  Age(min)  Learning  U-Forwrd   UU-Flood
>>> Flooding  ARP-Term  arp-ufwd Learn-co Learn-li   BVI-Intf
>>>    19       1      0     off        on        on       flood        on
>>>     off       off        0    16777216     N/A
>>>
>>
>> tested on latest https://gerrit.fd.io/r/govpp.git + vpp 21.10+22.06
>>
>>
>>
>>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21087): https://lists.fd.io/g/vpp-dev/message/21087
Mute This Topic: https://lists.fd.io/mt/89885327/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to