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

Unsupported ltm node #20

Closed makagonr closed 3 years ago

makagonr commented 3 years ago

Environment

Summary

When passing ltm node to ACC converter, I got this as unsupported- I figured it out by altering the code and forcing printing unsupported obejcts to output, because of the first issue

Steps To Reproduce

Steps to reproduce the behavior: bigip.conf.zip Convert attached bigip.conf to observe the issue

docker run --rm -v "$PWD":/app/data f5-as3-config-converter:1.11.0-RC1 -o test.json -c /data/bigip.conf --unsupported

Expected Behavior

"ltm node" should not be classified as unsupported

DumpySquare commented 3 years ago

I don't think "nodes" are supported since AS3 is just tracking pool members and node creation is abstracted with that process.

rjouhann commented 3 years ago

I used 1.11.0-RC1 and I don't see the ltm node being classified as Unsupported. Which verbose flag are you referring to?

The bigip.conf attached has 13 objects including the ltm node and acc output is showing 13 BIG-IP objects recognized. Note I am using acc in command line.

docker run --rm -v "$PWD":/app/data f5-as3-config-converter:1.11.0-RC1 -o data/test.json -c data/bigip.conf
13 BIG-IP objects detected total
13 BIG-IP objects recognized by AS3
12 BIG-IP objects supported by ACC
11 AS3 stanzas generated

Regarding the ltm node, it looks acc is adding this node in the serverAddresses of the pool created in AS3 as it should with the shareNodes so the node in placed in /Common and can be used by other apps.

ltm node /tenant_2/application_2/6.6.7.7 {
    address 6.6.7.7
}

to

 "members": [
      {
          "addressDiscovery": "static",
          "servicePort": 80,
          "serverAddresses": [
              "6.6.7.7"
          ],
          "shareNodes": true
      }
  ],
makagonr commented 3 years ago

Hello Roman,

Please add

--unsupported flag to print list of unsupported objects:

------ Unsupported objects -----

ltm node /tenant_1/application_1/6.6.7.7

-- end of Unsupported objects --

13 BIG-IP objects detected total

13 BIG-IP objects recognized by AS3

12 BIG-IP objects supported by ACC

11 AS3 stanzas generated

pt., 26 mar 2021 o 15:28 Romain Jouhannet @.***> napisał(a):

I used 1.11.0-RC1 and I don't see the ltm node being classified as Unsupported. Which verbose flag are you referring to?

The bigip.conf attached has 13 objects including the ltm node and acc output is showing 13 BIG-IP objects recognized. Note I am using acc in command line.

docker run --rm -v "$PWD":/app/data f5-as3-config-converter:1.11.0-RC1 -o data/test.json -c data/bigip.conf 13 BIG-IP objects detected total 13 BIG-IP objects recognized by AS3 12 BIG-IP objects supported by ACC 11 AS3 stanzas generated

Regarding the ltm node, it looks acc is adding this node in the serverAddresses of the pool created in AS3 as it should with the shareNodes so the node in placed in /Common and can be used by other apps.

ltm node /tenant_2/application_2/6.6.7.7 { address 6.6.7.7 }

to

"members": [ { "addressDiscovery": "static", "servicePort": 80, "serverAddresses": [ "6.6.7.7" ], "shareNodes": true } ],

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/f5devcentral/f5-as3-config-converter/issues/20#issuecomment-808263625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHP7QNJ7UTBGXHFEELS6SXTTFSK2RANCNFSM4ZZJB3GQ .

mdditt2000 commented 3 years ago

This was resolved in ACC 1.12