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

Function readAddPathsFromAPIStruct

pkg/server/grpc_server.go:963–971  ·  view source on GitHub ↗
(c *oc.AddPaths, a *api.AddPaths)

Source from the content-addressed store, hash-verified

961}
962
963func readAddPathsFromAPIStruct(c *oc.AddPaths, a *api.AddPaths) {
964 if c == nil || a == nil {
965 return
966 }
967 if a.Config != nil {
968 c.Config.Receive = a.Config.Receive
969 c.Config.SendMax = uint8(a.Config.SendMax)
970 }
971}
972
973func PeerTypeFromApi(a api.PeerType) (oc.PeerType, error) {
974 switch a {

Callers 2

newNeighborFromAPIStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…