lib/openstack/compute/server.rb
def interface_list
      response = @compute.connection.csreq("GET",@svrmgmthost,"#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/os-interface",@svrmgmtport,@svrmgmtscheme,{'content-type' => 'application/json'})
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      JSON::parse(response.body)["interfaceAttachments"]
    end
# Lists all interfaces from this server.
#
#   >> server.interface_list
#   => array
Lists all interfaces from this server.
Lists all interfaces from this server .
def interface_list
      response = @compute.connection.csreq("GET",@svrmgmthost,"#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/os-interface",@svrmgmtport,@svrmgmtscheme,{'content-type' => 'application/json'})
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      JSON::parse(response.body)["interfaceAttachments"]
    end
def interface_list response = @compute . connection . csreq ( "GET" , @svrmgmthost , "#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/os-interface" , @svrmgmtport , @svrmgmtscheme , { 'content-type' => 'application/json' } ) OpenStack :: Exception . raise_exception ( response ) unless response . code . match ( / ^20.$ / ) JSON :: parse ( response . body ) [ "interfaceAttachments" ] end
Lists all interfaces from this server.
Lists all interfaces from this server .