diff --git a/pkg/hhfctl/inspect/bgp.go b/pkg/hhfctl/inspect/bgp.go index c0a11f33..17732144 100644 --- a/pkg/hhfctl/inspect/bgp.go +++ b/pkg/hhfctl/inspect/bgp.go @@ -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 { @@ -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 }