github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/vsphere/environ_network.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package vsphere 5 6 import ( 7 "github.com/juju/errors" 8 9 "github.com/juju/juju/network" 10 ) 11 12 // OpenPorts is part of the environs.Firewaller interface. 13 func (*environ) OpenPorts(rules []network.IngressRule) error { 14 return errors.Trace(errors.NotSupportedf("ClosePorts")) 15 } 16 17 // ClosePorts is part of the environs.Firewaller interface. 18 func (*environ) ClosePorts(rules []network.IngressRule) error { 19 return errors.Trace(errors.NotSupportedf("ClosePorts")) 20 } 21 22 // IngressPorts is part of the environs.Firewaller interface. 23 func (*environ) IngressRules() ([]network.IngressRule, error) { 24 return nil, errors.Trace(errors.NotSupportedf("Ports")) 25 }