diff options
author | Thomas Markwalder <tmark@isc.org> | 2019-11-22 13:39:45 -0500 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2019-11-22 13:39:45 -0500 |
commit | 0cd94b5ef4a078097fc2bd1dc72f5e80c2cf1844 (patch) | |
tree | e4dfe9a92d676a49b18ab547d781fb3fb10c8e6a /keama/tests/subclassguard6.out | |
parent | 97c155273c0df0c8518f226e2b5e338e3ad63e87 (diff) | |
download | isc-dhcp-0cd94b5ef4a078097fc2bd1dc72f5e80c2cf1844.tar.gz |
[#64,!35] Restored work
Restored cummulative work.
Diffstat (limited to 'keama/tests/subclassguard6.out')
-rw-r--r-- | keama/tests/subclassguard6.out | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/keama/tests/subclassguard6.out b/keama/tests/subclassguard6.out new file mode 100644 index 00000000..26a9d4dc --- /dev/null +++ b/keama/tests/subclassguard6.out @@ -0,0 +1,84 @@ +{ + # subclass with guard declaration config + # options + "Dhcp6": { + "option-def": [ + { + "space": "dhcp6", + "name": "mysystem", + "code": 1250, + "type": "string" + }, + { + "space": "dhcp6", + "name": "myversion", + "code": 1251, + "type": "uint16" + }, + { + "space": "dhcp6", + "name": "mydescr", + "code": 1252, + "type": "string" + } + ], + "client-classes": [ + # superclass declaration + /// match: option dhcp6.mysystem + { + "name": "foobar", + /// from: match if (option dhcp6.myversion) = 0x0001 + "test": "option[1251].hex == 0x0001" + }, + # simple subclass declaration + /// subclass selector 'system1' + { + "name": "sub#foobar#0", + /// from: match-if (option dhcp6.myversion) = 0x0001 + /// match: option dhcp6.mysystem + /// data: 'system1' + "test": "(option[1251].hex == 0x0001) and (option[1250].hex == 'system1')" + }, + # option setting subclass declaration + /// subclass selector 'system2' + { + "name": "sub#foobar#1", + "option-data": [ + { + "space": "dhcp6", + "name": "mydescr", + "code": 1252, + "data": "1.2" + } + ], + /// from: match-if (option dhcp6.myversion) = 0x0001 + /// match: option dhcp6.mysystem + /// data: 'system2' + "test": "(option[1251].hex == 0x0001) and (option[1250].hex == 'system2')" + }, + # complex subclass declaration + /// subclass selector 'system3' + { + "name": "sub#foobar#2", + "option-data": [ + { + "space": "dhcp6", + "name": "mydescr", + "code": 1252, + "data": "1.3" + }, + { + "space": "dhcp6", + "name": "rapid-commit", + "code": 14, + "data": "" + } + ], + /// from: match-if (option dhcp6.myversion) = 0x0001 + /// match: option dhcp6.mysystem + /// data: 'system3' + "test": "(option[1251].hex == 0x0001) and (option[1250].hex == 'system3')" + } + ] + } +} |