File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ func ParseFlags() (*Configuration, error) {
110
110
if * argNeighborIPv6Address != "" && net .ParseIP (* argNeighborIPv6Address ).To16 () == nil {
111
111
return nil , fmt .Errorf ("invalid neighbor-ipv6-address format: %s" , * argNeighborIPv6Address )
112
112
}
113
+ if * argEbgpMultihopTtl < 1 || * argEbgpMultihopTtl > 255 {
114
+ return nil , errors .New ("the bgp MultihopTtl must be in the range 1 to 255" )
115
+ }
113
116
114
117
config := & Configuration {
115
118
AnnounceClusterIP : * argAnnounceClusterIP ,
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ func isClusterIPService(svc *v1.Service) bool {
44
44
len (svc .Spec .ClusterIP ) != 0
45
45
}
46
46
47
- // TODO: ipv4 only, need ipv6/dual-stack support later
48
47
func (c * Controller ) syncSubnetRoutes () {
49
48
maskMap := map [string ]int {kubeovnv1 .ProtocolIPv4 : 32 , kubeovnv1 .ProtocolIPv6 : 128 }
50
49
bgpExpected , bgpExists := make (map [string ][]string ), make (map [string ][]string )
You can’t perform that action at this time.
0 commit comments