cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Autogenerate marvin wrapper files for external plugins

Open dhlaluku opened this issue 8 years ago • 1 comments

ISSUE TYPE
  • Enhancement Request
COMPONENT NAME
API, plugin, marvin
CLOUDSTACK VERSION
master
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

The Marvin wrapper files are currently only generated for APIs and internal plugins within CloudStack. We wish to have an automated generic way of generating this wrapper files for external plugins that are not part of CloudStack code.

STEPS TO REPRODUCE
Automation for an external plugin
EXPECTED RESULTS

ACTUAL RESULTS

dhlaluku avatar Apr 27 '18 13:04 dhlaluku

It's currently possible to use marvin's codegenerator against a live running mgmt server's unauthenticated port to generate code. This is from tools/marvin/marvin:

python codegenerator.py -h
Usage: codegenerator.py [options]

Options:
  -h, --help            show this help message and exit
  -o OUTPUT, --output=OUTPUT
                        The path to the generated code entities, default is .
  -s SPEC, --specfile=SPEC
                        The path and name of the api spec xml file, default is
                        /etc/cloud/cli/commands.xml
  -e ENDPOINT, --endpoint=ENDPOINT
                        The endpoint mgmt server (with open 8096) where apis
                        are discovered, default is localhost

Closing this one as the current way of code generation is shared. If you've a specific use-case or need, please re-submit a ticket or reopen this one with more details. Thanks.

yadvr avatar Dec 06 '18 19:12 yadvr