github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/provider/cloudsigma/environcaps.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package cloudsigma
     5  
     6  import (
     7  	"github.com/juju/juju/constraints"
     8  )
     9  
    10  var unsupportedConstraints = []string{
    11  	constraints.Container,
    12  	constraints.InstanceType,
    13  	constraints.Tags,
    14  	constraints.VirtType,
    15  }
    16  
    17  // ConstraintsValidator returns a Validator instance which
    18  // is used to validate and merge constraints.
    19  func (env *environ) ConstraintsValidator() (constraints.Validator, error) {
    20  	validator := constraints.NewValidator()
    21  	validator.RegisterUnsupported(unsupportedConstraints)
    22  	return validator, nil
    23  }
    24  
    25  // SupportNetworks returns whether the environment has support to
    26  // specify networks for applications and machines.
    27  func (env *environ) SupportNetworks() bool {
    28  	return false
    29  }