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 <michaelzappa@microsoft.com>
  • Loading branch information
MikeZappa87 committed Dec 12, 2023
1 parent 9f692b7 commit 9e58893
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/types/100/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,10 @@ 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"`
Name string `json:"name"`

Check failure on line 248 in pkg/types/100/types.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)
Mac string `json:"mac,omitempty"`
Sandbox string `json:"sandbox,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 @@ -54,6 +54,7 @@ func testResult() *current.Result {
Name: "eth0",

Check failure on line 54 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)
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
Metadata: make(map[string]string),
},
},
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 @@ -162,6 +162,7 @@ var _ = Describe("Types", func() {
Name: "eth0",

Check failure on line 162 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)
Mac: "00:11:22:33:44:55",
Sandbox: "/proc/3553/ns/net",
Metadata: make(map[string]string),
},
},
IPs: []*current.IPConfig{
Expand Down

0 comments on commit 9e58893

Please sign in to comment.