MCPcopy
hub / github.com/osrg/gobgp / IsWithdraw

Method IsWithdraw

pkg/zebra/zapi.go:2668–2678  ·  view source on GitHub ↗

IsWithdraw is referred in zclient

(version uint8, software Software)

Source from the content-addressed store, hash-verified

2666
2667// IsWithdraw is referred in zclient
2668func (b *IPRouteBody) IsWithdraw(version uint8, software Software) bool {
2669 api := b.API.ToCommon(version, software)
2670 switch api {
2671 case RouteDelete, RedistributeRouteDel, BackwardIPv6RouteDelete:
2672 return true
2673 }
2674 if version == 4 && b.API == zapi4RedistributeIPv6Del {
2675 return true
2676 }
2677 return false
2678}
2679
2680// Ref: zapi_ipv4_route in lib/zclient.c of Quagga1.2.x&FRR3.x(ZAPI3&4)
2681// Ref: zapi_route_encode in lib/zclient.c of FRR4&FRR5&FRR6&FRR7.x&FRR8 (ZAPI5&6)

Callers 1

Calls 1

ToCommonMethod · 0.80

Tested by

no test coverage detected