Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions pkg/hhfctl/inspect/bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ import (
)

type BGPIn struct {
Switches []string
Strict bool
GatewayStrict bool // TODO remove after gateway is implemented
Switches []string
Strict bool
}

type BGPOut struct {
Expand Down Expand Up @@ -140,10 +139,6 @@ func BGP(ctx context.Context, kube kclient.Reader, in BGPIn) (*BGPOut, error) {
out.Errs = append(out.Errs, fmt.Errorf("switch %s: vrf %s: unexpected neighbor %q", sw.Name, vrf, name)) //nolint:goerr113
}

if !in.GatewayStrict && neighbor.Type == apiutil.BGPNeighborTypeGateway {
continue
}

if neighbor.SessionState != v1beta1.BGPNeighborSessionStateEstablished {
out.Errs = append(out.Errs, fmt.Errorf("switch %s: vrf %s: neighbor %q is not established", sw.Name, vrf, name)) //nolint:goerr113
}
Expand Down