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 14 forks source link

CLI misses options available in HTTP interface #105

Open simonkowallik opened 9 months ago

simonkowallik commented 9 months ago

Environment

Summary

CLI interface of the container doesn't provide the same options/output as the HTTP API/interface.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Convert following config:
    
    # file: test.conf
    ltm pool /Common/just_pool {
    description "just description"
    }

sys syslog { include "syslog-ng options here" }


Run:
```shell
docker run --rm -it -v $PWD/:/app/data f5devcentral/f5-automation-config-converter:latest \
--conf /app/data/test.conf \
--debug

The output will miss the objects which have not been converted. Running the docker container "cli" using --help will not provide a --verbose flag. This flag is available via the HTTP API/interface.

For example, running the below:

docker run --rm -it -v $PWD/:/app/data -p 8080:8080 f5devcentral/f5-automation-config-converter:latest serve
curl localhost:8080/converter -X POST  --form "conf=@./test.conf" --form "verbose=true"

will provide as3NotConverted output as well.

Expected Behavior

Same functionality on CLI and HTTP interface

Actual Behavior

Functionality differs.