xuwen
Dec 14, 2022Cumulonimbus
I recently plan to write a GTM wideip Network Map, Generate a json file
GTM type A and AAAA wideip generate a json file, like LTM NetworkMap
At present, use python f5-sdk, only type A wideip has been written. GTM works in Common partition testing. The configuration format generated by AS3 has not been test and adapted, because its config seems to work in /partition/folder/config, unlike /Common/config
{
"wideips": [
{
"enabled": true,
"name": "pay.bestpay-gtm.189.cn",
"partition": "Common",
"wideip_type": "A",
"poolLbMode": "round-robin",
"persistence": "disabled",
"pools": [
{
"name": "gslb_pool_bestpay_ctc_v4",
"partition": "Common",
"order": 0,
"ratio": 1,
"loadBalancingMode": "round-robin",
"alternateMode": "none",
"fallbackMode": "none",
"fallbackIp": "any",
"Members": [
{
"Member": "/Common/vs_ctc_97_22",
"Member Order": 0,
"Member Address": "58.213.97.22",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
},
{
"Member": "/Common/vs_ctc_97_23",
"Member Order": 1,
"Member Address": "58.213.97.23",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
}
]
}
]
},
{
"enabled": true,
"name": "www.163.com",
"partition": "Common",
"wideip_type": "A",
"poolLbMode": "round-robin",
"persistence": "disabled",
"pools": [
{
"name": "gslb_pool_bestpay_ctc_v4",
"partition": "Common",
"order": 0,
"ratio": 1,
"loadBalancingMode": "round-robin",
"alternateMode": "none",
"fallbackMode": "none",
"fallbackIp": "any",
"Members": [
{
"Member": "/Common/vs_ctc_97_22",
"Member Order": 0,
"Member Address": "58.213.97.22",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
},
{
"Member": "/Common/vs_ctc_97_23",
"Member Order": 1,
"Member Address": "58.213.97.23",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
}
]
}
]
},
{
"disabled": true,
"name": "www.as3.com",
"partition": "Common",
"wideip_type": "A",
"poolLbMode": "round-robin",
"persistence": "disabled"
},
{
"aliases": [
"mapi.bestpay.com.cn"
],
"iRules": [
"/Common/edns_wideip_test"
],
"enabled": true,
"name": "www.bestpay.com.cn",
"partition": "Common",
"wideip_type": "A",
"poolLbMode": "topology",
"persistence": "disabled",
"pools": [
{
"name": "gslb_pool_bestpay_cmcc_v4",
"partition": "Common",
"order": 2,
"ratio": 1,
"loadBalancingMode": "round-robin",
"alternateMode": "none",
"fallbackMode": "none",
"fallbackIp": "any",
"Members": [
{
"Member": "/Common/vs_cmcc_99_22",
"Member Order": 0,
"Member Address": "58.213.99.22",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
},
{
"Member": "/Common/vs_cmcc_99_23",
"Member Order": 1,
"Member Address": "58.213.99.23",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
}
]
},
{
"name": "gslb_pool_bestpay_ctc_v4",
"partition": "Common",
"order": 0,
"ratio": 1,
"loadBalancingMode": "round-robin",
"alternateMode": "none",
"fallbackMode": "none",
"fallbackIp": "any",
"Members": [
{
"Member": "/Common/vs_ctc_97_22",
"Member Order": 0,
"Member Address": "58.213.97.22",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
},
{
"Member": "/Common/vs_ctc_97_23",
"Member Order": 1,
"Member Address": "58.213.97.23",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
}
]
},
{
"name": "gslb_pool_bestpay_cuc_v4",
"partition": "Common",
"order": 1,
"ratio": 1,
"loadBalancingMode": "round-robin",
"alternateMode": "none",
"fallbackMode": "none",
"fallbackIp": "any",
"Members": [
{
"Member": "/Common/vs_ctc_98_22",
"Member Order": 0,
"Member Address": "58.213.98.22",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
},
{
"Member": "/Common/vs_ctc_98_23",
"Member Order": 1,
"Member Address": "58.213.98.23",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
}
]
}
]
},
{
"enabled": true,
"name": "www.gslb.xuwen.com",
"partition": "Common",
"wideip_type": "A",
"poolLbMode": "topology",
"persistence": "disabled",
"pools": [
{
"name": "gslb_pool_ctc_v4",
"partition": "Common",
"order": 0,
"ratio": 1,
"loadBalancingMode": "global-availability",
"alternateMode": "none",
"fallbackMode": "return-to-dns",
"fallbackIp": "any",
"Members": [
{
"Member": "/Common/vs_ctc",
"Member Order": 0,
"Member Address": "58.213.97.84",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
},
{
"Member": "/Common/vs_cuc",
"Member Order": 1,
"Member Address": "58.240.114.130",
"Service Port": "80",
"Translation Address": "none",
"Translation Service Port": 0
}
]
}
]
}
]
}