Skip to content

Commit

Permalink
change log (#3042)
Browse files Browse the repository at this point in the history
* change log

* check param for argEbgpMultihopTtl
  • Loading branch information
KillMaster9 authored Jul 17, 2023
1 parent b40c35b commit 494209d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/speaker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func ParseFlags() (*Configuration, error) {
if *argNeighborIPv6Address != "" && net.ParseIP(*argNeighborIPv6Address).To16() == nil {
return nil, fmt.Errorf("invalid neighbor-ipv6-address format: %s", *argNeighborIPv6Address)
}
if *argEbgpMultihopTtl < 1 || *argEbgpMultihopTtl > 255 {
return nil, errors.New("the bgp MultihopTtl must be in the range 1 to 255")
}

config := &Configuration{
AnnounceClusterIP: *argAnnounceClusterIP,
Expand Down
1 change: 0 additions & 1 deletion pkg/speaker/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func isClusterIPService(svc *v1.Service) bool {
len(svc.Spec.ClusterIP) != 0
}

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

0 comments on commit 494209d

Please sign in to comment.