Skip to content

Commit

Permalink
Merge pull request kubevirt#2607 from alonSadan/change_pod+bridge_exa…
Browse files Browse the repository at this point in the history
…mples

change pod+bridge examples to pod+masquerade
  • Loading branch information
slintes authored Aug 27, 2019
2 parents d0d5254 + 6c15327 commit d472c41
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/vm-template-windows2012r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ objects:
bus: virtio
name: disk0
interfaces:
- bridge: {}
- masquerade: {}
model: e1000
name: default
features:
Expand Down
2 changes: 1 addition & 1 deletion examples/vmi-multus-multiple-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
bus: virtio
name: cloudinitdisk
interfaces:
- bridge: {}
- masquerade: {}
name: default
- bridge: {}
name: ptp
Expand Down
2 changes: 1 addition & 1 deletion examples/vmi-sriov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
bus: virtio
name: cloudinitdisk
interfaces:
- bridge: {}
- masquerade: {}
name: default
- name: sriov-net
sriov: {}
Expand Down
2 changes: 1 addition & 1 deletion examples/vmi-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
bus: sata
name: pvcdisk
interfaces:
- bridge: {}
- masquerade: {}
model: e1000
name: default
features:
Expand Down
6 changes: 3 additions & 3 deletions tools/vms-generator/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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()},
Expand Down

0 comments on commit d472c41

Please sign in to comment.