Skip to content

Commit

Permalink
network: Use constant string for "none" network model
Browse files Browse the repository at this point in the history
Align with other network models.

Fixes clearcontainers#884.

Signed-off-by: Ruidong Cao <[email protected]>
  • Loading branch information
caoruidong committed Nov 5, 2018
1 parent e90dc35 commit 8ddc0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (n *NetInterworkingModel) SetModel(modelName string) error {
case tcFilterNetModelStr:
*n = NetXConnectTCFilterModel
return nil
case "none":
case noneNetModelStr:
*n = NetXConnectNoneModel
return nil
}
Expand Down

0 comments on commit 8ddc0ce

Please sign in to comment.