# File lib/fog/sakuracloud/requests/network/create_router.rb, line 7 def create_router(options) bandwidthmbps = options[:bandwidthmbps] ? options[:bandwidthmbps].to_i : 100 body = { "Internet" => { "Name" => options[:name], "NetworkMaskLen"=> options[:networkmasklen].to_i, "BandWidthMbps"=> bandwidthmbps } } request( :headers => { 'Authorization' => "Basic #{@auth_encode}" }, :expects => 202, :method => 'POST', :path => "#{Fog::SakuraCloud.build_endpoint(@api_zone)}/internet", :body => Fog::JSON.encode(body) ) end