2013-03-26 12:06:48 -04:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class XenServer
|
|
|
|
class Real
|
2014-02-19 07:30:59 -05:00
|
|
|
#
|
2013-03-26 12:06:48 -04:00
|
|
|
# Destroy a Network
|
|
|
|
#
|
|
|
|
# @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=network
|
|
|
|
#
|
|
|
|
def destroy_network( ref )
|
2014-12-21 20:42:18 -05:00
|
|
|
Fog::Logger.deprecation(
|
|
|
|
'This method is deprecated. Use #destroy_record instead.'
|
|
|
|
)
|
2013-03-26 12:06:48 -04:00
|
|
|
@connection.request(
|
|
|
|
{
|
2014-02-19 07:30:59 -05:00
|
|
|
:parser => Fog::Parsers::XenServer::Base.new,
|
2013-03-26 12:06:48 -04:00
|
|
|
:method => 'network.destroy'
|
2014-02-19 07:30:59 -05:00
|
|
|
},
|
2013-03-26 12:06:48 -04:00
|
|
|
ref
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
def destroy_network( ref )
|
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|