Documentation ¶
Index ¶
- Constants
- type CabinetNetworkField
- type CabinetNetworkName
- type HardwareCabinetCheck
- type HardwareCabinetNetworkSubCheck
- type HardwareChassisBmcCheck
- type HardwareCheck
- type NetworkId
- type NetworkIpRangeCheck
- type NetworkName
- type NetworkSubnet
- type NetworkSubnetCheck
- type RequiredNetworkCheck
- type SwitchIpCheck
Constants ¶
View Source
const ( UniqueAlias common.ValidationCheck = "unique-alias" UniqueNid common.ValidationCheck = "unique-nid" HardwareNodeCheck common.ValidationCheck = "hardware-node" HardwareMgmtSwitchConnectorCheck common.ValidationCheck = "hardware-mgmt-switch-connector" HardwareMgmtSwitchCheck common.ValidationCheck = "hardware-mgmt-switch" SwitchBrandCheck common.ValidationCheck = "switch-brand" SwitchCredentialsCheck common.ValidationCheck = "switch-credentials" SwitchVendorCheck common.ValidationCheck = "switch-vendor" SwitchConnectorNodeNicsCheck common.ValidationCheck = "switch-connector-node-nics" SwitchConnectorCheck common.ValidationCheck = "switch-connector" SwitchSNMPPropertiesCheck common.ValidationCheck = "switch-snmp-properties" SwitchIpAddressCheck common.ValidationCheck = "switch-ip-address" HardwareMgmtHLSwitchCheck common.ValidationCheck = "hardware-mgmt-hl-switch" HardwareRouterBMC common.ValidationCheck = "hardware-router-bmc" CabinetNetworkCheck common.ValidationCheck = "hardware-cabinet-network" )
View Source
const ( CidrConsistent common.ValidationCheck = "cidr-consistent" CidrValid common.ValidationCheck = "cidr-valid" CidrContainsCidr common.ValidationCheck = "cidr-contains-other-cidr" CidrContainsIp common.ValidationCheck = "cidr-contains-ip" IpStartAndEnd common.ValidationCheck = "ip-start-and-end" VlanConflict common.ValidationCheck = "vlan-conflict" NameConflict common.ValidationCheck = "name-conflict" )
View Source
const (
SwitchIPCheck common.ValidationCheck = "switch-has-ips"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CabinetNetworkField ¶ added in v0.3.0
type CabinetNetworkField string
const ( CIDR CabinetNetworkField = "CIDR" Gateway CabinetNetworkField = "Gateway" VLan CabinetNetworkField = "VLan" )
func (CabinetNetworkField) String ¶ added in v0.3.0
func (n CabinetNetworkField) String() string
type CabinetNetworkName ¶ added in v0.3.0
type CabinetNetworkName string
func (CabinetNetworkName) String ¶ added in v0.3.0
func (n CabinetNetworkName) String() string
type HardwareCabinetCheck ¶
type HardwareCabinetCheck struct {
// contains filtered or unexported fields
}
func NewHardwareCabinetCheck ¶
func NewHardwareCabinetCheck(hardware map[string]sls_client.Hardware) *HardwareCabinetCheck
func (*HardwareCabinetCheck) Validate ¶
func (c *HardwareCabinetCheck) Validate(results *common.ValidationResults)
type HardwareCabinetNetworkSubCheck ¶ added in v0.3.0
type HardwareCabinetNetworkSubCheck struct { HmnRvr map[string]sls_client.NetworkIpv4Subnet HmnMtn map[string]sls_client.NetworkIpv4Subnet NmnRvr map[string]sls_client.NetworkIpv4Subnet NmnMtn map[string]sls_client.NetworkIpv4Subnet }
func NewHardwareCabinetNetworkSubCheck ¶ added in v0.3.0
func NewHardwareCabinetNetworkSubCheck(networks map[string]sls_client.Network) *HardwareCabinetNetworkSubCheck
func (*HardwareCabinetNetworkSubCheck) Validate ¶ added in v0.3.0
func (c *HardwareCabinetNetworkSubCheck) Validate( results *common.ValidationResults, hardware *sls_client.Hardware, props map[string]interface{})
type HardwareChassisBmcCheck ¶ added in v0.3.0
type HardwareChassisBmcCheck struct {
// contains filtered or unexported fields
}
func NewHardwareChassisBmcCheck ¶ added in v0.3.0
func NewHardwareChassisBmcCheck(hardware map[string]sls_client.Hardware, typeToHardware map[string][]*sls_client.Hardware) *HardwareChassisBmcCheck
func (*HardwareChassisBmcCheck) Validate ¶ added in v0.3.0
func (c *HardwareChassisBmcCheck) Validate(results *common.ValidationResults)
type HardwareCheck ¶
type HardwareCheck struct {
// contains filtered or unexported fields
}
func NewHardwareCheck ¶
func NewHardwareCheck( hardware map[string]sls_client.Hardware, typeToHardware map[string][]*sls_client.Hardware, parentHasChildren map[string]struct{}, networks map[string]sls_client.Network, validRoles []string, validSubRoles []string) *HardwareCheck
func (*HardwareCheck) Validate ¶
func (c *HardwareCheck) Validate(results *common.ValidationResults)
type NetworkIpRangeCheck ¶
type NetworkIpRangeCheck struct {
// contains filtered or unexported fields
}
func NewNetworkIpRangeCheck ¶
func NewNetworkIpRangeCheck(slsStateExtended *common.SlsStateExtended, k8sPodsCidr string, k8sServicesCidr string) *NetworkIpRangeCheck
func (*NetworkIpRangeCheck) Validate ¶
func (c *NetworkIpRangeCheck) Validate(results *common.ValidationResults)
type NetworkName ¶ added in v0.3.0
type NetworkName string
const ( HMN_MTN NetworkName = "HMN_MTN" HMN_RVR NetworkName = "HMN_RVR" NMN_MTN NetworkName = "NMN_MTN" NMN_RVR NetworkName = "NMN_RVR" HMN NetworkName = "HMN" NMN NetworkName = "NMN" )
func (NetworkName) String ¶ added in v0.3.0
func (n NetworkName) String() string
type NetworkSubnet ¶ added in v0.2.0
type NetworkSubnetCheck ¶ added in v0.2.0
type NetworkSubnetCheck struct {
// contains filtered or unexported fields
}
func NewNetworkSubnetCheck ¶ added in v0.2.0
func NewNetworkSubnetCheck(slsStateExtended *common.SlsStateExtended) *NetworkSubnetCheck
func (*NetworkSubnetCheck) Validate ¶ added in v0.2.0
func (c *NetworkSubnetCheck) Validate(results *common.ValidationResults)
type RequiredNetworkCheck ¶
type RequiredNetworkCheck struct {
// contains filtered or unexported fields
}
func NewRequiedNetworkCheck ¶
func NewRequiedNetworkCheck(networks map[string]sls_client.Network) *RequiredNetworkCheck
func (*RequiredNetworkCheck) Validate ¶
func (n *RequiredNetworkCheck) Validate(results *common.ValidationResults)
type SwitchIpCheck ¶
type SwitchIpCheck struct {
// contains filtered or unexported fields
}
func NewSwitchIpCheck ¶
func NewSwitchIpCheck(slsStateExtended *common.SlsStateExtended) *SwitchIpCheck
func (*SwitchIpCheck) Validate ¶
func (c *SwitchIpCheck) Validate(results *common.ValidationResults)
Click to show internal directories.
Click to hide internal directories.