Documentation ¶
Index ¶
- func GetAttachedSubnets(ctx context.Context, kube client.Reader, server string) (map[string]ServerAttachment, error)
- func GetBGPNeighbors(ctx context.Context, kube client.Reader, fabCfg *meta.FabricConfig, ...) (map[string]map[string]BGPNeighborStatus, error)
- func GetLLDPNeighbors(ctx context.Context, kube client.Reader, sw *wiringapi.Switch) (map[string]LLDPNeighborStatus, error)
- func GetReachableFrom(ctx context.Context, kube client.Reader, vpcName string) (map[string]*ReachableFromSubnet, error)
- func IsExternalAttached(ctx context.Context, kube client.Reader, external string) (bool, error)
- func IsExternalIPReachable(ctx context.Context, kube client.Reader, source, destIP string) (bool, error)
- func IsExternalSubnetReachable(ctx context.Context, kube client.Reader, sourceServer, destSubnet string) (bool, error)
- func IsServerReachable(ctx context.Context, kube client.Reader, sourceServer, destServer string) (bool, error)
- func IsStaticExternalIPReachable(ctx context.Context, kube client.Reader, source, destIP string) (bool, error)
- func IsSubnetReachable(ctx context.Context, kube client.Reader, source, dest string) (bool, error)
- func IsSubnetReachableBetweenVPCs(ctx context.Context, kube client.Reader, ...) (bool, error)
- func IsSubnetReachableWithinVPC(ctx context.Context, kube client.Reader, vpcName, source, dest string) (bool, error)
- func IsSubnetReachableWithinVPCObj(vpc *vpcapi.VPC, source, dest string) (bool, error)
- func IsVPCPeeringRemoteNotEmpty(ctx context.Context, kube client.Reader, vpcPeering *vpcapi.VPCPeering) (bool, error)
- type BGPNeighborStatus
- type BGPNeighborType
- type LLDPNeighbor
- type LLDPNeighborStatus
- type LLDPNeighborType
- type ReachableFromSubnet
- type ReachableSubnet
- type ServerAttachment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAttachedSubnets ¶
func GetBGPNeighbors ¶ added in v0.59.0
func GetLLDPNeighbors ¶ added in v0.59.0
func GetReachableFrom ¶ added in v0.40.2
func IsExternalAttached ¶ added in v0.40.2
func IsExternalIPReachable ¶ added in v0.40.2
func IsExternalSubnetReachable ¶
func IsExternalSubnetReachable(ctx context.Context, kube client.Reader, sourceServer, destSubnet string) (bool, error)
TODO check if allowed prefix contains destSubnet
func IsServerReachable ¶
func IsStaticExternalIPReachable ¶ added in v0.40.2
func IsSubnetReachable ¶
func IsSubnetReachableWithinVPCObj ¶ added in v0.40.2
func IsVPCPeeringRemoteNotEmpty ¶ added in v0.40.2
Types ¶
type BGPNeighborStatus ¶ added in v0.59.0
type BGPNeighborStatus struct { RemoteName string `json:"remoteName,omitempty"` Type BGPNeighborType `json:"type,omitempty"` Expected bool `json:"expected,omitempty"` ConnectionName string `json:"connectionName,omitempty"` ConnectionType string `json:"connectionType,omitempty"` Port string `json:"port,omitempty"` agentapi.SwitchStateBGPNeighbor `json:",inline"` }
type BGPNeighborType ¶ added in v0.59.0
type BGPNeighborType string
const ( BGPNeighborTypeFabric BGPNeighborType = "fabric" BGPNeighborTypeMCLAG BGPNeighborType = "mclag" BGPNeighborTypeExternal BGPNeighborType = "external" )
type LLDPNeighbor ¶ added in v0.59.0
type LLDPNeighborStatus ¶ added in v0.59.0
type LLDPNeighborStatus struct { ConnectionName string `json:"connectionName,omitempty"` ConnectionType string `json:"connectionType,omitempty"` Type LLDPNeighborType `json:"type,omitempty"` Expected LLDPNeighbor `json:"expected,omitempty"` Actual LLDPNeighbor `json:"actual,omitempty"` }
type LLDPNeighborType ¶ added in v0.59.0
type LLDPNeighborType string
const ( LLDPNeighborTypeFabric LLDPNeighborType = "fabric" LLDPNeighborTypeExternal LLDPNeighborType = "external" LLDPNeighborTypeServer LLDPNeighborType = "server" )
type ReachableFromSubnet ¶ added in v0.40.2
type ReachableFromSubnet struct { WithinSameSubnet *ReachableSubnet `json:"withinSameSubnet,omitempty"` SameVPCSubnets []ReachableSubnet `json:"sameVPCSubnets,omitempty"` OtherVPCSubnets map[string][]ReachableSubnet `json:"otherVPCSubnets,omitempty"` // vpc -> []subnets ExternalPrefixes map[string][]string `json:"externalPrefixes,omitempty"` // external -> []prefixes }
type ReachableSubnet ¶ added in v0.40.2
type ServerAttachment ¶
Click to show internal directories.
Click to hide internal directories.