From 3db14a23919e80d9964b4b161bf757c1ff1a1a05 Mon Sep 17 00:00:00 2001 From: Sergio Rubio Date: Tue, 26 Mar 2013 17:06:48 +0100 Subject: [PATCH] [xenserver|compute] added destroy_network request --- .../requests/compute/destroy_network.rb | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/fog/xenserver/requests/compute/destroy_network.rb diff --git a/lib/fog/xenserver/requests/compute/destroy_network.rb b/lib/fog/xenserver/requests/compute/destroy_network.rb new file mode 100644 index 000000000..a2f932209 --- /dev/null +++ b/lib/fog/xenserver/requests/compute/destroy_network.rb @@ -0,0 +1,33 @@ +module Fog + module Compute + class XenServer + + class Real + + # + # Destroy a Network + # + # @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=network + # + def destroy_network( ref ) + @connection.request( + { + :parser => Fog::Parsers::XenServer::Base.new, + :method => 'network.destroy' + }, + ref + ) + end + + end + + class Mock + + def destroy_network( ref ) + Fog::Mock.not_implemented + end + + end + end + end +end