Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some ltm traffic-matching-criteria fields result in invalid declarations #54

Closed
jszczepanskif5 opened this issue Sep 20, 2021 · 2 comments
Labels
bug Something isn't working in progress jira Jira created for this issue

Comments

@jszczepanskif5
Copy link

Environment

  • Application Services Version: 1.14 ACC, 3.30 AppSvcs
  • BIG-IP Version: N/A

Summary

Converting a virtual with connected traffic-matching-criteria object having either destination-port-list or destination-address-inline fields defined results in an invalid declaration. The port list gets converted into an array (while Service.virtualPort accepts only integers), and address inline gets converted into a string (while Service.virtualAddresses accepts only lists).

Steps To Reproduce

The issue can be reproduced with your unit test test/converter/service_l4/service_l4.3.conf.

  1. Convert the config from the file above. The output is as follows:
{
    "class": "ADC",
    "schemaVersion": "3.28.0",
    "id": "urn:uuid:c65a2b04-79bb-4dd0-9c1e-706e6055ee1d",
    "label": "Converted Declaration",
    "remark": "Auto-generated by AS3 Config Converter",
    "Common": {
        "class": "Tenant",
        "Shared": {
            "class": "Application",
            "template": "shared",
            "dest_tmc1_vs": {
                "translateServerAddress": false,
                "translateServerPort": false,
                "class": "Service_L4",
                "profileL4": {
                    "bigip": "/Common/fastL4"
                },
                "virtualAddresses": [
                    "10.10.10.0/24"
                ],
                "virtualPort": [
                    81,
                    82
                ],
                "persistenceMethods": [],
                "snat": "none",
                "layer4": "any"
            },
            "dest_tmc2_vs": {
                "translateServerAddress": false,
                "translateServerPort": false,
                "class": "Service_L4",
                "profileL4": {
                    "bigip": "/Common/fastL4"
                },
                "virtualAddresses": "10.20.30.0",
                "virtualPort": 25,
                "persistenceMethods": [],
                "snat": "none",
                "layer4": "any"
            }
        }
    }
}
  1. Observe the following error messages when trying to deploy it:
{
    "code": 422,
    "errors": [
        "/Common/Shared/dest_tmc1_vs/virtualPort: should be integer"
    ],
    "declarationFullId": "",
    "message": "declaration is invalid"
}
{
    "code": 422,
    "errors": [
        "/Common/Shared/dest_tmc2_vs/virtualAddresses: should be array"
    ],
    "declarationFullId": "",
    "message": "declaration is invalid"
}

Expected Behavior

Address should be a simple case - just wrap the singular address in a list. Ports sound harder - might potentially need to create multiple virtuals, one for each port in list (?)

@jszczepanskif5 jszczepanskif5 added the bug Something isn't working label Sep 20, 2021
@mdditt2000 mdditt2000 added the PME PME Action Item label Sep 22, 2021
@p-semenov-f5
Copy link
Collaborator

p-semenov-f5 commented Sep 30, 2021

Jira issue: CHARON-468 for PM tracking

@p-semenov-f5 p-semenov-f5 added the jira Jira created for this issue label Sep 30, 2021
@mdditt2000 mdditt2000 added in progress and removed PME PME Action Item labels Sep 30, 2021
@p-semenov-f5
Copy link
Collaborator

Resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress jira Jira created for this issue
Projects
None yet
Development

No branches or pull requests

3 participants