(c *oc.RouteSelectionOptions, a *api.RouteSelectionOptions)
| 904 | } |
| 905 | |
| 906 | func 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 | |
| 920 | func readUseMultiplePathsFromAPIStruct(c *oc.UseMultiplePaths, a *api.UseMultiplePaths) { |
| 921 | if c == nil || a == nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…