Skip to content

Commit db733e7

Browse files
committed
fix
1 parent 38c0463 commit db733e7

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

network/network.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import (
1010
type Network interface {
1111
Type() string
1212

13-
Config(context.Context, []*types.VM) ([][]*types.NetworkConfig, error)
13+
Config(context.Context, []*types.VMConfig) ([][]*types.NetworkConfig, error)
14+
Delete(context.Context, []string) ([]string, error)
1415
Inspect(context.Context, string) (*types.Network, error)
15-
List() ([]Network, error)
16+
List() ([]*types.Network, error)
1617

1718
RegisterGC(*gc.Orchestrator)
1819
}

types/network.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ type Network struct {
1717
ID string `json:"id"`
1818
Type string `json:"type"`
1919

20-
IP net.IP `json:"ip"`
21-
Gateway net.IP `json:"gateway"`
22-
Netmask net.IP `json:"netmask"`
23-
Hostname string `json:"hostname"`
24-
Device string `json:"device"`
20+
IP net.IP `json:"ip"`
21+
Gateway net.IP `json:"gateway"`
22+
Netmask net.IPMask `json:"netmask"`
23+
Hostname string `json:"hostname"`
24+
Device string `json:"device"`
2525

2626
// autoconf off
2727
// net.ifnames 0 enforce eth0 as first interface name

0 commit comments

Comments
 (0)