Skip to content

Commit

Permalink
Use network count in ifname index
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
  • Loading branch information
crosbymichael committed Aug 17, 2018
1 parent 5882530 commit 6aeaa2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opts.go
Original file line number Diff line number Diff line change
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 6aeaa2d

Please sign in to comment.