code: func (na *cnmNetworkAllocator) resolveDriver(n *api.Network) (*networkDriver, error) {
  	dName := DefaultDriver
  	if n.Spec.DriverConfig != nil && n.Spec.DriverConfig.Name != "" {
  		dName = n.Spec.DriverConfig.Name
  	}
  
  	d, drvcap := na.drvRegistry.Driver(dName)
  	if d == nil {
  		err := na.loadDriver(dName)
  		if err != nil {
  			return nil, err
  		}
  
  		d, drvcap = na.drvRegistry.Driver(dName)
  		if d == nil {
  			return nil, fmt.Errorf("could not resolve network driver %s", dName)
  		}
  	}
  
  	return &networkDriver{driver: d, capability: drvcap, name: dName}, nil
  }
docs: // Resolve network driver