Skip to content

Commit

Permalink
Update libcni to add metadata to interface
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Zappa <[email protected]>
  • Loading branch information
MikeZappa87 authored and s1061123 committed Mar 11, 2024
1 parent 8003e15 commit 0d501e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/types/100/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ type Interface struct {
Sandbox string `json:"sandbox,omitempty"`
SocketPath string `json:"socketPath,omitempty"`
PciID string `json:"pciID,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
}

func (i *Interface) String() string {
Expand Down
1 change: 1 addition & 0 deletions pkg/types/100/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func testResult() *current.Result {
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
SocketPath: "/path/to/vhost/fd",
Metadata: make(map[string]string),

Check failure on line 58 in pkg/types/100/types_test.go

View workflow job for this annotation

GitHub Actions / Lint

File is not `gci`-ed with --skip-generated -s standard,default,prefix(github.com/containernetworking) (gci)
},
},
IPs: []*current.IPConfig{
Expand Down
1 change: 1 addition & 0 deletions pkg/types/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ var _ = Describe("Types", func() {
Sandbox: "/proc/3553/ns/net",
PciID: "8086:9a01",
SocketPath: "/path/to/vhost/fd",
Metadata: make(map[string]string),

Check failure on line 172 in pkg/types/types_test.go

View workflow job for this annotation

GitHub Actions / Lint

File is not `gci`-ed with --skip-generated -s standard,default,prefix(github.com/containernetworking) (gci)
},
},
IPs: []*current.IPConfig{
Expand Down

0 comments on commit 0d501e8

Please sign in to comment.