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