diff --git a/examples/vm-template-windows2012r2.yaml b/examples/vm-template-windows2012r2.yaml index 4a600eb709ec..8de0c7ec9373 100644 --- a/examples/vm-template-windows2012r2.yaml +++ b/examples/vm-template-windows2012r2.yaml @@ -50,7 +50,7 @@ objects: bus: virtio name: disk0 interfaces: - - bridge: {} + - masquerade: {} model: e1000 name: default features: diff --git a/examples/vmi-multus-multiple-net.yaml b/examples/vmi-multus-multiple-net.yaml index 441d978f0a09..90458d1ffdc1 100644 --- a/examples/vmi-multus-multiple-net.yaml +++ b/examples/vmi-multus-multiple-net.yaml @@ -16,7 +16,7 @@ spec: bus: virtio name: cloudinitdisk interfaces: - - bridge: {} + - masquerade: {} name: default - bridge: {} name: ptp diff --git a/examples/vmi-sriov.yaml b/examples/vmi-sriov.yaml index 785198f4c894..3c296afdd980 100644 --- a/examples/vmi-sriov.yaml +++ b/examples/vmi-sriov.yaml @@ -16,7 +16,7 @@ spec: bus: virtio name: cloudinitdisk interfaces: - - bridge: {} + - masquerade: {} name: default - name: sriov-net sriov: {} diff --git a/examples/vmi-windows.yaml b/examples/vmi-windows.yaml index 9176345a2e92..7e72bc712603 100644 --- a/examples/vmi-windows.yaml +++ b/examples/vmi-windows.yaml @@ -25,7 +25,7 @@ spec: bus: sata name: pvcdisk interfaces: - - bridge: {} + - masquerade: {} model: e1000 name: default features: diff --git a/tools/vms-generator/utils/utils.go b/tools/vms-generator/utils/utils.go index 6c555623d5f0..c1f834a7b2fb 100644 --- a/tools/vms-generator/utils/utils.go +++ b/tools/vms-generator/utils/utils.go @@ -369,7 +369,7 @@ func GetVMISRIOV() *v1.VirtualMachineInstance { initFedora(&vm.Spec) addNoCloudDiskWitUserData(&vm.Spec, "#!/bin/bash\necho \"fedora\" |passwd fedora --stdin\ndhclient eth1\n") - vm.Spec.Domain.Devices.Interfaces = []v1.Interface{{Name: "default", InterfaceBindingMethod: v1.InterfaceBindingMethod{Bridge: &v1.InterfaceBridge{}}}, + vm.Spec.Domain.Devices.Interfaces = []v1.Interface{{Name: "default", InterfaceBindingMethod: v1.InterfaceBindingMethod{Masquerade: &v1.InterfaceMasquerade{}}}, {Name: "sriov-net", InterfaceBindingMethod: v1.InterfaceBindingMethod{SRIOV: &v1.InterfaceSRIOV{}}}} return vm @@ -394,7 +394,7 @@ func GetVMIMultusMultipleNet() *v1.VirtualMachineInstance { initFedora(&vm.Spec) addNoCloudDiskWitUserData(&vm.Spec, "#!/bin/bash\necho \"fedora\" |passwd fedora --stdin\ndhclient eth1\n") - vm.Spec.Domain.Devices.Interfaces = []v1.Interface{{Name: "default", InterfaceBindingMethod: v1.InterfaceBindingMethod{Bridge: &v1.InterfaceBridge{}}}, + vm.Spec.Domain.Devices.Interfaces = []v1.Interface{{Name: "default", InterfaceBindingMethod: v1.InterfaceBindingMethod{Masquerade: &v1.InterfaceMasquerade{}}}, {Name: "ptp", InterfaceBindingMethod: v1.InterfaceBindingMethod{Bridge: &v1.InterfaceBridge{}}}} return vm @@ -509,7 +509,7 @@ func GetVMIWindows() *v1.VirtualMachineInstance { }, }, Devices: v1.Devices{ - Interfaces: []v1.Interface{*v1.DefaultBridgeNetworkInterface()}, + Interfaces: []v1.Interface{*v1.DefaultMasqueradeNetworkInterface()}, }, }, Networks: []v1.Network{*v1.DefaultPodNetwork()},