Giter Site home page Giter Site logo

Comments (11)

jcleung5549 avatar jcleung5549 commented on September 7, 2024 1

As python implementations, the Redfish simulators/emulators employed some of the packages referenced in guidance on building a RESTful service. The code shows you how these packages can work together to simplify your development effort.

  • The Redfish-Mockup-Server uses the request/grequest packages
  • The Redfish-Profile-Simulator uses the flask package
  • The Redfish-Interface-Emulator uses the flask, flask_restful and flask_httpauth packages

from redfish-interface-emulator.

mraineri avatar mraineri commented on September 7, 2024

Yes, the intent of the emulator is to contain canned data for testing purposes. It's possible to modify the tool to make calls into your system to get actual data, but that's really outside of the scope of an emulator. It seems like you're asking for an actual implementation of a Redfish service.

from redfish-interface-emulator.

jcleung5549 avatar jcleung5549 commented on September 7, 2024

The emulator can expose the model as dynamic by coding dynamic behavior into a resource property value. The python strgen() and random functions calls are useful for coding this behavior.

If you are attempting to use the emulator as an implementation, you are in unknown territory.

from redfish-interface-emulator.

chandra0293 avatar chandra0293 commented on September 7, 2024

Yes, the intent of the emulator is to contain canned data for testing purposes. It's possible to modify the tool to make calls into your system to get actual data, but that's really outside of the scope of an emulator. It seems like you're asking for an actual implementation of a Redfish service.

yes i am looking for actual implementation based our data model . how to start actual implementation ?

from redfish-interface-emulator.

jautor avatar jautor commented on September 7, 2024

A quick search for "Building a REST service" will give you a ton of ideas for quickly implementing an HTTP service that can serve up JSON payload responses. Once you have a basic REST service functional, it's just a matter of populating your resources with live data using the Redfish property definitions from the schema files.

from redfish-interface-emulator.

chandra0293 avatar chandra0293 commented on September 7, 2024

from redfish-interface-emulator.

chandra0293 avatar chandra0293 commented on September 7, 2024

from redfish-interface-emulator.

jautor avatar jautor commented on September 7, 2024

The Profile simulator is a fairly static model showing an implementation of the proposed OCP profile (from a while ago) - this Emulator is much more full-featured and extensible.

from redfish-interface-emulator.

jcleung5549 avatar jcleung5549 commented on September 7, 2024

SNIA (snia.org) extended Redfish to manage networked storage and storage services. They also created the Swordfish API Emulator (github.com/SNIA/Swordfish-API-Emulator). Their repository contains the incremental files in order to emulator Swordfish objects. On their repository, traverse the path ./api_emulator/redfish to see the resource emulation code.

from redfish-interface-emulator.

mraineri avatar mraineri commented on September 7, 2024

@chandra0293 does that answer your questions? Can we close this issue?

from redfish-interface-emulator.

mraineri avatar mraineri commented on September 7, 2024

Closing

from redfish-interface-emulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.