diff options
author | Florian Westphal <fw@strlen.de> | 2018-08-29 11:37:39 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-08-29 23:53:48 +0200 |
commit | 92029c1282958aad13eb8602c67b73caf2a08a09 (patch) | |
tree | bff7a62d56ba4fb33d3a44adcbfac1d3b726f95c /tests/py/inet/osf.t.json | |
parent | 176d9ad8c351cff9f0c21da5b5f2848e4c77b249 (diff) |
src: osf: add json support
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/inet/osf.t.json')
-rw-r--r-- | tests/py/inet/osf.t.json | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/tests/py/inet/osf.t.json b/tests/py/inet/osf.t.json new file mode 100644 index 00000000..10fb68c1 --- /dev/null +++ b/tests/py/inet/osf.t.json @@ -0,0 +1,66 @@ +# osf name "Linux" +[ + { + "match": { + "left": { + "osf": { + "key": "name" + } + }, + "right": "Linux" + } + } +] + +# osf name { "Windows", "MacOs" } +[ + { + "match": { + "left": { + "osf": { + "key": "name" + } + }, + "right": { + "set": [ + "MacOs", + "Windows" + ] + } + } + } +] + +# ct mark set osf name map { "Windows" : 0x00000001, "MacOs" : 0x00000002 } +[ + { + "mangle": { + "left": { + "ct": { + "key": "mark" + } + }, + "right": { + "map": { + "left": { + "osf": { + "key": "name" + } + }, + "right": { + "set": [ + [ + "MacOs", + 2 + ], + [ + "Windows", + 1 + ] + ] + } + } + } + } + } +] |