f5devcentral / f5-automation-config-converter

Convert BIG-IP configs to AS3 and DO declarations
https://clouddocs.f5.com/products/extensions/f5-automation-config-converter/latest/
Apache License 2.0
35 stars 13 forks source link

[RFE] create DO output #16

Closed DumpySquare closed 3 years ago

DumpySquare commented 3 years ago

Is your feature request related to a problem? Please describe.

Not a problem, but it would be super handy and drive DO adoption if we had a similar function to take a TMOS config and return all the settings DO would handle. This could be a quick and easy way to templatize an F5's base/system settings and deploy more devices with the same system settings.

Describe the solution you'd like

This may be best in another project (like ACC), or I could do something in vscode-f5/f5-corkscrew/f5-conx-core, but just wanted to get the idea out there.

Since this project is already doing TMOS->AS3 conversion, and now utilizing a REST API integration, a different API endpoint, or parameter could tell the engine to return a DO conversion instead of an AS3, could be an easy addition.

Examples below:

New API endpoint:

As existing endpoint param:

Describe alternatives you've considered

Currently, there is no alternative. DO declarations must be made by hand at some point

Additional context

A small tool like this could be incredibly valuable for helping users transition to automation tools like DO. With the output from a tool like this, it would easily be converted to a FAST template and templatize/standardize deployments even more. Like ACC, this would drastically reduce the time/expertise needed to get started with DO. This could also be incorporated into workflows that assist users with migrating to next gen cloud based platforms.

mdditt2000 commented 3 years ago

Spike CHARON-269 created for PM tracking. Spike in progress

mdditt2000 commented 3 years ago

Added to ACC 1.14 as a preview. Will update this issue with supported classes and docs

mdditt2000 commented 3 years ago

docker run --rm -v "$PWD":/app/data f5-as3-config-converter:1.15.0-RC2 -o data/v14-output.json -u data/v14-test.ucs --declarative-onboarding

Can be closed. More classes supported in ACC 1.15, 1.16 etc.