- Updated vmware/govmomi godep (Needs for vsan support)
- Fix unmount for vsanDatastore - Add support for vsan datastore
This commit is contained in:
8
vendor/github.com/vmware/govmomi/object/network.go
generated
vendored
8
vendor/github.com/vmware/govmomi/object/network.go
generated
vendored
@@ -17,8 +17,6 @@ limitations under the License.
|
||||
package object
|
||||
|
||||
import (
|
||||
"path"
|
||||
|
||||
"github.com/vmware/govmomi/vim25"
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
"golang.org/x/net/context"
|
||||
@@ -26,8 +24,6 @@ import (
|
||||
|
||||
type Network struct {
|
||||
Common
|
||||
|
||||
InventoryPath string
|
||||
}
|
||||
|
||||
func NewNetwork(c *vim25.Client, ref types.ManagedObjectReference) *Network {
|
||||
@@ -36,10 +32,6 @@ func NewNetwork(c *vim25.Client, ref types.ManagedObjectReference) *Network {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Network) Name() string {
|
||||
return path.Base(n.InventoryPath)
|
||||
}
|
||||
|
||||
// EthernetCardBackingInfo returns the VirtualDeviceBackingInfo for this Network
|
||||
func (n Network) EthernetCardBackingInfo(_ context.Context) (types.BaseVirtualDeviceBackingInfo, error) {
|
||||
name := n.Name()
|
||||
|
||||
Reference in New Issue
Block a user