Fixes for gtm wide ip (#33725)

Adds pools argument. Refactors code to support new conventions.
Adds more unit tests
This commit is contained in:
Tim Rupp
2017-12-08 14:17:30 -08:00
committed by GitHub
parent 3283f46ffa
commit 7b76124c07
3 changed files with 395 additions and 92 deletions

View File

@@ -0,0 +1,30 @@
{
"kind": "tm:gtm:wideip:a:astate",
"name": "foo.bar.com",
"partition": "Common",
"fullPath": "/Common/foo.bar.com",
"generation": 135,
"selfLink": "https://localhost/mgmt/tm/gtm/wideip/a/~Common~foo.bar.com?ver=13.0.0",
"enabled": true,
"failureRcode": "noerror",
"failureRcodeResponse": "disabled",
"failureRcodeTtl": 0,
"lastResortPool": "",
"minimalResponse": "enabled",
"persistCidrIpv4": 32,
"persistCidrIpv6": 128,
"persistence": "disabled",
"poolLbMode": "round-robin",
"ttlPersistence": 3600,
"pools": [
{
"name": "baz",
"partition": "Common",
"order": 0,
"ratio": 10,
"nameReference": {
"link": "https://localhost/mgmt/tm/gtm/pool/a/~Common~baz?ver=13.0.0"
}
}
]
}