Sha256: fc24778517ec8fde26447b6fb3964f6e99dfe353fb49ca086a60f5682a0262c4

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 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.3/root_admin/restartNetwork.html]
        def restart_network(id, options={})
          options.merge!(
            'command' => 'restartNetwork', 
            'id' => id  
          )
          request(options)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.23.0 lib/fog/cloudstack/requests/compute/restart_network.rb