hasOverlap checks if there is a IPPrefix which is common amongst the two provided slices.
(aips, rips views.Slice[netip.Prefix])
| 758 | // hasOverlap checks if there is a IPPrefix which is common amongst the two |
| 759 | // provided slices. |
| 760 | func hasOverlap(aips, rips views.Slice[netip.Prefix]) bool { |
| 761 | for _, aip := range aips.All() { |
| 762 | if views.SliceContains(rips, aip) { |
| 763 | return true |
| 764 | } |
| 765 | } |
| 766 | return false |
| 767 | } |
| 768 | |
| 769 | // ResetAndStop resets the engine to a clean state (like calling Reconfig |
| 770 | // with all pointers to zero values) and returns the resulting status. |
no test coverage detected
searching dependent graphs…