lib/openstack/compute/server.rb
# Deleted a specific interface from this server.
#
#   >> server.interface_delete
#   => true
Deleted a specific interface from this server.
Deleted a specific interface from this server .
def interface_delete(id)
      response = @compute.connection.csreq("DELETE",@svrmgmthost,"#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/os-interface/#{id}",@svrmgmtport,@svrmgmtscheme,{'content-type' => 'application/json'})
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      true
    end
def interface_delete ( id ) response = @compute . connection . csreq ( "DELETE" , @svrmgmthost , "#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/os-interface/#{id}" , @svrmgmtport , @svrmgmtscheme , { 'content-type' => 'application/json' } ) OpenStack :: Exception . raise_exception ( response ) unless response . code . match ( / ^20.$ / ) true end
Deleted a specific interface from this server.
Deleted a specific interface from this server .
id