Forum Discussion

BrentKingston's avatar
BrentKingston
Icon for Altostratus rankAltostratus
2 years ago
Solved

AS3 referencing objects across applications

Hi, I'm new to using AS3 for configuration.

I'm trying to do the following with my decloration:

"declaration": {
    "class": "ADC",
    "schemaVersion": "3.43.0",
    "id": "id",
    "label": "WebApp",
    "myPart": {
        "class": "Tenant",
        "Shared": {
            "class": "Application",
            "template":"shared",
            "myEnv_vs": {
                "class": "Service_HTTP",
                "virtualAddresses": ["10.1.2.2"],
                "virtualPort": 80,
                "pool": /-- Refer to app2_pool --/
            }
        },
        "APP1": {
            "class": "Application",
            "app1_pool": {
                "class": "Pool",
                "members": [
                {
                    "servicePort": 8080,
                    "serverAddresses": [
                    "10.2.2.3"
                    ]
                }
                ]
            }
        },
        "APP2": {
            "class": "Application",
            "app2_pool": {
                "class": "Pool",
                "members": [
                {
                    "servicePort": 8080,
                    "serverAddresses": [
                    "10.2.2.4"
                    ]
                }
                ]
            }
        }
    }

I've bolded the line that I have questions about. Is referring to the APP2 pool even possible from the Shared object?

I've tried several different means to achieve this and got errors stating:

"pool": "/myPart/APP2/app2_pool" --> Can only refer to things in /myPart/Shared/ or /Common/Shared/

"pool": "app2_pool" --> does not exist

"pool": "APP2/app2_pool" --> does not exist

 

Am I barking up the wrong tree? Does this make sense?

  • BrentKingston's avatar
    BrentKingston
    2 years ago

    Hi Leslie_Hubertus,

    I talked with some contacts at F5 and apparently what I was attempting to complete is not possible.

    As much as I would like to be able to refer to other apps in a partition I understand why it behaves like that.

4 Replies