Refactors the bigip_gtm_facts module (#31917)

Includes pep fixes and inlining code with current conventions
This commit is contained in:
Tim Rupp
2017-10-20 18:05:45 -07:00
committed by GitHub
parent ab8bacdf5e
commit 8085c38e05
5 changed files with 1088 additions and 368 deletions

View File

@@ -0,0 +1,44 @@
{
"kind": "tm:gtm:pool:a:acollectionstate",
"selfLink": "https://localhost/mgmt/tm/gtm/pool/a?expandSubcollections=true&ver=13.0.0",
"items": [
{
"kind": "tm:gtm:pool:a:astate",
"name": "foo.pool",
"partition": "Common",
"fullPath": "/Common/foo.pool",
"generation": 216,
"selfLink": "https://localhost/mgmt/tm/gtm/pool/a/~Common~foo.pool?ver=13.0.0",
"alternateMode": "round-robin",
"dynamicRatio": "disabled",
"enabled": true,
"fallbackIp": "any",
"fallbackMode": "return-to-dns",
"limitMaxBps": 0,
"limitMaxBpsStatus": "disabled",
"limitMaxConnections": 0,
"limitMaxConnectionsStatus": "disabled",
"limitMaxPps": 0,
"limitMaxPpsStatus": "disabled",
"loadBalancingMode": "round-robin",
"manualResume": "disabled",
"maxAnswersReturned": 1,
"monitor": "default",
"qosHitRatio": 5,
"qosHops": 0,
"qosKilobytesSecond": 3,
"qosLcs": 30,
"qosPacketRate": 1,
"qosRtt": 50,
"qosTopology": 0,
"qosVsCapacity": 0,
"qosVsScore": 0,
"ttl": 30,
"verifyMemberAvailability": "enabled",
"membersReference": {
"link": "https://localhost/mgmt/tm/gtm/pool/a/~Common~foo.pool/members?ver=13.0.0",
"isSubcollection": true
}
}
]
}

View File

@@ -0,0 +1,48 @@
{
"kind": "tm:gtm:pool:a:astats",
"generation": 216,
"selfLink": "https://localhost/mgmt/tm/gtm/pool/a/~Common~foo.pool/stats?ver=13.0.0",
"entries": {
"https://localhost/mgmt/tm/gtm/pool/a/~Common~foo.pool/~Common~foo.pool:A/stats": {
"nestedStats": {
"kind": "tm:gtm:pool:a:astats",
"selfLink": "https://localhost/mgmt/tm/gtm/pool/a/~Common~foo.pool/~Common~foo.pool:A/stats?ver=13.0.0",
"entries": {
"alternate": {
"value": 0
},
"dropped": {
"value": 0
},
"fallback": {
"value": 0
},
"tmName": {
"description": "/Common/foo.pool"
},
"poolType": {
"description": "A"
},
"preferred": {
"value": 0
},
"returnFromDns": {
"value": 0
},
"returnToDns": {
"value": 0
},
"status.availabilityState": {
"description": "offline"
},
"status.enabledState": {
"description": "enabled"
},
"status.statusReason": {
"description": "No enabled pool members available"
}
}
}
}
}
}