Skip to content

Commit

Permalink
Merge pull request #8104 from baude/setnetworkdriverdefault
Browse files Browse the repository at this point in the history
set compat network driver default
  • Loading branch information
openshift-merge-robot authored Oct 22, 2020
2 parents 2cd2359 + cf227cc commit 5d70f46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/api/handlers/compat/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ func CreateNetwork(w http.ResponseWriter, r *http.Request) {
if len(networkCreate.Name) > 0 {
name = networkCreate.Name
}
if len(networkCreate.Driver) < 1 {
networkCreate.Driver = network.DefaultNetworkDriver
}
// At present I think we should just support the bridge driver
// and allow demand to make us consider more
if networkCreate.Driver != network.DefaultNetworkDriver {
Expand Down

0 comments on commit 5d70f46

Please sign in to comment.