summaryrefslogtreecommitdiff
path: root/keama/tests/switchxsc6.in6
diff options
context:
space:
mode:
Diffstat (limited to 'keama/tests/switchxsc6.in6')
-rw-r--r--keama/tests/switchxsc6.in618
1 files changed, 18 insertions, 0 deletions
diff --git a/keama/tests/switchxsc6.in6 b/keama/tests/switchxsc6.in6
new file mode 100644
index 00000000..a9c74f86
--- /dev/null
+++ b/keama/tests/switchxsc6.in6
@@ -0,0 +1,18 @@
+# switch executable statement construct
+
+# empty configs are not accepted by Kea
+default-lease-time 1800;
+
+# a switch
+switch (option dhcp6.remote-id) {
+case "accounting":
+ default dhcp6.bootfile-url foobar;
+ default-lease-time 3600;
+ unset foo;
+ break;
+case "engineering":
+ deny declines;
+ log (debug, "hello");
+ define foo (x) { return "world"; }
+ break;
+}