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

Function readRouteSelectionOptionsFromAPIStruct

pkg/server/grpc_server.go:906–918  ·  view source on GitHub ↗
(c *oc.RouteSelectionOptions, a *api.RouteSelectionOptions)

Source from the content-addressed store, hash-verified

904}
905
906func readRouteSelectionOptionsFromAPIStruct(c *oc.RouteSelectionOptions, a *api.RouteSelectionOptions) {
907 if c == nil || a == nil {
908 return
909 }
910 if a.Config != nil {
911 c.Config.AlwaysCompareMed = a.Config.AlwaysCompareMed
912 c.Config.IgnoreAsPathLength = a.Config.IgnoreAsPathLength
913 c.Config.ExternalCompareRouterId = a.Config.ExternalCompareRouterId
914 c.Config.AdvertiseInactiveRoutes = a.Config.AdvertiseInactiveRoutes
915 c.Config.EnableAigp = a.Config.EnableAigp
916 c.Config.IgnoreNextHopIgpMetric = a.Config.IgnoreNextHopIgpMetric
917 }
918}
919
920func readUseMultiplePathsFromAPIStruct(c *oc.UseMultiplePaths, a *api.UseMultiplePaths) {
921 if c == nil || a == nil {

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…