summaryrefslogtreecommitdiff
path: root/keama/tests/groupclass4.in4
diff options
context:
space:
mode:
Diffstat (limited to 'keama/tests/groupclass4.in4')
-rw-r--r--keama/tests/groupclass4.in435
1 files changed, 35 insertions, 0 deletions
diff --git a/keama/tests/groupclass4.in4 b/keama/tests/groupclass4.in4
new file mode 100644
index 00000000..ebf4f7fc
--- /dev/null
+++ b/keama/tests/groupclass4.in4
@@ -0,0 +1,35 @@
+# group and class declaration config
+
+# authoritative is mandatory
+authoritative;
+
+# options
+option mysystem code 250 = text;
+option myversion code 251 = unsigned integer 16;
+
+# superclass declaration
+class "foobar" {
+ match option mysystem;
+ option myversion 1;
+}
+
+# simple subclass declaration
+subclass "foobar" "version1";
+
+group machin {
+ next-server 10.10.10.1;
+ # this option is not propagated because the superclass takes precedence
+ option myversion 99;
+
+ # option setting subclass declaration
+ subclass "foobar" "version2" { option myversion 2; }
+
+ # complex subclass declaration
+ subclass "foobar" "version3" {
+ option myversion 3;
+ next-server 192.168.0.1;
+ }
+
+ # another simple subclass declaration
+ subclass "foobar" "version10";
+}