lib/openstack/compute/server.rb
# Remove a specific fixed ip from the instance
#
# Returns true if the API call succeeds.
#
#   >> server.remove_fixed_ip
#   => true
Remove a specific fixed ip from the instance
Returns true if the API call succeeds.


Remove a specific fixed ip from the instance Returns true if the API call succeeds .
def remove_fixed_ip(ip)
      data = JSON.generate(:removeFixedIp => {
          :address => ip
      })
      response = @compute.connection.csreq("POST",@svrmgmthost,"#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/action",@svrmgmtport,@svrmgmtscheme,{'content-type' => 'application/json'},data)
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      true
    end
def remove_fixed_ip ( ip ) data = JSON . generate ( :removeFixedIp => { :address => ip } ) response = @compute . connection . csreq ( "POST" , @svrmgmthost , "#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/action" , @svrmgmtport , @svrmgmtscheme , { 'content-type' => 'application/json' } , data ) OpenStack :: Exception . raise_exception ( response ) unless response . code . match ( / ^20.$ / ) true end
Remove a specific fixed ip from the instance
Returns true if the API call succeeds.
Remove a specific fixed ip from the instance Returns true if the API call succeeds .
ip