提交 a2d844ef 编写于 作者: J Jose Donizetti 提交者: Medya Ghazizadeh

Add kvm network name validation

closes for #3581
上级 eba3879e
......@@ -108,6 +108,11 @@ func (d *Driver) ensureNetwork() error {
// createNetwork is called during creation of the VM only (and not on start)
func (d *Driver) createNetwork() error {
if d.Network == defaultPrivateNetworkName {
return fmt.Errorf("KVM network can't be named %s. This is the name of the private network created by minikube", defaultPrivateNetworkName)
}
conn, err := getConnection()
if err != nil {
return errors.Wrap(err, "getting libvirt connection")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册