Documentation ¶
Index ¶
- Constants
- func ValidVNID(vnid uint32) error
- func ValidateClusterNetwork(clusterNet *networkapi.ClusterNetwork) field.ErrorList
- func ValidateClusterNetworkUpdate(obj *networkapi.ClusterNetwork, old *networkapi.ClusterNetwork) field.ErrorList
- func ValidateEgressNetworkPolicy(policy *networkapi.EgressNetworkPolicy) field.ErrorList
- func ValidateEgressNetworkPolicyUpdate(obj *networkapi.EgressNetworkPolicy, old *networkapi.EgressNetworkPolicy) field.ErrorList
- func ValidateHostSubnet(hs *networkapi.HostSubnet) field.ErrorList
- func ValidateHostSubnetUpdate(obj *networkapi.HostSubnet, old *networkapi.HostSubnet) field.ErrorList
- func ValidateNetNamespace(netnamespace *networkapi.NetNamespace) field.ErrorList
- func ValidateNetNamespaceUpdate(obj *networkapi.NetNamespace, old *networkapi.NetNamespace) field.ErrorList
Constants ¶
View Source
const ( // Maximum VXLAN Virtual Network Identifier(VNID) as per RFC#7348 MaxVNID = uint32((1 << 24) - 1) // VNID: 1 to 9 are internally reserved for any special cases in the future MinVNID = uint32(10) // VNID: 0 reserved for default namespace and can reach any network in the cluster GlobalVNID = uint32(0) )
Variables ¶
This section is empty.
Functions ¶
func ValidateClusterNetwork ¶
func ValidateClusterNetwork(clusterNet *networkapi.ClusterNetwork) field.ErrorList
ValidateClusterNetwork tests if required fields in the ClusterNetwork are set, and ensures that the "default" ClusterNetwork can only be set to the correct values
func ValidateClusterNetworkUpdate ¶
func ValidateClusterNetworkUpdate(obj *networkapi.ClusterNetwork, old *networkapi.ClusterNetwork) field.ErrorList
func ValidateEgressNetworkPolicy ¶
func ValidateEgressNetworkPolicy(policy *networkapi.EgressNetworkPolicy) field.ErrorList
ValidateEgressNetworkPolicy tests if required fields in the EgressNetworkPolicy are set.
func ValidateEgressNetworkPolicyUpdate ¶
func ValidateEgressNetworkPolicyUpdate(obj *networkapi.EgressNetworkPolicy, old *networkapi.EgressNetworkPolicy) field.ErrorList
func ValidateHostSubnet ¶
func ValidateHostSubnet(hs *networkapi.HostSubnet) field.ErrorList
func ValidateHostSubnetUpdate ¶
func ValidateHostSubnetUpdate(obj *networkapi.HostSubnet, old *networkapi.HostSubnet) field.ErrorList
func ValidateNetNamespace ¶
func ValidateNetNamespace(netnamespace *networkapi.NetNamespace) field.ErrorList
ValidateNetNamespace tests fields for a greater-than-zero NetID
func ValidateNetNamespaceUpdate ¶
func ValidateNetNamespaceUpdate(obj *networkapi.NetNamespace, old *networkapi.NetNamespace) field.ErrorList
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.