summaryrefslogtreecommitdiff
path: root/test/units/modules/network/f5/fixtures/load_gtm_irules.json
blob: 7ca9da1bf7af81f5692d58890378cdc76ada48d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[
    {
      "kind": "tm:gtm:rule:rulestate",
      "name": "asdf",
      "partition": "Common",
      "fullPath": "/Common/asdf",
      "generation": 92,
      "selfLink": "https://localhost/mgmt/tm/gtm/rule/~Common~asdf?ver=12.1.2",
      "apiAnonymous": "when DNS_REQUEST {\n    if { [IP::addr [IP::remote_addr] equals 10.254.254.0/24] } {\n          cname test.affilate.example.com\n\n   } elseif { [IP::addr [IP::remote_addr] equals 10.0.0.0/8] } {\n      cname test.internal.example.com\n\n   }\n  #everything else will be handled by the default pools in the main WIP\n}"
    },
    {
      "kind": "tm:gtm:rule:rulestate",
      "name": "foo",
      "partition": "Common",
      "fullPath": "/Common/foo",
      "generation": 93,
      "selfLink": "https://localhost/mgmt/tm/gtm/rule/~Common~foo?ver=12.1.2",
      "apiAnonymous": "when LB_SELECTED {\n   # Capture IP address chosen by WIP load balancing\n   set wipHost [LB::server addr]\n}\n\nwhen LB_FAILED {\n   set wipHost [LB::server addr]\n}"
    }
  ]