Skip to content

Commit

Permalink
update function names
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Zappa <[email protected]>
  • Loading branch information
MikeZappa87 committed Aug 2, 2023
1 parent 196f34f commit cdadd4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ type CNI interface {
Status() error
// GetConfig returns a copy of the CNI plugin configurations as parsed by CNI
GetConfig() *ConfigResult
//BuildCNIMultiNetwork returns a list of networks that match the network name in the cni cache
BuildCNIMultiNetwork(networkNames []*NetworkInterface) []*Network
//BuildMultiNetwork returns a list of networks that match the network name in the cni cache
BuildMultiNetwork(networkNames []*NetworkInterface) []*Network
}

type ConfigResult struct {
Expand Down Expand Up @@ -194,8 +194,8 @@ func (c *libcni) SetupSerially(ctx context.Context, id string, path string, opts
return c.createResult(result)
}

// BuildCNIMultiNetwork build dynamic list of Networks. Order Matters here!
func (c *libcni) BuildCNIMultiNetwork(networkNames []*NetworkInterface) []*Network {
// BuildMultiNetwork build dynamic list of Networks. Order Matters here!
func (c *libcni) BuildMultiNetwork(networkNames []*NetworkInterface) []*Network {
var network []*Network
ifaceindex := 0
for _, net := range c.Networks() {
Expand Down
2 changes: 1 addition & 1 deletion cni_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func TestBuildNetworksWithAnnotation(t *testing.T) {
},
}

networks := l.BuildCNIMultiNetwork(net)
networks := l.BuildMultiNetwork(net)

assert.Equal(t, len(networks), 3)

Expand Down

0 comments on commit cdadd4a

Please sign in to comment.