Sha256: 4d60148fba905db707fd287ef4a56c7eebfa389ae3da6cc2bc90d462709b22ef
Contents?: true
Size: 743 Bytes
Versions: 28
Compression:
Stored size: 743 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Restarts the network; includes 1) restarting network elements - virtual routers, dhcp servers 2) reapplying all public ips 3) reapplying loadBalancing/portForwarding rules # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/restartNetwork.html] def restart_network(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'restartNetwork') else options.merge!('command' => 'restartNetwork', 'id' => args[0]) end request(options) end end end end end
Version data entries
28 entries across 26 versions & 4 rubygems