Skip to content

Commit 494209d

Browse files
authored
change log (#3042)
* change log * check param for argEbgpMultihopTtl
1 parent b40c35b commit 494209d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/speaker/config.go

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ func ParseFlags() (*Configuration, error) {
110110
if *argNeighborIPv6Address != "" && net.ParseIP(*argNeighborIPv6Address).To16() == nil {
111111
return nil, fmt.Errorf("invalid neighbor-ipv6-address format: %s", *argNeighborIPv6Address)
112112
}
113+
if *argEbgpMultihopTtl < 1 || *argEbgpMultihopTtl > 255 {
114+
return nil, errors.New("the bgp MultihopTtl must be in the range 1 to 255")
115+
}
113116

114117
config := &Configuration{
115118
AnnounceClusterIP: *argAnnounceClusterIP,

pkg/speaker/subnet.go

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ func isClusterIPService(svc *v1.Service) bool {
4444
len(svc.Spec.ClusterIP) != 0
4545
}
4646

47-
// TODO: ipv4 only, need ipv6/dual-stack support later
4847
func (c *Controller) syncSubnetRoutes() {
4948
maskMap := map[string]int{kubeovnv1.ProtocolIPv4: 32, kubeovnv1.ProtocolIPv6: 128}
5049
bgpExpected, bgpExists := make(map[string][]string), make(map[string][]string)

0 commit comments

Comments
 (0)