xref: /netbsd-src/external/mpl/dhcp/dist/keama/tests/switchxsc4.out (revision e7ac2a8b5bd66fa2e050809de09a075c36a7014d)
1{
2  # switch executable statement construct
3  # empty configs are not accepted by Kea
4  "Dhcp4": {
5    "valid-lifetime": 1800
6//  # a switch
7//  "statement": {
8//    "switch": {
9//      "condition": {
10//        "option": {
11//          "universe": "dhcp",
12//          "name": "user-class",
13//          "code": 77
14//        }
15//      },
16//      "body": [
17//        {
18//          "case": "accounting"
19//        },
20//        {
21//          "add-class": "acct"
22//        },
23//        {
24//          /// Kea does not support option data set variants (send)
25//          "option": {
26//            "space": "dhcp4",
27//            "name": "ip-forwarding",
28//            "code": 19,
29//            "data": "false"
30//          }
31//        },
32//        {
33//          "config": {
34//            "name": "default-lease-time",
35//            "code": 1,
36//            "value": 3600
37//          }
38//        },
39//        {
40//          "break": null
41//        },
42//        {
43//          "case": "engineering"
44//        },
45//        {
46//          "config": {
47//            "value": "allow",
48//            "name": "allow-booting",
49//            "code": 9
50//          }
51//        },
52//        {
53//          /// Kea does not support yet log statements
54//          /// Reference Kea #234
55//          "log": {
56//            "priority": "debug",
57//            "message": {
58//              "option": {
59//                "universe": "dhcp",
60//                "name": "host-name",
61//                "code": 12
62//              }
63//            }
64//          }
65//        },
66//        {
67//          "set": {
68//            "name": "foo",
69//            "value": "bar"
70//          }
71//        },
72//        {
73//          "break": null
74//        }
75//      ]
76//    }
77//  }
78  }
79}
80