xref: /netbsd-src/external/mpl/dhcp/dist/keama/tests/ifxsc4.out (revision 4c3eb207d36f67d31994830c0a694161fc1ca39b)
1{
2  # if executable statement construct
3  # empty configs are not accepted by Kea
4  "Dhcp4": {
5    "valid-lifetime": 1800
6//  # if statement
7//  # first true is not recognized even as a boolean expression
8//  "statement": {
9//    "if": {
10//      "condition": {
11//        "variable-reference": "true"
12//      },
13//      "then": [
14//        {
15//          "option": {
16//            "space": "dhcp4",
17//            "name": "ip-forwarding",
18//            "code": 19,
19//            "data": "true"
20//          }
21//        }
22//      ]
23//    }
24//  }
25//  # another
26//  "statement": {
27//    "if": {
28//      "condition": {
29//        "equal": {
30//          "left": {
31//            "option": {
32//              "universe": "dhcp",
33//              "name": "user-class",
34//              "code": 77
35//            }
36//          },
37//          "right": "accounting"
38//        }
39//      },
40//      "then": [
41//        {
42//          "option": {
43//            "space": "dhcp4",
44//            "name": "boot-size",
45//            "code": 13,
46//            "data": "100000"
47//          }
48//        }
49//      ],
50//      "else": {
51//        "if": {
52//          "condition": {
53//            "equal": {
54//              "left": {
55//                "option": {
56//                  "universe": "dhcp",
57//                  "name": "user-class",
58//                  "code": 77
59//                }
60//              },
61//              "right": "engineering"
62//            }
63//          },
64//          "then": [
65//            {
66//              "option": {
67//                "space": "dhcp4",
68//                "name": "domain-name",
69//                "code": 15,
70//                "data": "example.com"
71//              }
72//            }
73//          ]
74//        }
75//      }
76//    }
77//  }
78  }
79}
80