(c *oc.UseMultiplePaths, a *api.UseMultiplePaths)
| 918 | } |
| 919 | |
| 920 | func readUseMultiplePathsFromAPIStruct(c *oc.UseMultiplePaths, a *api.UseMultiplePaths) { |
| 921 | if c == nil || a == nil { |
| 922 | return |
| 923 | } |
| 924 | if a.Config != nil { |
| 925 | c.Config.Enabled = a.Config.Enabled |
| 926 | } |
| 927 | if a.Ebgp != nil && a.Ebgp.Config != nil { |
| 928 | c.Ebgp = oc.Ebgp{ |
| 929 | Config: oc.EbgpConfig{ |
| 930 | AllowMultipleAs: a.Ebgp.Config.AllowMultipleAsn, |
| 931 | MaximumPaths: a.Ebgp.Config.MaximumPaths, |
| 932 | }, |
| 933 | } |
| 934 | } |
| 935 | if a.Ibgp != nil && a.Ibgp.Config != nil { |
| 936 | c.Ibgp = oc.Ibgp{ |
| 937 | Config: oc.IbgpConfig{ |
| 938 | MaximumPaths: a.Ibgp.Config.MaximumPaths, |
| 939 | }, |
| 940 | } |
| 941 | } |
| 942 | } |
| 943 | |
| 944 | func readRouteTargetMembershipFromAPIStruct(c *oc.RouteTargetMembership, a *api.RouteTargetMembership) { |
| 945 | if c == nil || a == nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…