1
// Copyright 2013 Joyent Inc.
2
// Licensed under the AGPLv3, see LICENCE file for details.
7
"launchpad.net/juju-core/instance"
10
// Implementing the methods below (to do something other than return nil) will
11
// cause `juju expose` to work when the firewall-mode is "global". If you
12
// implement one of them, you should implement them all.
14
func (env *environ) OpenPorts(ports []instance.Port) error {
15
logger.Warningf("pretending to open ports %v for all instances", ports)
20
func (env *environ) ClosePorts(ports []instance.Port) error {
21
logger.Warningf("pretending to close ports %v for all instances", ports)
26
func (env *environ) Ports() ([]instance.Port, error) {