func (o *OpenShift) HasCustomVXLANPort() (bool, error) {
	networkCR, err := o.Operator.Networks().Get(context.TODO(), "cluster", meta.GetOptions{})
	if err != nil {
		return false, err
	}
	if networkCR.Spec.DefaultNetwork.OVNKubernetesConfig != nil &&
		networkCR.Spec.DefaultNetwork.OVNKubernetesConfig.HybridOverlayConfig != nil &&
		networkCR.Spec.DefaultNetwork.OVNKubernetesConfig.HybridOverlayConfig.HybridOverlayVXLANPort != nil {
		return true, nil
	}
	return false, nil
}
// HasCustomVXLANPort tells if the custom VXLAN port is set or not in the cluster
HasCustomVXLANPort tells if the custom VXLAN port is set or not in the cluster
// HasCustomVXLANPort tells if the custom VXLAN port is set or not in the cluster
func (o *OpenShift) HasCustomVXLANPort() (bool, error) {
	networkCR, err := o.Operator.Networks().Get(context.TODO(), "cluster", meta.GetOptions{})
	if err != nil {
		return false, err
	}
	if networkCR.Spec.DefaultNetwork.OVNKubernetesConfig != nil &&
		networkCR.Spec.DefaultNetwork.OVNKubernetesConfig.HybridOverlayConfig != nil &&
		networkCR.Spec.DefaultNetwork.OVNKubernetesConfig.HybridOverlayConfig.HybridOverlayVXLANPort != nil {
		return true, nil
	}
	return false, nil
}
func ( o * OpenShift ) HasCustomVXLANPort ( ) ( bool , error ) { networkCR , err := o . Operator . Networks ( ) . Get ( context . TODO ( ) , " " , meta . GetOptions { } ) if err != nil { return false , err } if networkCR . Spec . DefaultNetwork . OVNKubernetesConfig != nil && networkCR . Spec . DefaultNetwork . OVNKubernetesConfig . HybridOverlayConfig != nil && networkCR . Spec . DefaultNetwork . OVNKubernetesConfig . HybridOverlayConfig . HybridOverlayVXLANPort != nil { return true , nil } return false , nil }
HasCustomVXLANPort tells if the custom VXLAN port is set or not in the cluster
HasCustomVXLANPort tells if the custom VXLAN port is set or not in the cluster