Skip to content

Commit

Permalink
Merge pull request #29 from crosbymichael/prefix
Browse files Browse the repository at this point in the history
Use network count in ifname index
  • Loading branch information
abhi committed Aug 18, 2018
2 parents 5882530 + 6aeaa2d commit ef9a3f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opts.go
Expand Up @@ -136,10 +136,11 @@ func WithConfListFile(fileName string) CNIOpt {
if err != nil {
return err
}
i := len(c.networks)
c.networks = append(c.networks, &Network{
cni: c.cniConfig,
config: confList,
ifName: getIfName(c.prefix, 0),
ifName: getIfName(c.prefix, i),
})
return nil
}
Expand Down

0 comments on commit ef9a3f8

Please sign in to comment.