diff --git a/pkg/types/100/types.go b/pkg/types/100/types.go index 5e29eca4..8720f7eb 100644 --- a/pkg/types/100/types.go +++ b/pkg/types/100/types.go @@ -268,11 +268,11 @@ func (r *Result) PrintTo(writer io.Writer) error { // Interface contains values about the created interfaces type Interface struct { - Name string `json:"name"` - Mac string `json:"mac,omitempty"` - Sandbox string `json:"sandbox,omitempty"` - SocketPath string `json:"socket_path,omitempty"` - PciID string `json:"pci_id,omitempty"` + Name string `json:"name"` + Mac string `json:"mac,omitempty"` + Sandbox string `json:"sandbox,omitempty"` + SocketPath string `json:"socket_path,omitempty"` + PciID string `json:"pci_id,omitempty"` } func (i *Interface) String() string { diff --git a/pkg/types/100/types_test.go b/pkg/types/100/types_test.go index 7971d385..9a9686a1 100644 --- a/pkg/types/100/types_test.go +++ b/pkg/types/100/types_test.go @@ -50,10 +50,10 @@ func testResult() *current.Result { CNIVersion: current.ImplementedSpecVersion, Interfaces: []*current.Interface{ { - Name: "eth0", - Mac: "00:11:22:33:44:55", - Sandbox: "/proc/3553/ns/net", - PciID: "8086:9a01", + Name: "eth0", + Mac: "00:11:22:33:44:55", + Sandbox: "/proc/3553/ns/net", + PciID: "8086:9a01", SocketPath: "/path/to/vhost/fd", }, }, diff --git a/pkg/types/types_test.go b/pkg/types/types_test.go index 1c86ec6e..235f08cf 100644 --- a/pkg/types/types_test.go +++ b/pkg/types/types_test.go @@ -161,10 +161,10 @@ var _ = Describe("Types", func() { CNIVersion: "1.0.0", Interfaces: []*current.Interface{ { - Name: "eth0", - Mac: "00:11:22:33:44:55", - Sandbox: "/proc/3553/ns/net", - PciID: "8086:9a01", + Name: "eth0", + Mac: "00:11:22:33:44:55", + Sandbox: "/proc/3553/ns/net", + PciID: "8086:9a01", SocketPath: "/path/to/vhost/fd", }, }, diff --git a/pkg/version/version_test.go b/pkg/version/version_test.go index 7f7aaac1..ee3fa355 100644 --- a/pkg/version/version_test.go +++ b/pkg/version/version_test.go @@ -73,10 +73,10 @@ var _ = Describe("Version operations", func() { CNIVersion: "1.0.0", Interfaces: []*cniv1.Interface{ { - Name: "eth0", - Mac: "00:11:22:33:44:55", - Sandbox: "/proc/3553/ns/net", - PciID: "8086:9a01", + Name: "eth0", + Mac: "00:11:22:33:44:55", + Sandbox: "/proc/3553/ns/net", + PciID: "8086:9a01", SocketPath: "/path/to/vhost/fd", }, },