f5devcentral / f5-cli

F5 CLI
Apache License 2.0
12 stars 1 forks source link

f5 bigip extension as3 delete --declaration <file> deletes all the tenants #12

Open erkac opened 4 years ago

erkac commented 4 years ago

Not sure, if I'm doing something wrong... but, even if I run: f5 bigip extension as3 delete --declaration ../AS3/as3-dvwa.json it deletes also other tenants in different paritions:

{
    "declaration": {
        "class": "ADC",
        "controls": {
            "archiveTimestamp": "2020-05-20T12:26:07.712Z"
        },
        "id": "1589977558648",
        "schemaVersion": "3.0.0",
        "updateMode": "complete"
    },
    "results": [
        {
            "code": 200,
            "host": "localhost",
            "lineCount": 30,
            "message": "success",
            "runTime": 2085,
            "tenant": "DVWA"
        },
        {
            "code": 200,
            "host": "localhost",
            "lineCount": 20,
            "message": "success",
            "runTime": 2249,
            "tenant": "Forward_tenant"
        }
    ]
}

I assume, that only DVWA tenant should be deleted as it is defined in ../AS3/as3-dvwa.json but it also deleted the other tenant which was defined by ../AS3/as3-forwarding.json declaration.

shyawnkarim commented 4 years ago

Thank you for reporting this issue: per tenant deletions should be supported. This issue is being tracked internally with ID AUTOSDK-331.