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

ACC missing TCP Profile values after conversion #88

Closed Maxximouss closed 2 years ago

Maxximouss commented 2 years ago

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

When I am converting configuration to AS3 declaration, I noticed that some elements are not supported by ACC Converter, like TCP Profiles inside virtual server configuration (tcp-f5-wan and tcp-f5-lan)

Original app.conf :

ltm virtual /Common/vs_http {
    destination /Common/10.0.0.12:80
    ip-protocol tcp
    mask 255.255.255.255
    pool /Common/pool_http
    profiles {
        /Common/f5-tcp-lan {
            context serverside
        }
        /Common/f5-tcp-wan {
            context clientside
        }
        /Common/http { }
    }
    source 0.0.0.0/0
    translate-address enabled
    translate-port enabled
    vlans {
        /Common/internal
    }
    vlans-enabled
}

AS3 Converted Declaration :

    "declaration": {
        "class": "ADC",
        "schemaVersion": "3.35.0",
        "id": "urn:uuid:c669cbf9-bcab-402d-8a16-6db7c2778de2",
        "label": "Converted Declaration",
        "remark": "Generated by Automation Config Converter",
        "Common": {
            "class": "Tenant",
            "Shared": {
                "class": "Application",
                "template": "shared",
                "vs_http": {
                    "layer4": "tcp",
                    "pool": "pool_http",
                    "translateServerAddress": true,
                    "translateServerPort": true,
                    "class": "Service_HTTP",
                    "profileHTTP": {
                        "bigip": "/Common/http"
                    },
                    "virtualAddresses": [
                        "10.0.0.1"
                    ],
                    "virtualPort": 80,
                    "snat": "none",
                    "allowVlans": [
                        {
                            "bigip": "/Common/internal"
                        }
                    ]
                },

Describe the solution you'd like

I would like to obtain the AS3 declaration including all inputs elements like the TCP Profiles

p-semenov-f5 commented 2 years ago

Looks like a bug: 2022-05-03 13:48:07 WARN Invalid reference dropped: /Common/f5-tcp-lan 2022-05-03 13:48:07 WARN Invalid reference dropped: /Common/f5-tcp-wan

Will investigate that.

p-semenov-f5 commented 2 years ago

Fixed in 1.21

Maxximouss commented 2 years ago

Thanks for your help, will it be included in vscode-f5-chariot ?