Skip to content

Add module generate_argument_spec #65

@jgroom33

Description

@jgroom33
SUMMARY

The current steps for developing a netconf ansible module in a collection is:

  1. Use resource_module_builder
  2. Choose YANG
  3. Examine/parse YANG
  4. Write json based argument_spec from selective YANG components
  5. Run resource_module_builder to generate module

NOTE: Steps 3-4 are currently simplified using community.yang.generate_spec and a schema generator

ISSUE TYPE
  • Feature Idea
COMPONENT NAME
  • community.yang.generate_argument_spec
ADDITIONAL INFORMATION

This would automate the step of generating the necessary argument_spec (Steps 3-4 above)

    - name: Generate argument_spec for foo yang
      community.yang.generate_argument_spec:
        file: foo.yang
        output:
          path: "schemas/foo.yang.json"

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions