github.com/vmware/govmomi@v0.51.0/simulator/esx/host_vnic_manager.go (about) 1 // © Broadcom. All Rights Reserved. 2 // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. 3 // SPDX-License-Identifier: Apache-2.0 4 5 package esx 6 7 import "github.com/vmware/govmomi/vim25/types" 8 9 var VirtualNicManagerNetConfig = []types.VirtualNicManagerNetConfig{ 10 { 11 NicType: "management", 12 MultiSelectAllowed: true, 13 CandidateVnic: []types.HostVirtualNic{ 14 { 15 Device: "vmk0", 16 Key: "management.key-vim.host.VirtualNic-vmk0", 17 Portgroup: "Management Network", 18 Spec: types.HostVirtualNicSpec{ 19 Ip: &types.HostIpConfig{ 20 Dhcp: true, 21 IpAddress: "127.0.0.1", 22 SubnetMask: "255.0.0.0", 23 }, 24 Mac: "00:0c:29:81:d8:a0", 25 Portgroup: "Management Network", 26 Mtu: 1500, 27 TsoEnabled: types.NewBool(true), 28 NetStackInstanceKey: "defaultTcpipStack", 29 SystemOwned: types.NewBool(false), 30 }, 31 }, 32 }, 33 SelectedVnic: []string{"management.key-vim.host.VirtualNic-vmk0"}, 34 }, 35 }