Skip to content

Commit ff63269

Browse files
authored
fix: Fix bridge domain dump for VPP 20.05 (#1663)
Signed-off-by: Ondrej Fabry <[email protected]>
1 parent f15906b commit ff63269

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

plugins/vpp/l2plugin/vppcalls/vpp2005/bridge_domain_vppcalls.go

-7
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,3 @@ func (h *BridgeDomainVppHandler) DeleteBridgeDomain(bdIdx uint32) error {
5555

5656
return nil
5757
}
58-
59-
func boolToUint(value bool) uint8 {
60-
if value {
61-
return 1
62-
}
63-
return 0
64-
}

plugins/vpp/l2plugin/vppcalls/vpp2005/dump_vppcalls.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ func (h *BridgeDomainVppHandler) DumpBridgeDomains() ([]*vppcalls.BridgeDomainDe
3838
var bds []*vppcalls.BridgeDomainDetails
3939

4040
// dump bridge domains
41-
reqCtx := h.callsChannel.SendMultiRequest(&vpp_l2.BridgeDomainDump{BdID: ^uint32(0)})
41+
reqCtx := h.callsChannel.SendMultiRequest(&vpp_l2.BridgeDomainDump{
42+
BdID: ^uint32(0),
43+
SwIfIndex: ^vpp_l2.InterfaceIndex(0),
44+
})
4245

4346
for {
4447
bdDetails := &vpp_l2.BridgeDomainDetails{}

0 commit comments

Comments
 (0)